documenting new API structure

This commit is contained in:
aarne
2006-02-21 15:35:14 +00:00
parent b26060262a
commit a0150f72a7
50 changed files with 284 additions and 117 deletions

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> Adjectives and adjectival phrases</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:48 2006
Last update: Tue Feb 21 16:23:51 2006
</FONT></CENTER>
<P></P>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> Adverbs and adverbial phrases</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:48 2006
Last update: Tue Feb 21 16:23:52 2006
</FONT></CENTER>
<P></P>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> The category system</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:49 2006
Last update: Tue Feb 21 16:23:52 2006
</FONT></CENTER>
<P></P>
@@ -40,8 +40,11 @@ gfdoc - a rudimentary GF document generator.
</P>
<A NAME="toc1"></A>
<H1>The category system</H1>
<P>
Some categories are inherited from <A HREF="Common.html">Common</A>.
</P>
<PRE>
abstract Cat = Tense ** {
abstract Cat = Common ** {
cat
</PRE>
@@ -49,11 +52,10 @@ gfdoc - a rudimentary GF document generator.
<A NAME="toc2"></A>
<H2>Top-level units</H2>
<P>
Constructed in <A HREF="Phrase.html">Phrase</A>.
Constructed in <A HREF="Text.html">Text</A>: <CODE>Text</CODE>.
Constructed in <A HREF="Phrase.html">Phrase</A>: <CODE>Phr</CODE> and
</P>
<PRE>
Text ; -- text consisting of several phrases
Phr ; -- phrase in a text e.g. "But be quiet my darling."
Utt ; -- sentence, question, word... e.g. "be quiet"
Voc ; -- vocative or "please" e.g. "my darling"
</PRE>
@@ -61,7 +63,8 @@ Constructed in <A HREF="Phrase.html">Phrase</A>.
<A NAME="toc3"></A>
<H2>Sentences and clauses</H2>
<P>
Constructed in <A HREF="Sentence.html">Sentence</A>.
Constructed in <A HREF="Sentence.html">Sentence</A>, and also in
<A HREF="Idiom.html">Idiom</A>.
</P>
<PRE>
S ; -- declarative sentence e.g. "she lived here"

View File

@@ -0,0 +1,60 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
<TITLE> Infrastructure with common implementations.</TITLE>
</HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Infrastructure with common implementations.</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 21 16:23:52 2006
</FONT></CENTER>
<P></P>
<HR NOSHADE SIZE=1>
<P></P>
<UL>
<LI><A HREF="#toc1">Infrastructure with common implementations.</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>
<A NAME="toc1"></A>
<H1>Infrastructure with common implementations.</H1>
<P>
This module defines the abstract parameters of tense, polarity, and
anteriority, which are used in <A HREF="Phrase.html">Phrase</A> to generate different
forms of sentences. Together they give 2 x 4 x 4 = 16 sentence forms.
These tenses are defined for all languages in the library. More tenses
can be defined in the language extensions, e.g. the <I>passé simple</I> of
Romance languages.
</P>
<PRE>
abstract Common = {
cat
Text ; -- text consisting of several phrases
Phr ; -- phrase in a text e.g. "But be quiet my darling."
Pol ;
Tense ;
Ant ;
fun
PPos, PNeg : Pol ; -- I sleep/don't sleep
TPres, TPast, TFut, TCond : Tense ; -- I sleep/slept/will sleep/would sleep
ASimul, AAnter : Ant ; -- I sleep/have slept
}
</PRE>
<P></P>
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
<!-- cmdline: txt2tags -thtml -\-toc abstract/Common.txt -->
</BODY></HTML>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> Coordination</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:49 2006
Last update: Tue Feb 21 16:23:52 2006
</FONT></CENTER>
<P></P>

View File

@@ -14,7 +14,7 @@
<P></P>
<P>
Author:
Last update: Tue Feb 7 19:04:53 2006
Last update: Tue Feb 21 16:23:56 2006
</P>
<P>
Produced by

View File

@@ -0,0 +1,52 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
<TITLE> Idiomatic expressions</TITLE>
</HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Idiomatic expressions</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 21 16:23:52 2006
</FONT></CENTER>
<P></P>
<HR NOSHADE SIZE=1>
<P></P>
<UL>
<LI><A HREF="#toc1">Idiomatic expressions</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>
<A NAME="toc1"></A>
<H1>Idiomatic expressions</H1>
<PRE>
abstract Idiom = Cat ** {
</PRE>
<P></P>
<P>
This module defines constructions that are formed in fixed ways,
often different even in closely related languages.
</P>
<PRE>
fun
ExistNP : NP -&gt; Cl ; -- there is a house
ImpersCl : VP -&gt; Cl ; -- it rains
GenericCl : VP -&gt; Cl ; -- one sleeps
ProgrVP : VP -&gt; VP ; -- sleeping
}
</PRE>
<P></P>
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
<!-- cmdline: txt2tags -thtml -\-toc abstract/Idiom.txt -->
</BODY></HTML>

View File

@@ -24,7 +24,7 @@ lin
admettre_V2 = v_besch56 "admettre" ** {vtyp = VHabere ; lock_V2 = <> ; c2 = complAcc} ;
advenir_V = v_besch23 "advenir" ** {vtyp = VEsse ; lock_V = <>} ;
aller_V = v_besch22 "aller" ** {vtyp = VEsse ; lock_V = <>} ;
apercevoir_V2 = v_besch38 "apercevoir" ** {vtyp = VHabere ; lock_V2 = <> ; c2 = complGen} ;
apercevoir_V2 = v_besch38 "apercevoir" ** {vtyp = VRefl ; lock_V2 = <> ; c2 = complGen} ;
apparaître_V = v_besch64 "apparaître" ** {vtyp = VHabere ; lock_V = <>} ;
appartenir_V2 = v_besch23 "appartenir" ** {vtyp = VHabere ; lock_V2 = <> ; c2 = complDat} ;
appendre_V2 = v_besch53 "appendre" ** {vtyp = VHabere ; lock_V2 = <> ; c2 = complAcc} ;

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> The Main Module of the Resource Grammar</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:49 2006
Last update: Tue Feb 21 16:23:53 2006
</FONT></CENTER>
<P></P>
@@ -44,7 +44,9 @@ grammar. A smaller top module is <A HREF="Test.html">Test</A>.
Relative,
Conjunction,
Phrase,
Text,
Structural,
Idiom,
Lexicon
** {} ;
</PRE>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> The Mathematics API to the Resource Grammar</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:53 2006
Last update: Tue Feb 21 16:23:56 2006
</FONT></CENTER>
<P></P>

View File

@@ -14,7 +14,7 @@
<P></P>
<P>
Author:
Last update: Tue Feb 7 19:04:53 2006
Last update: Tue Feb 21 16:23:56 2006
</P>
<P>
Produced by

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> The construction of nouns, noun phrases, and determiners</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:50 2006
Last update: Tue Feb 21 16:23:53 2006
</FONT></CENTER>
<P></P>
@@ -59,7 +59,7 @@ Pronouns are defined in the module <A HREF="Structural.html">Structural</A>.
A noun phrase already formed can be modified by a Predeterminer.
</P>
<PRE>
PredetNP : Predet -&gt; NP -&gt; NP; -- only the man
PredetNP : Predet -&gt; NP -&gt; NP; -- only the man
</PRE>
<P></P>
<A NAME="toc3"></A>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> Numerals</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:50 2006
Last update: Tue Feb 21 16:23:53 2006
</FONT></CENTER>
<P></P>

View File

@@ -43,7 +43,7 @@
<P></P>
<P>
Author:
Last update: Tue Feb 7 19:04:51 2006
Last update: Tue Feb 21 16:23:54 2006
</P>
<P>
Produced by
@@ -54,7 +54,7 @@ gfdoc - a rudimentary GF document generator.
==
</P>
<P>
# -path=.:../abstract:../../prelude
# -path=.:../abstract:../../prelude:../common
</P>
<A NAME="toc1"></A>
<H1>English Lexical Paradigms</H1>
@@ -109,7 +109,6 @@ To abstract over gender names, we define the following identifiers.
human : Gender ;
nonhuman : Gender ;
masculine : Gender ;
feminite : Gender ;
</PRE>
<P></P>
<P>

View File

@@ -28,7 +28,7 @@
<P></P>
<P>
Author:
Last update: Tue Feb 7 19:04:51 2006
Last update: Tue Feb 21 16:23:55 2006
</P>
<P>
Produced by
@@ -190,14 +190,6 @@ Examples: <I>talo</I>, <I>kukko</I>, <I>huippu</I>, <I>koira</I>, <I>kukka</I>,
</PRE>
<P></P>
<P>
For convenience, we define 1-argument paradigms as producing the
nonhuman gender; the following function changes this:
</P>
<PRE>
humanN : N -&gt; N ;
</PRE>
<P></P>
<P>
A special case are nouns with no alternations:
the vowel harmony is inferred from the last letter,
which must be one of <I>o</I>, <I>u</I>, <I>ö</I>, <I>y</I>.

View File

@@ -41,7 +41,7 @@
<P></P>
<P>
Author:
Last update: Tue Feb 7 19:04:52 2006
Last update: Tue Feb 21 16:23:55 2006
</P>
<P>
Produced by
@@ -276,13 +276,6 @@ the following pattern is used:
</PRE>
<P></P>
<P>
From a given <CODE>A</CODE>, it is possible to get back to <CODE>A</CODE>.
</P>
<PRE>
adegA : A -&gt; A ;
</PRE>
<P></P>
<P>
For prefixed adjectives, the following function is
provided.
</P>
@@ -397,25 +390,24 @@ questions, verb phrases, and adjectives.
aVV : V -&gt; VV ; -- "j'arrive à parler"
mkV2V : V -&gt; Preposition -&gt; Preposition -&gt; V2V ;
mkVA : V -&gt; VA ;
mkV2A : V -&gt; Preposition -&gt; V2A ;
mkV2A : V -&gt; Preposition -&gt; Preposition -&gt; V2A ;
mkVQ : V -&gt; VQ ;
mkV2Q : V -&gt; Preposition -&gt; V2Q ;
mkAS : A -&gt; AS ;
subjAS : A -&gt; AS ;
mkAS : A -&gt; AS ;
mkA2S : A -&gt; Preposition -&gt; A2S ;
mkAV : A -&gt; Preposition -&gt; AV ;
mkA2V : A -&gt; Preposition -&gt; Preposition -&gt; A2V ;
</PRE>
<P></P>
<P>
Notice: categories <CODE>V2S, V2V, V2A, V2Q</CODE> are in v 1.0 treated
Notice: categories <CODE>V2S, V2V, V2Q</CODE> are in v 1.0 treated
just as synonyms of <CODE>V2</CODE>, and the second argument is given
as an adverb. Likewise <CODE>AS, A2S, AV, A2V</CODE> are just <CODE>A</CODE>.
<CODE>V0</CODE> is just <CODE>V</CODE>.
</P>
<PRE>
V0, V2S, V2V, V2A, V2Q : Type ;
V0, V2S, V2V, V2Q : Type ;
AS, A2S, AV, A2V : Type ;
</PRE>
<P></P>

View File

@@ -35,7 +35,7 @@
<P></P>
<P>
Author:
Last update: Tue Feb 7 19:04:52 2006
Last update: Tue Feb 21 16:23:55 2006
</P>
<P>
Produced by

View File

@@ -41,7 +41,7 @@
<P></P>
<P>
Author:
Last update: Tue Feb 7 19:04:52 2006
Last update: Tue Feb 21 16:23:55 2006
</P>
<P>
Produced by
@@ -389,25 +389,24 @@ questions, verb phrases, and adjectives.
aVV : V -&gt; VV ; -- "j'arrive à parler"
mkV2V : V -&gt; Preposition -&gt; Preposition -&gt; V2V ;
mkVA : V -&gt; VA ;
mkV2A : V -&gt; Preposition -&gt; V2A ;
mkV2A : V -&gt; Preposition -&gt; Preposition -&gt; V2A ;
mkVQ : V -&gt; VQ ;
mkV2Q : V -&gt; Preposition -&gt; V2Q ;
mkAS : A -&gt; AS ;
subjAS : A -&gt; AS ;
mkAS : A -&gt; AS ;
mkA2S : A -&gt; Preposition -&gt; A2S ;
mkAV : A -&gt; Preposition -&gt; AV ;
mkA2V : A -&gt; Preposition -&gt; Preposition -&gt; A2V ;
</PRE>
<P></P>
<P>
Notice: categories <CODE>V2S, V2V, V2A, V2Q</CODE> are in v 1.0 treated
Notice: categories <CODE>V2S, V2V, V2Q</CODE> are in v 1.0 treated
just as synonyms of <CODE>V2</CODE>, and the second argument is given
as an adverb. Likewise <CODE>AS, A2S, AV, A2V</CODE> are just <CODE>A</CODE>.
<CODE>V0</CODE> is just <CODE>V</CODE>.
</P>
<PRE>
V0, V2S, V2V, V2A, V2Q : Type ;
V0, V2S, V2V, V2Q : Type ;
AS, A2S, AV, A2V : Type ;
</PRE>
<P></P>

View File

@@ -43,7 +43,7 @@
<P></P>
<P>
Author:
Last update: Tue Feb 7 19:04:52 2006
Last update: Tue Feb 21 16:23:55 2006
</P>
<P>
Produced by

View File

@@ -41,7 +41,7 @@
<P></P>
<P>
Author:
Last update: Tue Feb 7 19:04:52 2006
Last update: Tue Feb 21 16:23:55 2006
</P>
<P>
Produced by
@@ -396,26 +396,25 @@ questions, verb phrases, and adjectives.
aVV : V -&gt; VV ; -- "j'arrive à parler"
mkV2V : V -&gt; Preposition -&gt; Preposition -&gt; V2V ;
mkVA : V -&gt; VA ;
mkV2A : V -&gt; Preposition -&gt; V2A ;
mkV2A : V -&gt; Preposition -&gt; Preposition -&gt; V2A ;
mkVQ : V -&gt; VQ ;
mkV2Q : V -&gt; Preposition -&gt; V2Q ;
mkAS : A -&gt; AS ;
subjAS : A -&gt; AS ;
mkAS : A -&gt; AS ;
mkA2S : A -&gt; Preposition -&gt; A2S ;
mkAV : A -&gt; Preposition -&gt; AV ;
mkA2V : A -&gt; Preposition -&gt; Preposition -&gt; A2V ;
</PRE>
<P></P>
<P>
Notice: categories <CODE>V2S, V2V, V2A, V2Q</CODE> are in v 1.0 treated
Notice: categories <CODE>V2S, V2V, V2Q</CODE> are in v 1.0 treated
just as synonyms of <CODE>V2</CODE>, and the second argument is given
as an adverb. Likewise <CODE>AS, A2S, AV, A2V</CODE> are just <CODE>A</CODE>.
<CODE>V0</CODE> is just <CODE>V</CODE>.
</P>
<PRE>
V0, V2S, V2V, V2A, V2Q : Type ;
AS, A2S, AV, A2V : Type ;
V0, V2S, V2V, V2Q : Type ;
AS, A2S, AV, A2V : Type ;
</PRE>
<P></P>
<A NAME="toc16"></A>

View File

@@ -43,7 +43,7 @@
<P></P>
<P>
Author:
Last update: Tue Feb 7 19:04:52 2006
Last update: Tue Feb 21 16:23:55 2006
</P>
<P>
Produced by

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> Phrases and utterances</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:50 2006
Last update: Tue Feb 21 16:23:53 2006
</FONT></CENTER>
<P></P>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> A Small Predication Library</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:53 2006
Last update: Tue Feb 21 16:23:56 2006
</FONT></CENTER>
<P></P>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> Questions and interrogative pronouns</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:50 2006
Last update: Tue Feb 21 16:23:53 2006
</FONT></CENTER>
<P></P>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> Relative clauses and pronouns</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:50 2006
Last update: Tue Feb 21 16:23:53 2006
</FONT></CENTER>
<P></P>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> Sentences, clauses, imperatives, and sentential complements</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:50 2006
Last update: Tue Feb 21 16:23:54 2006
</FONT></CENTER>
<P></P>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> GF Resource Grammar API for Structural Words</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:51 2006
Last update: Tue Feb 21 16:23:54 2006
</FONT></CENTER>
<P></P>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> Symbolic expressions</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:53 2006
Last update: Tue Feb 21 16:23:56 2006
</FONT></CENTER>
<P></P>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> Tense, Polarity, and Anteriority</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:51 2006
Last update: Tue Feb 21 16:23:54 2006
</FONT></CENTER>
<P></P>

View File

@@ -0,0 +1,45 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
<TITLE> Texts</TITLE>
</HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Texts</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 21 16:23:54 2006
</FONT></CENTER>
<P></P>
<HR NOSHADE SIZE=1>
<P></P>
<UL>
<LI><A HREF="#toc1">Texts</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>
<A NAME="toc1"></A>
<H1>Texts</H1>
<PRE>
abstract Text = Cat ** {
fun
TEmpty : Text ;
TFullStop : Phr -&gt; Text -&gt; Text ;
TQuestMark : Phr -&gt; Text -&gt; Text ;
TExclMark : Phr -&gt; Text -&gt; Text ;
}
</PRE>
<P></P>
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
<!-- cmdline: txt2tags -thtml -\-toc abstract/Text.txt -->
</BODY></HTML>

View File

@@ -7,7 +7,7 @@
<P ALIGN="center"><CENTER><H1> The construction of verb phrases</H1>
<FONT SIZE="4">
<I>Author: </I><BR>
Last update: Tue Feb 7 19:04:51 2006
Last update: Tue Feb 21 16:23:54 2006
</FONT></CENTER>
<P></P>