1999Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Re: Re: [MUD&#45;Dev] Text Parsing -->
<!--X-From-R13: Fenivf Qnfrl <rsvaqryNvb.pbz> -->
<!--X-Date: Mon, 31 May 1999 19:21:24 &#45;0700 -->
<!--X-Message-Id: 3934.990531#io,com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199905311538.IAA24748#harrier,prod.itd.earthlink.net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Re: Re: [MUD-Dev] Text Parsing</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:efindel#io,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="msg00366.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00368.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00360.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00370.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00367">Author</A>
&nbsp;|&nbsp;<A HREF="#00367">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00367">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Re: Re: [MUD-Dev] Text Parsing</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: Albert &lt;<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>&gt;</LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Re: Re: [MUD-Dev] Text Parsing</LI>
<LI><em>From</em>: Travis Casey &lt;<A HREF="mailto:efindel#io,com">efindel#io,com</A>&gt;</LI>
<LI><em>Date</em>: Mon, 31 May 1999 22:25:58 -0400</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#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>
On Monday, May 31, 1999, Albert wrote:

&gt; At 5/30/99 11:39:00 PM, you wrote:
&gt;&gt;On Friday, May 28, 1999, Albert wrote:

&gt; &lt;snip introduction&gt;

&gt;&gt;For a parser that I was developing, I used patterns.  I developed it
&gt;&gt;to the point where there was a function for "trying" an input string
&gt;&gt;against a particular pattern, which would return an empty array if the
&gt;&gt;pattern was not matched, or an array filled with the matches for the
&gt;&gt;variable parts of the pattern if it was matched.  It did as much
&gt;&gt;processing as possible -- for example, the string:

&gt; Hehe, that's what I ended up doing, resorting to patterns and having
&gt; the parser try each of them out. Only my patterns are the following:

&gt; verb + direct object (i.e. get ball)
&gt; verb + indirect object (i.e. kill him)
&gt; verb + direct object + indirect object (i.e. give ball to him)
&gt; verb + indirect object + direct object (i.e. give him the ball)
&gt; verb + string (i.e. say 'hello everybody')

&gt; I believe all possible commands are simple variations of the above
&gt; mentioned patterns. Conjunctions merely compound the patterns.

There is another common object:  the prepositional object.  E.g., in

put the ball on the table

"the table" is a prepositional object.

In practice, you can treat this as an indirect object, but
linguistically, it's not.

It should also be noted that changing the preposition in your third
case can result in a change from the indirect to the prepositional
object (or vice-versa), and will often result in a change in meaning.

get the ball to joe
get the ball for joe
get the ball from joe

all mean different things.  (Note that of these, only the second can
be considered an indirect object, because it has the same meaning as
"get joe the ball".)

This is why I settled on using patterns the way I did -- to make these
sorts of distinctions easy to handle.

(From a very technical point of view, you can argue that the indirect
object *never* occurs with a preposition -- that only sentences of the
form "verb io do" have an indirect object, and all the others have
prepositional objects.  In this case, there's a particular preposition
which can be used to match the meaning of the indirect object for that
verb -- but it can vary from verb to verb.  Note that

give joe the ball      means       give the ball to joe
but
get joe the ball   does not mean   get the ball to joe)

For extra fun, note that synonyms can get very complicated... most
muds treat "get" and "take" as being the same, which they often are --
but "get the ball from joe" and "take the ball from joe" are not the
same!  Further, note that "get the ball under joe" can mean "retrieve
the ball that joe is on top of" or it can mean "find a way to put the
ball under joe"!

--
       |\      _,,,---,,_        Travis S. Casey  &lt;efindel#io,com&gt;
 ZZzz  /,`.-'`'    -.  ;-;;,_   No one agrees with me.  Not even me.
      |,4-  ) )-,_..;\ (  `'-'
     '---''(_/--'  `-'\_)




_______________________________________________
MUD-Dev maillist  -  MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>


</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="00360" HREF="msg00360.html">[MUD-Dev] Re: Re: [MUD-Dev] Text Parsing</A></STRONG>
<UL><LI><EM>From:</EM> Albert &lt;thecheezeman#earthlink,net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00366.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00368.html">[MUD-Dev] Re[2]: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00360.html">[MUD-Dev] Re: Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00370.html">Re: [MUD-Dev] Re: Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00367"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00367"><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>Re: [MUD-Dev] Dylan Programming Language</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00353" HREF="msg00353.html">Re: [MUD-Dev] Dylan Programming Language</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sun 30 May 1999, 05:42 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00349" HREF="msg00349.html">[MUD-Dev] Re: Re: [MUD-Dev] [TECHNICAL]  How to generate pre-processor output (template problem).</A></strong>, 
Albert <a href="mailto:thecheezeman#earthlink,net">thecheezeman#earthlink,net</a>, Sat 29 May 1999, 21:14 GMT
<LI><strong><A NAME="00344" HREF="msg00344.html">[MUD-Dev] Re: Re: [MUD-Dev] Text Parsing</A></strong>, 
Albert <a href="mailto:thecheezeman#earthlink,net">thecheezeman#earthlink,net</a>, Sat 29 May 1999, 01:24 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00360" HREF="msg00360.html">[MUD-Dev] Re: Re: [MUD-Dev] Text Parsing</A></strong>, 
Albert <a href="mailto:thecheezeman#earthlink,net">thecheezeman#earthlink,net</a>, Mon 31 May 1999, 21:37 GMT
<UL>
<LI><strong><A NAME="00367" HREF="msg00367.html">Re: [MUD-Dev] Re: Re: [MUD-Dev] Text Parsing</A></strong>, 
Travis Casey <a href="mailto:efindel#io,com">efindel#io,com</a>, Tue 01 Jun 1999, 02:21 GMT
</LI>
<LI><strong><A NAME="00370" HREF="msg00370.html">Re: [MUD-Dev] Re: Re: [MUD-Dev] Text Parsing</A></strong>, 
Mik Clarke <a href="mailto:mikclrk#ibm,net">mikclrk#ibm,net</a>, Tue 01 Jun 1999, 05:48 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00336" HREF="msg00336.html">[MUD-Dev] Text Parsing</A></strong>, 
Albert <a href="mailto:thecheezeman#earthlink,net">thecheezeman#earthlink,net</a>, Fri 28 May 1999, 18:51 GMT
<UL>
<LI><strong><A NAME="00340" HREF="msg00340.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Kylotan <a href="mailto:kylotan#kylotan,force9.co.uk">kylotan#kylotan,force9.co.uk</a>, Fri 28 May 1999, 21:08 GMT
</LI>
<LI><strong><A NAME="00342" HREF="msg00342.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Greg Miller <a href="mailto:gmiller#classic-games,com">gmiller#classic-games,com</a>, Sat 29 May 1999, 00:51 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>