mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 05:29:30 -06:00
125 lines
3.8 KiB
HTML
125 lines
3.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
|
<TITLE> Sentence: Sentences, Clauses, and Imperatives</TITLE>
|
|
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
|
<P ALIGN="center"><CENTER><H1> Sentence: Sentences, Clauses, and Imperatives</H1>
|
|
<FONT SIZE="4">
|
|
<I>Last update: 2006-12-18 16:59:02 CET</I><BR>
|
|
</FONT></CENTER>
|
|
|
|
<P></P>
|
|
<HR NOSHADE SIZE=1>
|
|
<P></P>
|
|
<UL>
|
|
<LI><A HREF="#toc1">Clauses</A>
|
|
<LI><A HREF="#toc2">Clauses missing object noun phrases</A>
|
|
<LI><A HREF="#toc3">Imperatives</A>
|
|
<LI><A HREF="#toc4">Embedded sentences</A>
|
|
<LI><A HREF="#toc5">Sentences</A>
|
|
</UL>
|
|
|
|
<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 Sentence = Cat ** {
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc1"></A>
|
|
<H2>Clauses</H2>
|
|
<P>
|
|
The <CODE>NP VP</CODE> predication rule form a clause whose linearization
|
|
gives a table of all tense variants, positive and negative.
|
|
Clauses are converted to <CODE>S</CODE> (with fixed tense) with the
|
|
<CODE>UseCl</CODE> function below.
|
|
</P>
|
|
<PRE>
|
|
fun
|
|
PredVP : NP -> VP -> Cl ; -- John walks
|
|
</PRE>
|
|
<P></P>
|
|
<P>
|
|
Using an embedded sentence as a subject is treated separately.
|
|
This can be overgenerating. E.g. <I>whether you go</I> as subject
|
|
is only meaningful for some verb phrases.
|
|
</P>
|
|
<PRE>
|
|
PredSCVP : SC -> VP -> Cl ; -- that you go makes me happy
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc2"></A>
|
|
<H2>Clauses missing object noun phrases</H2>
|
|
<P>
|
|
This category is a variant of the 'slash category' <CODE>S/NP</CODE> of
|
|
GPSG and categorial grammars, which in turn replaces
|
|
movement transformations in the formation of questions
|
|
and relative clauses. Except <CODE>SlashV2</CODE>, the construction
|
|
rules can be seen as special cases of function composition, in
|
|
the style of CCG.
|
|
<B>Note</B> the set is not complete and lacks e.g. verbs with more than 2 places.
|
|
</P>
|
|
<PRE>
|
|
SlashV2 : NP -> V2 -> Slash ; -- (whom) he sees
|
|
SlashVVV2 : NP -> VV -> V2 -> Slash; -- (whom) he wants to see
|
|
AdvSlash : Slash -> Adv -> Slash ; -- (whom) he sees tomorrow
|
|
SlashPrep : Cl -> Prep -> Slash ; -- (with whom) he walks
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc3"></A>
|
|
<H2>Imperatives</H2>
|
|
<P>
|
|
An imperative is straightforwardly formed from a verb phrase.
|
|
It has variation over positive and negative, singular and plural.
|
|
To fix these parameters, see <A HREF="Phrase.html">Phrase</A>.
|
|
</P>
|
|
<PRE>
|
|
ImpVP : VP -> Imp ; -- go
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc4"></A>
|
|
<H2>Embedded sentences</H2>
|
|
<P>
|
|
Sentences, questions, and infinitival phrases can be used as
|
|
subjects and (adverbial) complements.
|
|
</P>
|
|
<PRE>
|
|
EmbedS : S -> SC ; -- that you go
|
|
EmbedQS : QS -> SC ; -- whether you go
|
|
EmbedVP : VP -> SC ; -- to go
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc5"></A>
|
|
<H2>Sentences</H2>
|
|
<P>
|
|
These are the 2 x 4 x 4 = 16 forms generated by different
|
|
combinations of tense, polarity, and
|
|
anteriority, which are defined in <A HREF="Common.html"><CODE>Common</CODE></A>.
|
|
</P>
|
|
<PRE>
|
|
fun
|
|
UseCl : Tense -> Ant -> Pol -> Cl -> S ;
|
|
UseQCl : Tense -> Ant -> Pol -> QCl -> QS ;
|
|
UseRCl : Tense -> Ant -> Pol -> RCl -> RS ;
|
|
</PRE>
|
|
<P></P>
|
|
<P>
|
|
An adverb can be added to the beginning of a sentence.
|
|
</P>
|
|
<PRE>
|
|
AdvS : Adv -> S -> S ; -- today, I will go home
|
|
|
|
}
|
|
</PRE>
|
|
<P></P>
|
|
|
|
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
|
|
<!-- cmdline: txt2tags -thtml -\-toc abstract/Sentence.txt -->
|
|
</BODY></HTML>
|