1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] User Input Parser, was Re: darkness/visibility -->
<!--X-From-R13: Dvpuneq Ibbypbpx <YnHveNqvny.cvcrk.pbz> -->
<!--X-Date: Mon, 15 Jun 1998 12:32:51 &#45;0700 -->
<!--X-Message-Id: 3585E787.26FE#dial,pipex.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199806150151.SAA07077#cashew,snugharbor.com.snugharbor.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] User Input Parser, was Re: darkness/visibility</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:KaVir#dial,pipex.com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg01050.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01052.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg01042.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01126.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#01051">Author</A>
&nbsp;|&nbsp;<A HREF="#01051">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#01051">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] User Input Parser, was Re: darkness/visibility</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] User Input Parser, was Re: darkness/visibility </LI>
<LI><em>From</em>: Richard Woolcock &lt;<A HREF="mailto:KaVir#dial,pipex.com">KaVir#dial,pipex.com</A>&gt;</LI>
<LI><em>Date</em>: Mon, 15 Jun 1998 20:33:27 -0700</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
T. Alexander Popiel wrote:
&gt; 
&gt; In message:  &lt;<A HREF="msg01025.html">3584199E.29AF#dial,pipex.com</A>&gt;
&gt;              Richard Woolcock &lt;KaVir#nospam,dial.pipex.com&gt; writes:
&gt; &gt;
&gt; &gt;   ]get the sword and examine it
&gt; &gt;
&gt; &gt;I also differentiate 'it' and 'them' depending on whether or not the object
&gt; &gt;ends in the letter 's'.
&gt; 
&gt; Random note: discriminating on 's' is poor; consider referring to
&gt; 'several people' or 'the grass'.  Better to have your objects tagged

I use it only to refer to objects at the moment, although I see no problem
with 'a human' compared to 'a crowd of humans'.  In addition, if I typed 'get 
grass' in a room I wouldn't expect to pick up a single blade of grass.  I
do however differentiate 'knives' from 'knife', and have yet to find any 
situation in my mud in which my solution doesn't work.  I'm not saying its 
perfect, just that it does everything I need it for.

&gt; as singular, plural, or aggregational.  (Aggregational is important
&gt; so you don't pour one bucket of water into another bucket of water
&gt; and get a bucket of waters...)

I would end up with 'a couple of buckets of water' or 'a couple of pools of 
water'.  Once again, this seems acceptable.

&gt; &gt;   ]get the bread from my backpack
&gt; &gt;   You get a loaf of bread from your leather backpack.
&gt; &gt;   ]eat it
&gt; &gt;   You attempt to stuff the leather backpack into your mouth.
&gt; 
&gt; I would expect the direct object to take precedence over the
&gt; prepositional indirect object.  Of course, the only real solution

I have to be careful, for example:

   ]draw my sword, then pick up the shield and wear it.

In my code as it stands, that would make you draw your sword, then
pick up and wear the shield, which seems acceptable.  The following:

   ]pick up the backpack, get the knives from it and wield them

Would pick up a backpack from the floor, get every knife from it, and
attempt to wield as many as you had free hands.  On the other hand:

   ]pick up the backpack, get the knife from it and wield it

Would pick up a backpack from the floor, then try and get a knife from
a knife - give up - and then try to wield a knife from your inventory
if you had one in there.  You would have to get around this by typing:

   ]pick up the backpack, get the knife from the backpack and wield it

This is where I am having problems really.  For my first attempt at a
parser its not really that bad though, specially considering I only 
spent a couple of evenings writing it.

&gt; is to maintain list of possible antecedents (prioritized via some
&gt; method (hopefully with actual use increasing priority)), and then
&gt; see which of the possible antecedents actually fit the circumstances.
&gt; This need not take up huge amounts of memory, since humans have
&gt; severe limits on list size (generally no more than 7, though beware
&gt; inobvious aggregates acting as a single entry), and there's not
&gt; much point in outperforming humans here.
&gt; 
&gt; &gt;   [remove my backpack and get my sword and cheese from it, then eat it and
&gt; &gt;    sheath it
&gt; &gt;
&gt; &gt;Which is...well...just silly.  Perhaps I should leave it as it is - its just
&gt; &gt;that I feel I could take it further.
&gt; 
&gt; Yeah, it's kind of silly, but what's the harm in that, as long
&gt; as nobody gets confused?

Maybe.  Right now it is the easiest way I can see to get the parser working
properly.

KaVir.


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="01042" HREF="msg01042.html">[MUD-Dev] Re: darkness/visibility</A></STRONG>
<UL><LI><EM>From:</EM> "T. Alexander Popiel" &lt;popiel#snugharbor,com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg01050.html">[MUD-Dev] Re: Analysis and specification</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg01052.html">[MUD-Dev] Re: Levelless MUDs</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01042.html">[MUD-Dev] Re: darkness/visibility</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg01126.html">[MUD-Dev] Natural Language Parsing (Was: Re: darkness/visibility)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#01051"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#01051"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>[MUD-Dev] Re: darkness/visibility</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="01013" HREF="msg01013.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Sat 13 Jun 1998, 00:50 GMT
<UL>
<LI><strong><A NAME="01016" HREF="msg01016.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
oliver <a href="mailto:oliver#jowett,manawatu.planet.co.nz">oliver#jowett,manawatu.planet.co.nz</a>, Sat 13 Jun 1998, 05:02 GMT
</LI>
<LI><strong><A NAME="01025" HREF="msg01025.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
Richard Woolcock <a href="mailto:KaVir#nospam,dial.pipex.com">KaVir#nospam,dial.pipex.com</a>, Sun 14 Jun 1998, 10:41 GMT
<UL>
<LI><strong><A NAME="01042" HREF="msg01042.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
T. Alexander Popiel <a href="mailto:popiel#snugharbor,com">popiel#snugharbor,com</a>, Mon 15 Jun 1998, 01:55 GMT
<UL>
<LI><strong><A NAME="01051" HREF="msg01051.html">[MUD-Dev] User Input Parser, was Re: darkness/visibility</A></strong>, 
Richard Woolcock <a href="mailto:KaVir#dial,pipex.com">KaVir#dial,pipex.com</a>, Mon 15 Jun 1998, 19:32 GMT
</LI>
<LI><strong><A NAME="01126" HREF="msg01126.html">[MUD-Dev] Natural Language Parsing (Was: Re: darkness/visibility)</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Thu 18 Jun 1998, 18:57 GMT
<UL>
<LI><strong><A NAME="01128" HREF="msg01128.html">[MUD-Dev] Re: Natural Language Parsing (Was: Re: darkness/visibility)</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Thu 18 Jun 1998, 20:57 GMT
<UL>
<LI><strong><A NAME="01129" HREF="msg01129.html">[MUD-Dev] OT: Ack!</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Thu 18 Jun 1998, 21:31 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="01160" HREF="msg01160.html">[MUD-Dev] Re: darkness/visibility</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Mon 22 Jun 1998, 22:14 GMT
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>