[sorrows-mudlib] r201 committed - Articles are now recognised as discardable adjectives in the parsing o...

0 views
Skip to first unread message

sorrows...@googlecode.com

unread,
Feb 5, 2011, 8:46:33 AM2/5/11
to sorrows-mud...@googlegroups.com
Revision: 201
Author: richard.m.tew
Date: Sat Feb 5 05:46:07 2011
Log: Articles are now recognised as discardable adjectives in the parsing
of command syntax. If an actor sees "brown pants" they can "take the
pants", they can then "drop a pants".
http://code.google.com/p/sorrows-mudlib/source/detail?r=201

Modified:
/trunk/mudlib/services/parser.py

=======================================
--- /trunk/mudlib/services/parser.py Sat Feb 5 05:17:11 2011
+++ /trunk/mudlib/services/parser.py Sat Feb 5 05:46:07 2011
@@ -10,7 +10,8 @@
"seventeen", "eighteen", "nineteen", "twenty", "thirty", "fourty", "fifty",
"sixty", "seventy", "eighty", "ninety", "hundred", "thousand",
])
-determiners = distributiveDeterminers | cardinalNumberDeterminers
+articleDeterminers = set([ "a", "an", "the" ])
+determiners = distributiveDeterminers | cardinalNumberDeterminers |
articleDeterminers


class ParserService(Service):

Reply all
Reply to author
Forward
0 new messages