Skip to reading
The Text Parser

5. Remove filler words without losing meaning

Edition 0.86.3.4

Teach your adventure verbs and synonyms, add command input and connect typed instructions to real game actions.

Download PDFView illustrations

Open Text Parser and find Words to Ignore. Enter one word or phrase on each line. Commas are also accepted as separators. Entries are normalised to lowercase and duplicates are removed when the list is read.

The usual English starting list is a, an, the, to, at, with, on, in, into, from, please. Your game can use a different list. These are project settings, not a fixed rule of English.

Figure 6. An added phrase, could you, sits in the same list as single ignored words.

Try an ignored phrase#

1. Add could you on its own line.

2. Enter could you please examine the timepiece! in Command Preview.

3. Check that Cleaned command reads examine timepiece.

4. Apply the parser settings, save and restart the game before trying the sentence in play.

Figure 7. The sentence loses the filler phrase and still finds Look and Workshop Clock.

Whole words and complete phrases are removed. Ignoring in does not remove the letters in wind. Longer ignored phrases are tried before shorter ones, which helps when phrases overlap.

Page 11 of 41Permalink
Go to page