1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: (fwd) Re: command parsers: a modest proposa -->
<!--X-From-R13: Quevf Uenl <ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Sat, 11 Jul 1998 15:35:51 &#45;0700 -->
<!--X-Message-Id: 199807112232.QAA00534@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, [MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</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="msg00173.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00175.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00146.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00080.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00174">Author</A>
&nbsp;|&nbsp;<A HREF="#00174">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00174">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</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] Re: (fwd) Re: command parsers: a modest proposa</LI>
<LI><em>From</em>: Chris Gray &lt;<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;</LI>
<LI><em>Date</em>: Sat, 11 Jul 1998 16:32:05 -0600</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>
[Richard Bartle:]

 &gt; &gt;for me, the concept of "part of speech" isn't really part
 &gt; &gt;of the server. So, my "tables" are just mappings of strings to
 &gt; &gt;database items, which includes objects, rooms, code, arrays, etc.
 &gt;        I find parts of speech useful because they allow single words to
 &gt;have different meanings depending on where they are used.
 &gt;        WIND CLOCK              verb
 &gt;        GET WIND CHIME          adjective
 &gt;        SUMMON WIND             noun
 &gt; 
 &gt;        It's especially helpful with abbreviations:
 &gt;        G K                     get key
 &gt;        K G                     kill goblin
 &gt;        G K F G                 get key from goblin
 &gt;        F                       flee
 &gt; 
 &gt;        Using parts of speech, you can point to entirely different objects
 &gt;from vocabulary entries by context.

Ah, but you can fake out that sort of thing with proper faking out of
part of speech. I assume that the first word in a command is a 'verb',
and so look it up in the grammar as such. A given word can be in a
grammar as either a verb, in one or more forms, or as a non-verb, which
has no additional information. For verbs like 'get X from Y', I would
store the word 'from' as one of these "non-verbs", and the description
of the 'get from' verb would reference it as its "separator word".
That's likely not a clear description. Here's a short, made-up example:

    Verb0(G, "down", function_for_down);
    Verb0(G, "in", function_for_in);
    Synonym(G, "down", "d");
    Synonym(G, "in", "i");
    Verb1(G, "put", FindWord(G, "down"), function_for_put_down);
    Verb2(G, "put", FindWord(G, "in"), function_for_put_in);
    Synonym(G, "put", "p");

With that framework, the following user commands would work:

    in; i
    down; d
    put &lt;noun phrase&gt;, &lt;noun phrase&gt; in &lt;noun phrase&gt;
    put &lt;noun phrase&gt; down
    p d &lt;noun phrase&gt;

It's all faked out, but works not bad. The first abbreviation conflict
shows up here, however - I use 'i' as an abbreviation for 'inventory',
instead of for 'in'. :-)

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


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00173.html">[MUD-Dev] Re: World Creation Notes, version 061098</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00175.html">[MUD-Dev] Re: Physics Lesson</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00146.html">[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00080.html">[MUD-Dev] Re: An Introduction</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00174"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00174"><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: (fwd) Re: command parsers: a modest proposa</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00111" HREF="msg00111.html">[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</A></strong>, 
Richard Bartle <a href="mailto:76703.3042#compuserve,com">76703.3042#compuserve,com</a>, Thu 09 Jul 1998, 16:22 GMT
<UL>
<LI><strong><A NAME="00127" HREF="msg00127.html">[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Thu 09 Jul 1998, 20:38 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00135" HREF="msg00135.html">[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 10 Jul 1998, 01:58 GMT
</LI>
<LI><strong><A NAME="00146" HREF="msg00146.html">[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</A></strong>, 
Richard Bartle <a href="mailto:76703.3042#compuserve,com">76703.3042#compuserve,com</a>, Fri 10 Jul 1998, 11:12 GMT
</LI>
<LI><strong><A NAME="00174" HREF="msg00174.html">[MUD-Dev] Re: (fwd) Re: command parsers: a modest proposa</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 11 Jul 1998, 22:35 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00080" HREF="msg00080.html">[MUD-Dev] Re: An Introduction</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 08 Jul 1998, 14:16 GMT
<UL>
<LI><strong><A NAME="00083" HREF="msg00083.html">[MUD-Dev] Re: An Introduction</A></strong>, 
Jeroen Ruigrok/Asmodai <a href="mailto:asmodai#wxs,nl">asmodai#wxs,nl</a>, Wed 08 Jul 1998, 17:20 GMT
<UL>
<LI><strong><A NAME="00336" HREF="msg00336.html">[MUD-Dev] Re: An Introduction</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 24 Jul 1998, 21:42 GMT
<UL>
<LI><strong><A NAME="00337" HREF="msg00337.html">[MUD-Dev] Re: An Introduction</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Fri 24 Jul 1998, 21:50 GMT
</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>