Skip to reading
Text & Sierra-Style Adventures

10. Be careful with ignored words

Edition 0.86.3.4

Build a complete text or graphical parser adventure with typed commands, inventory puzzles and press-to-walk controls.

Download PDFView PDF page

Ignored words make polite or padded commands easier to match. PLEASE LOOK AT THE KEY can become LOOK KEY. PCA also normalizes capitalization and common punctuation, so players do not need to copy your letter case.

Source table from 10. Be careful with ignored words, page 13
Original textAfter simple cleanupWhy it matters
Please look at the key!look keyArticles and polite filler do not need separate responses.
use key on dooruse key door, if ON is ignoredA custom exact row is compared after cleanup; the original command is still passed to its script.
ask Morgan about radioKeep ABOUT for a topic parserRemoving a meaningful separator can destroy the sentence structure you need.

For the native prototype, a, an, the, at and please are reasonable starting words. The built-in two-object parser examines the configured preposition before the ignored-word pass used for ordinary matching. The finished controller in this guide has its own cleaner and keeps ON and ABOUT.

Avoid accidental duplicates#

If two custom rows normalize to the same words, the earlier matching row wins. “Look at the key” and “look key” can therefore become the same command. Keep one row or make both point to the same response.

Do not ignore a word simply because it is common English. In a puzzle, IN, ON, OFF, ABOUT and WITH may change the meaning. Test complete phrases after every vocabulary change.

Page 13 of 68Permalink
Go to page