Section - Eliminate inappropriate noun guessing
Vague unlocking is an action applying to one thing. Understand "unlock [something]" as vague unlocking. Carry out vague unlocking: if noun is lockable, say "You don't have a key."; otherwise say "That's not something you can lock." [ Rule for supplying a missing noun when vague unlocking: if a random locked thing is visible, change the noun to a random locked visible thing.]
Vague locking is an action applying to one thing. Understand "lock [something]" as vague locking. Carry out vague locking: if noun is lockable, say "You don't have a key."; otherwise say "That's not something you can lock."
Rule for supplying a missing noun: if noun part of last-action is visible, change the noun to noun part of last-action; else speak as the parser "You must do that to something specific. Try your command again but with a noun as well.". [ last-action is defined in Drama Manager.]
Rule for supplying a missing second noun: speak as the parser "You'll need to specify what you want to do that with."
Does the player mean entering a thing which is not enterable: it is very unlikely.
Understand the command "tie" as something new. Understand "tie" as a mistake ("[as the parser]You won't need to 'tie' anything in this story.[as normal]").
[ The following lines prevent Inform from guessing inappropriately if there is only one noun in the location and the player types the verb alone, something the one-word input encourages players to do. ]
Understand "touch" as touching. Understand "take" as taking. Understand "examine" as examining. Understand "swim" or "wade" as vague swimming. Understand "open" as opening. Understand "close" as closing. Understand "push" as pushing. Understand "pull" as pulling. Understand "eat" as tasting. Understand "drink" as tasting. Understand "taste" as tasting. Understand "read" as reading.