7. Give the parser a useful vocabulary
Open the Verb Designer. Create or review the records below. The built-in parser can match a verb’s ID, display name and synonyms. The finished controller also has its own small vocabulary table; we will keep the two lists in step.
Figure 3. A verb’s Synonyms field gives players more than one sensible way to ask for the same action.
| Verb ID | Display name | Suggested synonyms |
|---|---|---|
| look | Look | examine, inspect |
| take | Take | get, pick up |
| use | Use | apply |
| talk | Talk | speak |
| read | Read | |
| open | Open | |
| walk | Walk | go |
Use short display names when they are also parser phrases. A display name such as “Look at” is fine, but remember that it is another phrase the native matcher can recognize.
Synonyms help with words, not with every possible sentence. Adding GET to Take does not teach the engine grammar for “could you get that thing over there?” The game still needs rules for the commands it accepts.
