1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]	Re: Prepositions and parsing -->
<!--X-From-R13: ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO (Quevf Uenl) -->
<!--X-Date: from major.globecomm.net [207.51.48.5] by mx01.ny.us.ibm.net id 863281564.64527&#45;1 Sat May 10 16:26:04 1997 -->
<!--X-Message-Id: 9705101628.7zjv@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]	Re: Prepositions and parsing</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">
</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="msg00364.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00363.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00434.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00428.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00362">Author</A>
&nbsp;|&nbsp;<A HREF="#00362">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00362">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]	Re: Prepositions and parsing</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev]	Re: Prepositions and parsing</LI>
<LI><em>From</em>: <A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A> (Chris Gray)</LI>
<LI><em>Date</em>: Sat, 10 May 97 09:28:14 MST</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
[Chris L:]
:How about, "beside", "behind", "above", "between", "near", "close to",
:"over" etc?  I'm specifically looking for intelligent handling that
:will allow the following sequence:
:
:  &gt; put the book on the table
:  OK.
:  &gt; put the paper under the book
:  OK.
:  &gt; l
:  There is a table here with a book on it.
:  &gt; get book
:  OK.
:  &gt; l
:  There is a table here with a paper on it.

It strikes me (after very little thought!) that the semantics is harder
than the syntax. You have to implement some kind of concept of objects
which are so small and flat that they can be put under other objects,
thus being hidden, but not harmed. That's a fairly special-case set of
objects, and if you are doing that, then you'll likely have a whole mess
of other kinds of objects. By the time you have set up the semantics for
all of that, the parsing might look easy!

To handle the above stuff, you don't even need to have prepositional
phrases attached to objects. In terms of my parser, you just have a
couple of variants of 'put', one with a "separator word" of 'on', and
the other with 'under'. Those would automatically trigger the verb
handlers:

    putOn("book", "table");
    putUnder("paper", "book");

With this technique you do have to duplicate all verbs that can meaningfully
accept such prepositions, but how many is that? Of course, in the above
example, you would want to be able to "get the paper under the book", in
which case you now do need prepositional phrases as part of noun stuff.
It doesn't make a lot of sense to have a "get &lt;np&gt; under &lt;np&gt;" verb
(a "get under &lt;np&gt;" does make sense), so here the 'under' would have to
start a prepositional phrase. That would have to be available to the
verb handling code, in order to direct the search for the object. So,
perhaps the answer is that a "separator word" on a verb takes precedence
over prepositions. So, in "put the book behind the pillar", we would
trigger the "putBehind" verb, rather than go looking for a book behind
the pillar. Hmm. Does this only work for my parsing scheme where the
verbs identify the objects? If you have to identify the objects before
you can find the verbs, then the problem is harder - sort of a chicken
and egg thing.

Another aspect of these phrases is that they don't always indicate where
to look for the object, but sometimes just provide more description of
the objects. If a camera takes a picture of a book, then you have
"a photograph of a book".

--
Chris Gray   cg#ami-cg,GraySage.Edmonton.AB.CA

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00428" HREF="msg00428.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></strong>
<ul compact><li><em>From:</em> clawrenc#cup,hp.com</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00364.html">Re: [MUD-Dev] Re: generic objects, behaviors</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00363.html">Re: [MUD-Dev]	(fwd) Re: Issues from the digests and Wout's list</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00434.html">Re: [MUD-Dev] (fwd) Re: Issues from the digests and Wout's list</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00428.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00362"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00362"><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]  Re: Role-playing [was Re: several messages]</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00554" HREF="msg00554.html">Re: [MUD-Dev]  Re: Role-playing [was Re: several messages]</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Sun 18 May 1997, 07:51 GMT
</LI>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</LI>
<LI><strong><A NAME="00365" HREF="msg00365.html">Test</A></strong>, 
thetan <a href="mailto:thetan#ibm,net">thetan#ibm,net</a>, Sun 11 May 1997, 03:25 GMT
<LI><strong><A NAME="00361" HREF="msg00361.html">Re: [MUD-Dev] (fwd) Re: Issues from the digests and Wout's list</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 10 May 1997, 23:26 GMT
<UL>
<LI><strong><A NAME="00434" HREF="msg00434.html">Re: [MUD-Dev] (fwd) Re: Issues from the digests and Wout's list</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 14 May 1997, 01:09 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00362" HREF="msg00362.html">Re: [MUD-Dev]	Re: Prepositions and parsing</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 10 May 1997, 23:26 GMT
<UL>
<LI><strong><A NAME="00428" HREF="msg00428.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Tue 13 May 1997, 23:45 GMT
<UL>
<LI><strong><A NAME="00465" HREF="msg00465.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#srce,hr">silovic#srce,hr</a>, Wed 14 May 1997, 22:36 GMT
<UL>
<LI><strong><A NAME="00505" HREF="msg00505.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Sat 17 May 1997, 00:22 GMT
<UL>
<LI><strong><A NAME="00515" HREF="msg00515.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#srce,hr">silovic#srce,hr</a>, Sat 17 May 1997, 10:03 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</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>