Files
gf-core/lib/resource/doc/gfdoc/Phrase.html
2007-12-12 20:30:11 +00:00

87 lines
2.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
<TITLE> Phrase: Phrases and Utterances</TITLE>
</HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Phrase: Phrases and Utterances</H1>
<FONT SIZE="4">
<I>Last update: 2006-12-13 09:36:48 CET</I><BR>
</FONT></CENTER>
<P></P>
<HR NOSHADE SIZE=1>
<P></P>
<P></P>
<HR NOSHADE SIZE=1>
<P></P>
<P>
Produced by
gfdoc - a rudimentary GF document generator.
(c) Aarne Ranta (<A HREF="mailto:aarne@cs.chalmers.se">aarne@cs.chalmers.se</A>) 2002 under GNU GPL.
</P>
<PRE>
abstract Phrase = Cat ** {
</PRE>
<P></P>
<P>
When a phrase is built from an utterance it can be prefixed
with a phrasal conjunction (such as <I>but</I>, <I>therefore</I>)
and suffixing with a vocative (typically a noun phrase).
</P>
<PRE>
fun
PhrUtt : PConj -&gt; Utt -&gt; Voc -&gt; Phr ; -- But go home my friend.
</PRE>
<P></P>
<P>
Utterances are formed from sentences, questions, and imperatives.
</P>
<PRE>
UttS : S -&gt; Utt ; -- John walks
UttQS : QS -&gt; Utt ; -- is it good
UttImpSg : Pol -&gt; Imp -&gt; Utt; -- (don't) help yourself
UttImpPl : Pol -&gt; Imp -&gt; Utt; -- (don't) help yourselves
UttImpPol : Pol -&gt; Imp -&gt; Utt ; -- (don't) help (polite)
</PRE>
<P></P>
<P>
There are also 'one-word utterances'. A typical use of them is
as answers to questions.
<B>Note</B>. This list is incomplete. More categories could be covered.
Moreover, in many languages e.g. noun phrases in different cases
can be used.
</P>
<PRE>
UttIP : IP -&gt; Utt ; -- who
UttIAdv : IAdv -&gt; Utt ; -- why
UttNP : NP -&gt; Utt ; -- this man
UttAdv : Adv -&gt; Utt ; -- here
UttVP : VP -&gt; Utt ; -- to sleep
</PRE>
<P></P>
<P>
The phrasal conjunction is optional. A sentence conjunction
can also used to prefix an utterance.
</P>
<PRE>
NoPConj : PConj ;
PConjConj : Conj -&gt; PConj ; -- and
</PRE>
<P></P>
<P>
The vocative is optional. Any noun phrase can be made into vocative,
which may be overgenerating (e.g. <I>I</I>).
</P>
<PRE>
NoVoc : Voc ;
VocNP : NP -&gt; Voc ; -- my friend
}
</PRE>
<P></P>
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
<!-- cmdline: txt2tags -thtml -\-toc abstract/Phrase.txt -->
</BODY></HTML>