Here's the natural language parser I wrote for BabbleMUD.
http://www.binarygoblins.org/cgi-bin/cgi/clip/clip.lua
More (but still brief) explanation here:
http://blogs.the-haleys.org/david.php?itemid=108
Basically, this is the parser that will be used to interpret player commands. Note that it is slot-based, so that the command handler has to do very little parsing, if any at all.
Have fun playing with it. As I note in the explanation, it still has some issues, but it's pretty cool, IMHO. :-)
It's written purely in Lua, by the way.
(EDIT: updated URL)
http://www.binarygoblins.org/cgi-bin/cgi/clip/clip.lua
More (but still brief) explanation here:
http://blogs.the-haleys.org/david.php?itemid=108
Basically, this is the parser that will be used to interpret player commands. Note that it is slot-based, so that the command handler has to do very little parsing, if any at all.
Have fun playing with it. As I note in the explanation, it still has some issues, but it's pretty cool, IMHO. :-)
It's written purely in Lua, by the way.
(EDIT: updated URL)