I’ve been trying to dig into the parser to improve some things. It’s admittedly fussy, but I still have a major parser refactoring at the back of my mind, so it’s all part of the big plan.
Consider the following:
[code]The Face is a person. Bob is a person. Understand “Bob’s” as Bob.
Understand “face” as a person when The Face is not in the location.
Does the player mean throwing an object at a person when the player’s command includes “face”: It is likely.
Does the player mean doing something when the player’s command includes “face”:
if the current action involves The Face, it is very likely;
it is very unlikely.
Test me with “Throw face at Bob/Throw pillow at Bob’s face”[/code]
What I really want is not to test a vague blob like “the player’s command” but to maintain snippets that correspond to the noun and second noun:
Does the player mean throwing an object at a person when the second noun phrase includes "face": It is likely.
How hard would it be to do that? Or would there be a smarter alternative to solving this parser problem?