mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-28 05:52:51 -06:00
structure document for 1.0
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Adjectives and adjectival phrases</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:07 2006
|
||||
Last update: Wed Jan 18 19:07:58 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Adverbs and adverbial phrases</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:07 2006
|
||||
Last update: Wed Jan 18 19:07:59 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -2,27 +2,40 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> A Basic Lexicon</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> A Basic Lexicon</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:07:59 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">A Basic Lexicon</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:08 2006
|
||||
</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>A Basic Lexicon</H1>
|
||||
<P>
|
||||
==
|
||||
This files gives a list of words whose purpose is to test the GF
|
||||
resource grammar. It covers all lexical categories of <A HREF="Cat.html">Cat</A>.
|
||||
By containing some of the most common words,
|
||||
it is aimed to cover, with high probability, all morphological
|
||||
patterns in the different languages.
|
||||
Using this lexicon for translation is not recommended. The linearizations
|
||||
of the words in different languages are not guaranteed to be translation
|
||||
equivalents.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Basic = Cat ** {
|
||||
@@ -156,6 +169,7 @@ gfdoc - a rudimentary GF document generator.
|
||||
open_V2 : V2 ;
|
||||
paint_V2A : V2A ;
|
||||
paper_N : N ;
|
||||
paris_PN : PN ;
|
||||
peace_N : N ;
|
||||
pen_N : N ;
|
||||
planet_N : N ;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> The category system</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:08 2006
|
||||
Last update: Wed Jan 18 19:07:59 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Coordination</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:08 2006
|
||||
Last update: Wed Jan 18 19:07:59 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -42,6 +42,11 @@ and define two general patterns:
|
||||
<LI>distributed conjunction: both X,...,X and X
|
||||
</UL>
|
||||
|
||||
<P>
|
||||
<B>Note</B>. This module uses right-recursive lists. If backward
|
||||
compatibility with API 0.9 is needed, use
|
||||
<A HREF="SeqConjunction.html">SeqConjunction</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Conjunction = Cat ** {
|
||||
</PRE>
|
||||
|
||||
@@ -2,27 +2,35 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> The Main Module of the Resource Grammar</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> The Main Module of the Resource Grammar</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:07:59 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">The Main Module of the Resource Grammar</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:08 2006
|
||||
</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>The Main Module of the Resource Grammar</H1>
|
||||
<P>
|
||||
==
|
||||
This grammar is just a collection of the different modules,
|
||||
and the one that can be imported when one wants to test the
|
||||
grammar. A smaller top module is <A HREF="Test.html">Test</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Lang =
|
||||
|
||||
@@ -2,31 +2,44 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Test lexicon</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Test lexicon</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:07:59 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Test lexicon</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:08 2006
|
||||
</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>Test lexicon</H1>
|
||||
<P>
|
||||
==
|
||||
This lexicon is used when developing a grammar, and called by
|
||||
<A HREF="Test.html">Test</A>. The full lexicon is divided between
|
||||
<A HREF="Structural.html">Structural</A>, <A HREF="Basic.html">Basic</A>, and <A HREF="Numeral.html">Numeral</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Lex = Cat ** {
|
||||
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Words of open classes
|
||||
</P>
|
||||
<PRE>
|
||||
fun
|
||||
walk_V : V ;
|
||||
help_V2 : V2 ;
|
||||
@@ -44,7 +57,7 @@ gfdoc - a rudimentary GF document generator.
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
structural
|
||||
Structural words
|
||||
</P>
|
||||
<PRE>
|
||||
only_Predet, all_Predet : Predet ;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:08 2006
|
||||
Last update: Wed Jan 18 19:08:00 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -2,50 +2,56 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Symbolic expressions</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Symbolic expressions</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:08:00 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Noun phrases with symbols</A>
|
||||
<LI><A HREF="#toc2">Symbol lists</A>
|
||||
</UL>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Symbolic expressions</A>
|
||||
<UL>
|
||||
<LI><A HREF="#toc2">Noun phrases with symbols</A>
|
||||
<LI><A HREF="#toc3">Symbol lists</A>
|
||||
</UL>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:08 2006
|
||||
</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>Symbolic expressions</H1>
|
||||
<P>
|
||||
==
|
||||
<B>Note</B>. This module is not automatically included in the main
|
||||
grammar <A HREF="Lang.html">Lang</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Math = Cat ** {
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc1"></A>
|
||||
<H3>Noun phrases with symbols</H3>
|
||||
<A NAME="toc2"></A>
|
||||
<H2>Noun phrases with symbols</H2>
|
||||
<PRE>
|
||||
fun
|
||||
|
||||
SymbPN : Symb -> PN ; -- "x"
|
||||
IntPN : Int -> PN ; -- "27"
|
||||
CNIntNP : CN -> Int -> NP ; -- "level 53"
|
||||
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- "(the) (2) numbers x and y"
|
||||
SymbPN : Symb -> PN ; -- x
|
||||
IntPN : Int -> PN ; -- 27
|
||||
CNIntNP : CN -> Int -> NP ; -- level 53
|
||||
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc2"></A>
|
||||
<H3>Symbol lists</H3>
|
||||
<A NAME="toc3"></A>
|
||||
<H2>Symbol lists</H2>
|
||||
<P>
|
||||
A symbol list has at least two elements. The last two are separated
|
||||
by a conjunction (<I>and</I> in English), the others by commas.
|
||||
|
||||
@@ -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 Jan 17 15:29:09 2006
|
||||
Last update: Wed Jan 18 19:08:00 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -173,16 +173,19 @@ Relational nouns can also be used without their arguments.
|
||||
The semantics is typically derivative of the relational meaning.
|
||||
</P>
|
||||
<PRE>
|
||||
UseN2 : N2 -> CN ; -- son
|
||||
UseN3 : N3 -> CN ; -- flight
|
||||
UseN2 : N2 -> CN ; -- son
|
||||
UseN3 : N3 -> CN ; -- flight
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Nouns can be modified by adjectives and relative clauses.
|
||||
Nouns can be modified by adjectives, relative clauses, and adverbs
|
||||
(the last rule will give rise to many 'PP attachement' ambiguities
|
||||
when used in connection with verb phrases).
|
||||
</P>
|
||||
<PRE>
|
||||
AdjCN : AP -> CN -> CN ; -- big house
|
||||
RelCN : CN -> RS -> CN ; -- house that John owns
|
||||
AdjCN : AP -> CN -> CN ; -- big house
|
||||
RelCN : CN -> RS -> CN ; -- house that John owns
|
||||
AdvCN : CN -> Adv -> CN ; -- house on the hill
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Numerals</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:09 2006
|
||||
Last update: Wed Jan 18 19:08:00 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:11 2006
|
||||
Last update: Wed Jan 18 19:08:02 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -18,14 +18,15 @@
|
||||
<LI><A HREF="#toc4">Proper names and noun phrases</A>
|
||||
</UL>
|
||||
<LI><A HREF="#toc5">Adjectives</A>
|
||||
<LI><A HREF="#toc6">Prepositions</A>
|
||||
<LI><A HREF="#toc7">Verbs</A>
|
||||
<LI><A HREF="#toc6">Adverbs</A>
|
||||
<LI><A HREF="#toc7">Prepositions</A>
|
||||
<LI><A HREF="#toc8">Verbs</A>
|
||||
<UL>
|
||||
<LI><A HREF="#toc8">Two-place verbs</A>
|
||||
<LI><A HREF="#toc9">Three-place verbs</A>
|
||||
<LI><A HREF="#toc10">Other complement patterns</A>
|
||||
<LI><A HREF="#toc9">Two-place verbs</A>
|
||||
<LI><A HREF="#toc10">Three-place verbs</A>
|
||||
<LI><A HREF="#toc11">Other complement patterns</A>
|
||||
</UL>
|
||||
<LI><A HREF="#toc11">Definitions of paradigms</A>
|
||||
<LI><A HREF="#toc12">Definitions of paradigms</A>
|
||||
</UL>
|
||||
</UL>
|
||||
|
||||
@@ -34,7 +35,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:11 2006
|
||||
Last update: Wed Jan 18 19:08:02 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
@@ -185,10 +186,10 @@ The regular genitive is <I>s</I>, omitted after <I>s</I>.
|
||||
<A NAME="toc5"></A>
|
||||
<H2>Adjectives</H2>
|
||||
<P>
|
||||
Adjectives need four forms: two for the positive and one for the other degrees.
|
||||
Adjectives need three forms, one for each degree.
|
||||
</P>
|
||||
<PRE>
|
||||
mkA : (x1,_,_,x4 : Str) -> A ; -- gut,gut,besser,best
|
||||
mkA : (x1,_,x3 : Str) -> A ; -- gut,besser,beste
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
@@ -214,6 +215,15 @@ Two-place adjectives are formed by adding a preposition to an adjective.
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc6"></A>
|
||||
<H2>Adverbs</H2>
|
||||
<P>
|
||||
Adverbs are just strings.
|
||||
</P>
|
||||
<PRE>
|
||||
mkAdv : Str -> Adv ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc7"></A>
|
||||
<H2>Prepositions</H2>
|
||||
<P>
|
||||
A preposition is formed from a string and a case.
|
||||
@@ -239,7 +249,7 @@ A couple of common prepositions (always with the dative).
|
||||
zu_Prep : Prep ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc7"></A>
|
||||
<A NAME="toc8"></A>
|
||||
<H2>Verbs</H2>
|
||||
<P>
|
||||
The worst-case constructor needs six forms:
|
||||
@@ -302,7 +312,7 @@ Reflexive verbs can take reflexive pronouns of different cases.
|
||||
reflV : V -> Case -> V ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc8"></A>
|
||||
<A NAME="toc9"></A>
|
||||
<H3>Two-place verbs</H3>
|
||||
<P>
|
||||
Two-place verbs need a preposition, except the special case with direct object
|
||||
@@ -315,7 +325,7 @@ Two-place verbs need a preposition, except the special case with direct object
|
||||
datV2 : V -> V2 ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc9"></A>
|
||||
<A NAME="toc10"></A>
|
||||
<H3>Three-place verbs</H3>
|
||||
<P>
|
||||
Three-place (ditransitive) verbs need two prepositions, of which
|
||||
@@ -327,7 +337,7 @@ the first one or both can be absent.
|
||||
accdatV3 : V -> V3 ; -- give,_,_
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc10"></A>
|
||||
<A NAME="toc11"></A>
|
||||
<H3>Other complement patterns</H3>
|
||||
<P>
|
||||
Verbs and adjectives can take complements such as sentences,
|
||||
@@ -338,7 +348,7 @@ questions, verb phrases, and adjectives.
|
||||
mkVS : V -> VS ;
|
||||
mkV2S : V -> Prep -> V2S ;
|
||||
mkVV : V -> VV ;
|
||||
mkV2V : V -> Prep -> Prep -> V2V ;
|
||||
mkV2V : V -> Prep -> V2V ;
|
||||
mkVA : V -> VA ;
|
||||
mkV2A : V -> Prep -> V2A ;
|
||||
mkVQ : V -> VQ ;
|
||||
@@ -361,7 +371,7 @@ as an adverb. Likewise <CODE>AS, A2S, AV, A2V</CODE> are just <CODE>A</CODE>.
|
||||
AS, A2S, AV, A2V : Type ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc11"></A>
|
||||
<A NAME="toc12"></A>
|
||||
<H2>Definitions of paradigms</H2>
|
||||
<P>
|
||||
The definitions should not bother the user of the API. So they are
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:11 2006
|
||||
Last update: Wed Jan 18 19:08:02 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Phrases and utterances</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:09 2006
|
||||
Last update: Wed Jan 18 19:08:00 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Questions and interrogative pronouns</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:09 2006
|
||||
Last update: Wed Jan 18 19:08:00 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Relative clauses and pronouns</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:09 2006
|
||||
Last update: Wed Jan 18 19:08:01 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Clauses, imperatives, and sentential complements</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:09 2006
|
||||
Last update: Wed Jan 18 19:08:01 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -2,35 +2,38 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Conjunctions of left-recursive lists</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Conjunctions of left-recursive lists</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:08:01 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Conjunctions of left-recursive lists</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:10 2006
|
||||
</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>
|
||||
<P>
|
||||
==
|
||||
</P>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>Conjunctions of left-recursive lists</H1>
|
||||
<PRE>
|
||||
abstract SeqConjunction = Cat ** {
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
This module is for backward compatibility with API 0.9.
|
||||
To be used instead of Conjunction.
|
||||
To be used instead of <A HREF="Conjunction.html">Conjunction</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
fun
|
||||
|
||||
@@ -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 Jan 17 15:29:10 2006
|
||||
Last update: Wed Jan 18 19:08:01 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -2,27 +2,38 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Tense, Polarity, and Anteriority</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Tense, Polarity, and Anteriority</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:08:01 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Tense, Polarity, and Anteriority</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:10 2006
|
||||
</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>Tense, Polarity, and Anteriority</H1>
|
||||
<P>
|
||||
==
|
||||
This module defines the abstract parameters of tense, polarity, and
|
||||
anteriority, which are used in <A HREF="Tensed.html">Tensed</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 Tense = {
|
||||
@@ -33,9 +44,9 @@ gfdoc - a rudimentary GF document generator.
|
||||
Ant ;
|
||||
|
||||
fun
|
||||
PPos, PNeg : Pol ;
|
||||
TPres, TPast, TFut, TCond : Tense ;
|
||||
ASimul, AAnter : Ant ;
|
||||
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>
|
||||
|
||||
@@ -2,27 +2,37 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Tensed forms of sentences, questions, and relative clauses</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Tensed forms of sentences, questions, and relative clauses</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:08:01 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Tensed forms of sentences, questions, and relative clauses</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:10 2006
|
||||
</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>Tensed forms of sentences, questions, and relative clauses</H1>
|
||||
<P>
|
||||
==
|
||||
This module defines the 2 x 4 x 4 = 16 forms generated by different
|
||||
combinations of tense, polarity, and
|
||||
anteriority, which are defined in <A HREF="Tense.html">Tense</A>.
|
||||
A variant with just the polarity variation is given in
|
||||
<A HREF="Untensed.html">Untensed</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Tensed = Cat, Tense ** {
|
||||
@@ -35,6 +45,27 @@ gfdoc - a rudimentary GF document generator.
|
||||
}
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Examples for English <CODE>S</CODE>:
|
||||
</P>
|
||||
<P>
|
||||
Pres Simul Pos ODir : he sleeps
|
||||
Pres Simul Neg ODir : he doesn't sleep
|
||||
Pres Anter Pos ODir : he has slept
|
||||
Pres Anter Neg ODir : he hasn't slept
|
||||
Past Simul Pos ODir : he slept
|
||||
Past Simul Neg ODir : he didn't sleep
|
||||
Past Anter Pos ODir : he had slept
|
||||
Past Anter Neg ODir : he hadn't slept
|
||||
Fut Simul Pos ODir : he will sleep
|
||||
Fut Simul Neg ODir : he won't sleep
|
||||
Fut Anter Pos ODir : he will have slept
|
||||
Fut Anter Neg ODir : he won't have slept
|
||||
Cond Simul Pos ODir : he would sleep
|
||||
Cond Simul Neg ODir : he wouldn't sleep
|
||||
Cond Anter Pos ODir : he would have slept
|
||||
Cond Anter Neg ODir : he wouldn't have slept
|
||||
</P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc abstract/Tensed.txt -->
|
||||
|
||||
@@ -2,27 +2,37 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> The Reduced Top Module of the Resource Grammar</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> The Reduced Top Module of the Resource Grammar</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:08:02 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">The Reduced Top Module of the Resource Grammar</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:10 2006
|
||||
</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>The Reduced Top Module of the Resource Grammar</H1>
|
||||
<P>
|
||||
==
|
||||
This grammar is just a collection of the different modules,
|
||||
and one that can be imported when one wants to test a reduced version
|
||||
of the grammar. The complete top module is <A HREF="Lang.html">Lang</A>.
|
||||
The main constructs missing are tenses of sentences, numerals, and
|
||||
comprehensive lexicon.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Test =
|
||||
@@ -30,7 +40,6 @@ gfdoc - a rudimentary GF document generator.
|
||||
Verb,
|
||||
Adjective,
|
||||
Adverb,
|
||||
-- Numeral,
|
||||
Sentence,
|
||||
Question,
|
||||
Relative,
|
||||
@@ -38,6 +47,9 @@ gfdoc - a rudimentary GF document generator.
|
||||
Phrase,
|
||||
Untensed,
|
||||
-- Tensed,
|
||||
-- Structural,
|
||||
-- Basic,
|
||||
-- Numeral,
|
||||
Lex
|
||||
** {} ;
|
||||
</PRE>
|
||||
|
||||
@@ -2,27 +2,35 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Untensed forms of sentences, questions, and relative clauses</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Untensed forms of sentences, questions, and relative clauses</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:08:02 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Untensed forms of sentences, questions, and relative clauses</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:10 2006
|
||||
</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>Untensed forms of sentences, questions, and relative clauses</H1>
|
||||
<P>
|
||||
==
|
||||
This module defines just positive and negative present tense forms.
|
||||
Am alternative with full variation in polarity, tense, and anteriority is
|
||||
given in <A HREF="Untensed.html">Untensed</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Untensed = Cat ** {
|
||||
|
||||
@@ -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 Jan 17 15:29:10 2006
|
||||
Last update: Wed Jan 18 19:08:02 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
Reference in New Issue
Block a user