resource doc update

This commit is contained in:
aarne
2006-12-22 13:23:50 +00:00
parent ea4ffdc148
commit 6917d36e6e
41 changed files with 318 additions and 131 deletions

View File

@@ -99,9 +99,13 @@ gfdoc:
gfdoc -txthtml mathematical/Predication.gf gfdoc -txthtml mathematical/Predication.gf
gfdoc -txthtml multimodal/Multi.gf gfdoc -txthtml multimodal/Multi.gf
gfdoc -txthtml ../prelude/*.gf gfdoc -txthtml ../prelude/*.gf
gfdoc -txthtml api/Combinators.gf
gfdoc -txthtml api/Constructors.gf
gfdoc -txthtml api/Symbolic.gf
mv abstract/*.html doc/gfdoc mv abstract/*.html doc/gfdoc
mv mathematical/*.html doc/gfdoc mv mathematical/*.html doc/gfdoc
mv multimodal/*.html doc/gfdoc mv multimodal/*.html doc/gfdoc
mv api/*.html doc/gfdoc
mv */Paradigms*.html doc/gfdoc mv */Paradigms*.html doc/gfdoc
cp */Irreg???.gf doc/gfdoc cp */Irreg???.gf doc/gfdoc
mv ../prelude/*.html doc/gfdoc mv ../prelude/*.html doc/gfdoc

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Adjective: Adjectives and Adjectival Phrases</H1> <P ALIGN="center"><CENTER><H1> Adjective: Adjectives and Adjectival Phrases</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 19:14:36 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Adverb: Adverbs and Adverbial Phrases</H1> <P ALIGN="center"><CENTER><H1> Adverb: Adverbs and Adverbial Phrases</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-14 22:56:30 CEST</I><BR> <I>Last update: 2006-06-15 09:19:39 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Cat: the Category System</H1> <P ALIGN="center"><CENTER><H1> Cat: the Category System</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 19:10:58 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -0,0 +1,126 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
<TITLE> Combinators: a High-Level Syntax API</TITLE>
</HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Combinators: a High-Level Syntax API</H1>
<FONT SIZE="4">
<I>Last update: 2006-12-22 14:10:19 CET</I><BR>
</FONT></CENTER>
<P></P>
<HR NOSHADE SIZE=1>
<P></P>
<UL>
<LI><A HREF="#toc1">Predication</A>
<LI><A HREF="#toc2">Function application</A>
<LI><A HREF="#toc3">Coordination</A>
<LI><A HREF="#toc4">Modification</A>
<LI><A HREF="#toc5">Text append</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>
<P>
This module defines some <I>grammatical functions</I> that give shortcuts to
typical constructions. <A HREF="Constructors.html"><CODE>Constructors</CODE></A> and the
language-specific <CODE>Paradigms</CODE> modules are usually needed
to construct arguments of these functions.
</P>
<PRE>
incomplete resource Combinators = open Grammar in {
oper
</PRE>
<P></P>
<A NAME="toc1"></A>
<H2>Predication</H2>
<PRE>
pred : overload {
pred : V -&gt; NP -&gt; Cl ;
pred : V2 -&gt; NP -&gt; NP -&gt; Cl ;
pred : V3 -&gt; NP -&gt; NP -&gt; NP -&gt; Cl ;
pred : V -&gt; NP -&gt; NP -&gt; Cl ;
pred : A -&gt; NP -&gt; Cl ;
pred : A2 -&gt; NP -&gt; NP -&gt; Cl ;
pred : A -&gt; NP -&gt; NP -&gt; Cl ;
pred : N -&gt; NP -&gt; Cl ;
pred : CN -&gt; NP -&gt; Cl ;
pred : NP -&gt; NP -&gt; Cl ;
pred : N -&gt; NP -&gt; NP -&gt; Cl ;
pred : Adv -&gt; NP -&gt; Cl ;
pred : Prep -&gt; NP -&gt; NP -&gt; Cl
} ;
</PRE>
<P></P>
<A NAME="toc2"></A>
<H2>Function application</H2>
<PRE>
app : overload {
app : N -&gt; NP ;
app : N2 -&gt; NP -&gt; NP ;
app : N3 -&gt; NP -&gt; NP -&gt; NP ;
app : N2 -&gt; NP -&gt; NP -&gt; NP ;
app : N2 -&gt; N -&gt; CN
} ;
</PRE>
<P></P>
<A NAME="toc3"></A>
<H2>Coordination</H2>
<PRE>
coord : overload {
coord : Conj -&gt; Adv -&gt; Adv -&gt; Adv ;
coord : Conj -&gt; AP -&gt; AP -&gt; AP ;
coord : Conj -&gt; NP -&gt; NP -&gt; NP ;
coord : Conj -&gt; S -&gt; S -&gt; S ;
coord : DConj -&gt; Adv -&gt; Adv -&gt; Adv ;
coord : DConj -&gt; AP -&gt; AP -&gt; AP ;
coord : DConj -&gt; NP -&gt; NP -&gt; NP ;
coord : DConj -&gt; S -&gt; S -&gt; S ;
coord : Conj -&gt; ListAdv -&gt; Adv ;
coord : Conj -&gt; ListAP -&gt; AP ;
coord : Conj -&gt; ListNP -&gt; NP ;
coord : Conj -&gt; ListS -&gt; S ;
coord : DConj -&gt; ListAdv -&gt; Adv ;
coord : DConj -&gt; ListAP -&gt; AP ;
coord : DConj -&gt; ListNP -&gt; NP ;
coord : DConj -&gt; ListS -&gt; S
} ;
</PRE>
<P></P>
<A NAME="toc4"></A>
<H2>Modification</H2>
<PRE>
mod : overload {
mod : A -&gt; N -&gt; CN ;
mod : AP -&gt; CN -&gt; CN ;
mod : AdA -&gt; A -&gt; AP ;
mod : Quant -&gt; N -&gt; NP ;
mod : Quant -&gt; CN -&gt; NP ;
mod : Predet -&gt; N -&gt; NP ;
mod : Numeral -&gt; N -&gt; NP
} ;
</PRE>
<P></P>
<A NAME="toc5"></A>
<H2>Text append</H2>
<P>
This is not in ground API, because it would destroy parsing.
</P>
<PRE>
appendText : Text -&gt; Text -&gt; Text ;
</PRE>
<P></P>
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
<!-- cmdline: txt2tags -thtml -\-toc api/Combinators.txt -->
</BODY></HTML>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Common: Structures with Common Implementations.</H1> <P ALIGN="center"><CENTER><H1> Common: Structures with Common Implementations.</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 19:13:55 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Conjunction: Coordination</H1> <P ALIGN="center"><CENTER><H1> Conjunction: Coordination</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 19:17:31 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Constructors: the High-Level Syntax API</H1> <P ALIGN="center"><CENTER><H1> Constructors: the High-Level Syntax API</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-11-21 19:14:38 CET</I><BR> <I>Last update: 2006-11-27 17:15:06 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>
@@ -85,7 +85,7 @@ to this.
<PRE> <PRE>
mkText : overload { mkText : overload {
mkText : Text ; -- [empty text] mkText : Text ; -- [empty text]
mkText : Phr -&gt; Text -&gt; Text; -- John walks. ... mkText : Phr -&gt; Text -&gt; Text -- John walks. ...
} ; } ;
mkPhr : overload { mkPhr : overload {
@@ -116,8 +116,8 @@ to this.
mkS : Conj -&gt; S -&gt; S -&gt; S ; -- John walks and Mary talks mkS : Conj -&gt; S -&gt; S -&gt; S ; -- John walks and Mary talks
mkS : DConj -&gt; S -&gt; S -&gt; S ; -- either I leave or you come mkS : DConj -&gt; S -&gt; S -&gt; S ; -- either I leave or you come
mkS : Conj -&gt; ListS -&gt; S ; -- John walks, Mary talks, and Bob runs mkS : Conj -&gt; ListS -&gt; S ; -- John walks, Mary talks, and Bob runs
mkS : DConj -&gt; ListS -&gt; S -- either I leave, you come, or he runs mkS : DConj -&gt; ListS -&gt; S ; -- either I leave, you come, or he runs
mkS : Adv -&gt; S -&gt; S -- today, I will sleep
} ; } ;
mkCl : overload { mkCl : overload {

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Grammar: the Main Module of the Resource Grammar</H1> <P ALIGN="center"><CENTER><H1> Grammar: the Main Module of the Resource Grammar</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 19:08:55 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Idiom: Idiomatic Expressions</H1> <P ALIGN="center"><CENTER><H1> Idiom: Idiomatic Expressions</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-14 22:57:19 CEST</I><BR> <I>Last update: 2006-06-15 09:19:39 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Lang: a Test Module for the Resource Grammar</H1> <P ALIGN="center"><CENTER><H1> Lang: a Test Module for the Resource Grammar</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 19:09:20 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> The Mathematics API to the Resource Grammar</H1> <P ALIGN="center"><CENTER><H1> The Mathematics API to the Resource Grammar</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-02-25 21:36:45 CET</I><BR> <I>Last update: 2006-02-28 09:26:58 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Multimodal additions to the resource grammar library</H1> <P ALIGN="center"><CENTER><H1> Multimodal additions to the resource grammar library</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-05-23 23:36:59 CEST</I><BR> <I>Last update: 2006-05-24 15:08:56 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Noun: Nouns, noun phrases, and determiners</H1> <P ALIGN="center"><CENTER><H1> Noun: Nouns, noun phrases, and determiners</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 19:19:41 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Numerals</H1> <P ALIGN="center"><CENTER><H1> Numerals</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 19:22:05 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Danish Lexical Paradigms</H1> <P ALIGN="center"><CENTER><H1> Danish Lexical Paradigms</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 20:53:41 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> English Lexical Paradigms</H1> <P ALIGN="center"><CENTER><H1> English Lexical Paradigms</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 20:54:15 CEST</I><BR> <I>Last update: 2006-11-23 14:34:29 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>
@@ -122,6 +122,14 @@ The resource category <CODE>Prep</CODE> is used.
<A NAME="toc2"></A> <A NAME="toc2"></A>
<H2>Nouns</H2> <H2>Nouns</H2>
<P> <P>
Nouns are constructed by the function <CODE>mkN</CODE>, which takes a varying
number of arguments.
</P>
<PRE>
mkN : overload {
</PRE>
<P></P>
<P>
Worst case: give all four forms. Worst case: give all four forms.
</P> </P>
<PRE> <PRE>
@@ -134,14 +142,14 @@ The regular function captures the variants for nouns ending with
<I>fly - flies</I> (but <I>toy - toys</I>), <I>fly - flies</I> (but <I>toy - toys</I>),
</P> </P>
<PRE> <PRE>
regN : Str -&gt; N ; mkN : (flash : Str) -&gt; N ;
</PRE> </PRE>
<P></P> <P></P>
<P> <P>
In practice the worst case is just: give singular and plural nominative. In practice the worst case is just: give singular and plural nominative.
</P> </P>
<PRE> <PRE>
mk2N : (man,men : Str) -&gt; N ; mkN : (man,men : Str) -&gt; N ;
</PRE> </PRE>
<P></P> <P></P>
<P> <P>
@@ -150,7 +158,7 @@ All nouns created by the previous functions are marked as
function: function:
</P> </P>
<PRE> <PRE>
genderN : Gender -&gt; N -&gt; N ; mkN : Gender -&gt; N -&gt; N ;
</PRE> </PRE>
<P></P> <P></P>
<A NAME="toc3"></A> <A NAME="toc3"></A>
@@ -160,7 +168,8 @@ A compound noun ia an uninflected string attached to an inflected noun,
such as <I>baby boom</I>, <I>chief executive officer</I>. such as <I>baby boom</I>, <I>chief executive officer</I>.
</P> </P>
<PRE> <PRE>
compoundN : Str -&gt; N -&gt; N ; mkN : Str -&gt; N -&gt; N
} ;
</PRE> </PRE>
<P></P> <P></P>
<A NAME="toc4"></A> <A NAME="toc4"></A>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Finnish Lexical Paradigms</H1> <P ALIGN="center"><CENTER><H1> Finnish Lexical Paradigms</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 20:46:07 CEST</I><BR> <I>Last update: 2006-11-13 16:54:32 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>
@@ -168,9 +168,10 @@ Examples: <I>talo</I>, <I>kukko</I>, <I>huippu</I>, <I>koira</I>, <I>kukka</I>,
</PRE> </PRE>
<P></P> <P></P>
<P> <P>
A special case are nouns with no alternations: A special case:
the vowel harmony is inferred from the last letter, 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>. which must be one of <I>o</I>, <I>u</I>, <I>ö</I>, <I>y</I>. Regular weak-grade alternation
is performed.
</P> </P>
<PRE> <PRE>
nTalo : (talo : Str) -&gt; N ; nTalo : (talo : Str) -&gt; N ;

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> French Lexical Paradigms</H1> <P ALIGN="center"><CENTER><H1> French Lexical Paradigms</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 21:02:44 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> German Lexical Paradigms</H1> <P ALIGN="center"><CENTER><H1> German Lexical Paradigms</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 20:58:18 CEST</I><BR> <I>Last update: 2006-11-13 16:54:32 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Italian Lexical Paradigms</H1> <P ALIGN="center"><CENTER><H1> Italian Lexical Paradigms</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 21:07:00 CEST</I><BR> <I>Last update: 2006-12-07 11:27:52 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>
@@ -123,6 +123,13 @@ amalgamate with the following word (the 'genitive' <I>di</I> and the
mkPrep : Str -&gt; Prep ; mkPrep : Str -&gt; Prep ;
</PRE> </PRE>
<P></P> <P></P>
<P>
The following prepositions also have special contracted forms.
</P>
<PRE>
con_Prep, da_Prep, in_Prep, su_Prep : Prep ;
</PRE>
<P></P>
<A NAME="toc2"></A> <A NAME="toc2"></A>
<H2>Nouns</H2> <H2>Nouns</H2>
<P> <P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Norwegian Lexical Paradigms</H1> <P ALIGN="center"><CENTER><H1> Norwegian Lexical Paradigms</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 21:16:02 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Russian Lexical Paradigms</H1> <P ALIGN="center"><CENTER><H1> Russian Lexical Paradigms</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 17:53:54 CEST</I><BR> <I>Last update: 2006-09-06 14:59:55 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>
@@ -327,9 +327,10 @@ The worst case need 6 forms of the present tense in indicative mood
(<I>я бегу</I>, <I>ты бежишь</I>, <I>он бежит</I>, <I>мы бежим</I>, <I>вы бежите</I>, <I>они бегут</I>), (<I>я бегу</I>, <I>ты бежишь</I>, <I>он бежит</I>, <I>мы бежим</I>, <I>вы бежите</I>, <I>они бегут</I>),
a past form (singular, masculine: <I>я бежал</I>), an imperative form a past form (singular, masculine: <I>я бежал</I>), an imperative form
(singular, second person: <I>беги</I>), an infinitive (<I>бежать</I>). (singular, second person: <I>беги</I>), an infinitive (<I>бежать</I>).
Inherent aspect should also be specified.
mkVerbum : Aspect -&gt; (presentSgP1,presentSgP2,presentSgP3, mkVerbum : Aspect -&gt; (presentSgP1,presentSgP2,presentSgP3,
</P> </P>
<PRE> <PRE>
mkV : Aspect -&gt; (presentSgP1,presentSgP2,presentSgP3, mkV : Aspect -&gt; (presentSgP1,presentSgP2,presentSgP3,
presentPlP1,presentPlP2,presentPlP3, presentPlP1,presentPlP2,presentPlP3,
pastSgMasculine,imperative,infinitive: Str) -&gt; V ; pastSgMasculine,imperative,infinitive: Str) -&gt; V ;
@@ -352,14 +353,6 @@ regV Imperfective Second <I>люб</I> <I>лю</I> <I>любил</I> <I>люби
pastSgP1,imperative,infinitive : Str) -&gt; V ; pastSgP1,imperative,infinitive : Str) -&gt; V ;
</PRE> </PRE>
<P></P> <P></P>
<P>
For writing an application grammar one usualy doesn't need
the whole inflection table, since each verb is used in
a particular context that determines some of the parameters
(Tense and Voice while Aspect is fixed from the beginning) for certain usage.
The <I>V</I> type, that have these parameters fixed.
We can extract the <I>V</I> from the lexicon.
mkV: Verbum -&gt; Voice -&gt; V ;
<P> <P>
Two-place verbs, and the special case with direct object. Notice that Two-place verbs, and the special case with direct object. Notice that
a particle can be included in a <CODE>V</CODE>. a particle can be included in a <CODE>V</CODE>.

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Spanish Lexical Paradigms</H1> <P ALIGN="center"><CENTER><H1> Spanish Lexical Paradigms</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 21:33:43 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Swedish Lexical Paradigms</H1> <P ALIGN="center"><CENTER><H1> Swedish Lexical Paradigms</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 21:39:41 CEST</I><BR> <I>Last update: 2006-10-31 16:59:43 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Phrase: Phrases and Utterances</H1> <P ALIGN="center"><CENTER><H1> Phrase: Phrases and Utterances</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-14 22:58:47 CEST</I><BR> <I>Last update: 2006-12-13 09:36:48 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>
@@ -42,6 +42,7 @@ Utterances are formed from sentences, questions, and imperatives.
UttQS : QS -&gt; Utt ; -- is it good UttQS : QS -&gt; Utt ; -- is it good
UttImpSg : Pol -&gt; Imp -&gt; Utt; -- (don't) help yourself UttImpSg : Pol -&gt; Imp -&gt; Utt; -- (don't) help yourself
UttImpPl : Pol -&gt; Imp -&gt; Utt; -- (don't) help yourselves UttImpPl : Pol -&gt; Imp -&gt; Utt; -- (don't) help yourselves
UttImpPol : Pol -&gt; Imp -&gt; Utt ; -- (don't) help (polite)
</PRE> </PRE>
<P></P> <P></P>
<P> <P>

View File

@@ -13,7 +13,7 @@
<HR NOSHADE SIZE=1> <HR NOSHADE SIZE=1>
<P></P> <P></P>
<P> <P>
Last update: 2005-11-17 17:36:49 CET Last update: 2005-11-23 09:16:18 CET
</P> </P>
<P> <P>
Produced by Produced by

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Predefined functions for concrete syntax</H1> <P ALIGN="center"><CENTER><H1> Predefined functions for concrete syntax</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-02-25 22:19:20 CET</I><BR> <I>Last update: 2006-09-01 16:37:08 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>
@@ -36,9 +36,11 @@ This type of booleans is for internal use only.
<PRE> <PRE>
param PBool = PTrue | PFalse ; param PBool = PTrue | PFalse ;
oper Error : Type = variants {} ; -- the empty type
oper Int : Type = variants {} ; -- the type of integers oper Int : Type = variants {} ; -- the type of integers
oper Ints : Int -&gt; Type = variants {} ; -- the type of integers from 0 to n oper Ints : Int -&gt; Type = variants {} ; -- the type of integers from 0 to n
oper error : Str -&gt; Error = variants {} ; -- forms error message
oper length : Tok -&gt; Int = variants {} ; -- length of string oper length : Tok -&gt; Int = variants {} ; -- length of string
oper drop : Int -&gt; Tok -&gt; Tok = variants {} ; -- drop prefix of length oper drop : Int -&gt; Tok -&gt; Tok = variants {} ; -- drop prefix of length
oper take : Int -&gt; Tok -&gt; Tok = variants {} ; -- take prefix of length oper take : Int -&gt; Tok -&gt; Tok = variants {} ; -- take prefix of length

View File

@@ -13,7 +13,7 @@
<HR NOSHADE SIZE=1> <HR NOSHADE SIZE=1>
<P></P> <P></P>
<P> <P>
Last update: 2006-06-03 10:54:51 CEST Last update: 2006-06-02 17:49:44 CEST
</P> </P>
<P> <P>
Produced by Produced by

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> A Small Predication Library</H1> <P ALIGN="center"><CENTER><H1> A Small Predication Library</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-02-25 23:46:32 CET</I><BR> <I>Last update: 2006-02-28 09:26:58 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> The GF Prelude</H1> <P ALIGN="center"><CENTER><H1> The GF Prelude</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-02-25 22:31:06 CET</I><BR> <I>Last update: 2006-02-27 09:41:31 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Question: Questions and Interrogative Pronouns</H1> <P ALIGN="center"><CENTER><H1> Question: Questions and Interrogative Pronouns</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 19:22:41 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Relative clauses and pronouns</H1> <P ALIGN="center"><CENTER><H1> Relative clauses and pronouns</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 19:23:30 CEST</I><BR> <I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Sentence: Sentences, Clauses, and Imperatives</H1> <P ALIGN="center"><CENTER><H1> Sentence: Sentences, Clauses, and Imperatives</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 19:24:56 CEST</I><BR> <I>Last update: 2006-12-18 16:59:02 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>
@@ -107,6 +107,13 @@ anteriority, which are defined in <A HREF="Common.html"><CODE>Common</CODE></A>.
UseCl : Tense -&gt; Ant -&gt; Pol -&gt; Cl -&gt; S ; UseCl : Tense -&gt; Ant -&gt; Pol -&gt; Cl -&gt; S ;
UseQCl : Tense -&gt; Ant -&gt; Pol -&gt; QCl -&gt; QS ; UseQCl : Tense -&gt; Ant -&gt; Pol -&gt; QCl -&gt; QS ;
UseRCl : Tense -&gt; Ant -&gt; Pol -&gt; RCl -&gt; RS ; UseRCl : Tense -&gt; Ant -&gt; Pol -&gt; RCl -&gt; RS ;
</PRE>
<P></P>
<P>
An adverb can be added to the beginning of a sentence.
</P>
<PRE>
AdvS : Adv -&gt; S -&gt; S ; -- today, I will go home
} }
</PRE> </PRE>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Structural: Structural Words</H1> <P ALIGN="center"><CENTER><H1> Structural: Structural Words</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-22 19:26:01 CEST</I><BR> <I>Last update: 2006-11-27 16:41:30 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>
@@ -63,6 +63,7 @@ This is an alphabetical list of structural words
everywhere_Adv : Adv ; everywhere_Adv : Adv ;
first_Ord : Ord ; first_Ord : Ord ;
few_Det : Det ; few_Det : Det ;
for_Prep : Prep ;
from_Prep : Prep ; from_Prep : Prep ;
he_Pron : Pron ; he_Pron : Pron ;
here_Adv : Adv ; here_Adv : Adv ;

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Symbolic expressions</H1> <P ALIGN="center"><CENTER><H1> Symbolic expressions</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-03-17 12:02:40 CET</I><BR> <I>Last update: 2006-11-23 12:18:08 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>
@@ -15,7 +15,9 @@
<UL> <UL>
<LI><A HREF="#toc1">Noun phrases with symbols and numbers</A> <LI><A HREF="#toc1">Noun phrases with symbols and numbers</A>
<LI><A HREF="#toc2">Sentence consisting of a formula</A> <LI><A HREF="#toc2">Sentence consisting of a formula</A>
<LI><A HREF="#toc3">Symbol lists</A> <LI><A HREF="#toc3">Symbols as numerals</A>
<LI><A HREF="#toc4">Symbol lists</A>
<LI><A HREF="#toc5">Obsolescent</A>
</UL> </UL>
<P></P> <P></P>
@@ -42,7 +44,7 @@ grammar <A HREF="Lang.html">Lang</A>.
SymbPN : Symb -&gt; PN ; -- x SymbPN : Symb -&gt; PN ; -- x
IntPN : Int -&gt; PN ; -- 27 IntPN : Int -&gt; PN ; -- 27
FloatPN : Float -&gt; PN ; -- 3.14159 FloatPN : Float -&gt; PN ; -- 3.14159
CNIntNP : CN -&gt; Int -&gt; NP ; -- level 53 CNNumNP : CN -&gt; Num -&gt; NP ; -- level five ; level 5
CNSymbNP : Det -&gt; CN -&gt; [Symb] -&gt; NP ; -- (the) (2) numbers x and y CNSymbNP : Det -&gt; CN -&gt; [Symb] -&gt; NP ; -- (the) (2) numbers x and y
</PRE> </PRE>
<P></P> <P></P>
@@ -53,6 +55,13 @@ grammar <A HREF="Lang.html">Lang</A>.
</PRE> </PRE>
<P></P> <P></P>
<A NAME="toc3"></A> <A NAME="toc3"></A>
<H2>Symbols as numerals</H2>
<PRE>
SymbNum : Symb -&gt; Num ; -- n
SymbOrd : Symb -&gt; Ord ; -- n'th
</PRE>
<P></P>
<A NAME="toc4"></A>
<H2>Symbol lists</H2> <H2>Symbol lists</H2>
<P> <P>
A symbol list has at least two elements. The last two are separated A symbol list has at least two elements. The last two are separated
@@ -66,6 +75,12 @@ This produces <I>x, y and z</I>, in English.
fun fun
MkSymb : String -&gt; Symb ; MkSymb : String -&gt; Symb ;
</PRE>
<P></P>
<A NAME="toc5"></A>
<H2>Obsolescent</H2>
<PRE>
CNIntNP : CN -&gt; Int -&gt; NP ; -- level 53 (covered by CNNumNP)
} }
</PRE> </PRE>

View File

@@ -0,0 +1,43 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
<TITLE> Symbolic: Noun Phrases with mathematical symbols</TITLE>
</HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Symbolic: Noun Phrases with mathematical symbols</H1>
<FONT SIZE="4">
<I>Last update: 2006-12-22 14:08:31 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>
incomplete resource Symbolic = open Symbol, Grammar in {
oper
symb : overload {
symb : Str -&gt; NP ; -- x
symb : Int -&gt; NP ; -- 23
symb : Float -&gt; NP ; -- 0.99
symb : N -&gt; Int -&gt; NP ; -- level 4
symb : CN -&gt; Num -&gt; NP ; -- level four
symb : Det -&gt; N -&gt; Str -&gt; Str -&gt; NP ; -- the levels i and j
symb : Det -&gt; CN -&gt; [Symb] -&gt; NP -- the basic levels i, j, and k
} ;
mkSymb : Str -&gt; Symb ;
</PRE>
<P></P>
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
<!-- cmdline: txt2tags -thtml -\-toc api/Symbolic.txt -->
</BODY></HTML>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> Text: Texts</H1> <P ALIGN="center"><CENTER><H1> Text: Texts</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-06-14 23:03:43 CEST</I><BR> <I>Last update: 2006-06-15 09:19:39 CEST</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -6,7 +6,7 @@
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> The construction of verb phrases</H1> <P ALIGN="center"><CENTER><H1> The construction of verb phrases</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Last update: 2006-02-26 18:02:58 CET</I><BR> <I>Last update: 2006-02-27 09:41:31 CET</I><BR>
</FONT></CENTER> </FONT></CENTER>
<P></P> <P></P>

View File

@@ -2,47 +2,14 @@
<HTML> <HTML>
<HEAD> <HEAD>
<META NAME="generator" CONTENT="http://txt2tags.sf.net"> <META NAME="generator" CONTENT="http://txt2tags.sf.net">
<TITLE>GF Resource Grammar Library v. 1.0</TITLE> <TITLE>GF Resource Grammar Library v. 1.1</TITLE>
</HEAD><BODY BGCOLOR="white" TEXT="black"> </HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1>GF Resource Grammar Library v. 1.0</H1> <P ALIGN="center"><CENTER><H1>GF Resource Grammar Library v. 1.1</H1>
<FONT SIZE="4"> <FONT SIZE="4">
<I>Author: Aarne Ranta &lt;aarne (at) cs.chalmers.se&gt;</I><BR> <I>Author: Aarne Ranta &lt;aarne (at) cs.chalmers.se&gt;</I><BR>
Last update: Mon Jun 26 13:35:19 2006 Last update: Fri Dec 22 14:22:49 2006
</FONT></CENTER> </FONT></CENTER>
<P></P>
<HR NOSHADE SIZE=1>
<P></P>
<UL>
<LI><A HREF="#toc1">Authors</A>
<LI><A HREF="#toc2">License</A>
<LI><A HREF="#toc3">Scope</A>
<LI><A HREF="#toc4">Quick start</A>
<LI><A HREF="#toc5">Encoding</A>
<UL>
<LI><A HREF="#toc6">The language independent ground API</A>
<LI><A HREF="#toc7">The language-dependent APIs</A>
<LI><A HREF="#toc8">Special-purpose APIs</A>
</UL>
<LI><A HREF="#toc9">Using the library</A>
<UL>
<LI><A HREF="#toc10">The compiled version</A>
<LI><A HREF="#toc11">Linking applications to libraries</A>
<LI><A HREF="#toc12">Using the libraries as top-level grammars</A>
</UL>
<LI><A HREF="#toc13">Example applications</A>
<UL>
<LI><A HREF="#toc14">Bronzeage</A>
<LI><A HREF="#toc15">Dialogue</A>
<LI><A HREF="#toc16">Animals</A>
</UL>
<LI><A HREF="#toc17">Known bugs and missing components</A>
<LI><A HREF="#toc18">More reading</A>
</UL>
<P></P>
<HR NOSHADE SIZE=1>
<P></P>
<P> <P>
The GF Resource Grammar Library defines the basic grammar of The GF Resource Grammar Library defines the basic grammar of
ten languages: ten languages:
@@ -52,13 +19,28 @@ A still incomplete implementation for Arabic is also
included. included.
</P> </P>
<P> <P>
<B>New</B>: <A HREF="../../../doc/resource.pdf">User manual of the resource library</A>. <B>New in Version 1.1</B>
</P> </P>
<UL>
<LI>Simpler APIs using overloading:
<UL>
<LI><A HREF="gfdoc/Constructors.html">Constructors</A>: almost all trees in a category <CODE>C</CODE>
can be built by the function <CODE>mkC</CODE>.
<LI><A HREF="gfdoc/Combinators.html">Combinators</A>: cross-cut grammatical functions:
predication, application, modification, coordination.
<LI><A HREF="gfdoc/Symbolig.html">Symbolic</A>: noun phrases with mathematical symbols.
</UL>
</UL>
<P> <P>
<B>Notice</B>. This document concerns the API v. 1.0 released An example of use is <A HREF="../../../examples/logic"><CODE>logic</CODE></A>.
on June 22, 2006. The API of version 1.0 remains valid and can be used in combination with this.
</P> </P>
<A NAME="toc1"></A> <UL>
<LI>Some new functions.
<LI>Bug fixes.
</UL>
<H2>Authors</H2> <H2>Authors</H2>
<P> <P>
Inger Andersson and Therese Soderberg (Spanish morphology), Inger Andersson and Therese Soderberg (Spanish morphology),
@@ -93,14 +75,12 @@ Saara Myllyntausta,
Wanjiku Ng'ang'a, Wanjiku Ng'ang'a,
Jordi Saludes. Jordi Saludes.
</P> </P>
<A NAME="toc2"></A>
<H2>License</H2> <H2>License</H2>
<P> <P>
The GF Resource Grammar Library is open-source software licensed under The GF Resource Grammar Library is open-source software licensed under
GNU General Public License. See the file <A HREF="../LICENSE">LICENSE</A> for more GNU General Public License. See the file <A HREF="../LICENSE">LICENSE</A> for more
details. details.
</P> </P>
<A NAME="toc3"></A>
<H2>Scope</H2> <H2>Scope</H2>
<P> <P>
Coverage, for each language: Coverage, for each language:
@@ -131,7 +111,6 @@ Presentation:
<LI>example collections <LI>example collections
</UL> </UL>
<A NAME="toc4"></A>
<H2>Quick start</H2> <H2>Quick start</H2>
<P> <P>
Go to the main directory, compile the grammars, and run a test. Go to the main directory, compile the grammars, and run a test.
@@ -166,7 +145,6 @@ For more examples, see the <A HREF="clt2006.html">Overview slides</A>.
The <CODE>make</CODE> procedure does not make Arabic, but it can The <CODE>make</CODE> procedure does not make Arabic, but it can
be compiled in a similar way as the other languages. be compiled in a similar way as the other languages.
</P> </P>
<A NAME="toc5"></A>
<H2>Encoding</H2> <H2>Encoding</H2>
<P> <P>
Finnish, German, Romance, and Scandinavian languages are in isolatin-1. Finnish, German, Romance, and Scandinavian languages are in isolatin-1.
@@ -177,7 +155,6 @@ Arabic and Russian are in UTF-8.
<P> <P>
English is in pure ASCII. English is in pure ASCII.
</P> </P>
<A NAME="toc6"></A>
<H3>The language independent ground API</H3> <H3>The language independent ground API</H3>
<P> <P>
This API is accessible by both <CODE>present</CODE> and <CODE>alltenses</CODE>. This API is accessible by both <CODE>present</CODE> and <CODE>alltenses</CODE>.
@@ -211,7 +188,6 @@ The documentation of the individual modules:
<LI><A HREF="gfdoc/Lang.html">Lang</A>: the main module comprising both <CODE>Grammar</CODE> and <CODE>Lexicon</CODE> <LI><A HREF="gfdoc/Lang.html">Lang</A>: the main module comprising both <CODE>Grammar</CODE> and <CODE>Lexicon</CODE>
</UL> </UL>
<A NAME="toc7"></A>
<H3>The language-dependent APIs</H3> <H3>The language-dependent APIs</H3>
<UL> <UL>
<LI><A HREF="gfdoc/ParadigmsDan.html">ParadigmsDan</A>: Danish lexical paradigms <LI><A HREF="gfdoc/ParadigmsDan.html">ParadigmsDan</A>: Danish lexical paradigms
@@ -269,7 +245,6 @@ This is the structure of each language-dependent top module.
<LI><A HREF="../swedish/SwedishAbs.gf">Swedish</A>: Swedish with all extras <LI><A HREF="../swedish/SwedishAbs.gf">Swedish</A>: Swedish with all extras
</UL> </UL>
<A NAME="toc8"></A>
<H3>Special-purpose APIs</H3> <H3>Special-purpose APIs</H3>
<H4>Present</H4> <H4>Present</H4>
<P> <P>
@@ -297,9 +272,7 @@ gesture. Some functions for constructing demonstratives are provided.
<LI><A HREF="gfdoc/Symbol.html">Symbol</A>: symbols and numbers in text <LI><A HREF="gfdoc/Symbol.html">Symbol</A>: symbols and numbers in text
</UL> </UL>
<A NAME="toc9"></A>
<H2>Using the library</H2> <H2>Using the library</H2>
<A NAME="toc10"></A>
<H3>The compiled version</H3> <H3>The compiled version</H3>
<P> <P>
The simplest way to get the library is to install the precompiled version The simplest way to get the library is to install the precompiled version
@@ -321,7 +294,6 @@ library. Use one (or several) of the following packages instead:
multimodal dialogue applications multimodal dialogue applications
</UL> </UL>
<A NAME="toc11"></A>
<H3>Linking applications to libraries</H3> <H3>Linking applications to libraries</H3>
<P> <P>
Typically, open one of Typically, open one of
@@ -360,7 +332,6 @@ The <CODE>mathematical</CODE> API shares modules with
<CODE>present</CODE>. It is therefore not a good idea to use it in combination with <CODE>present</CODE>. It is therefore not a good idea to use it in combination with
<CODE>alltenses</CODE>. <CODE>alltenses</CODE>.
</P> </P>
<A NAME="toc12"></A>
<H3>Using the libraries as top-level grammars</H3> <H3>Using the libraries as top-level grammars</H3>
<P> <P>
If you have done <CODE>make</CODE> in <CODE>lib/resource-1.0</CODE>, you will have If you have done <CODE>make</CODE> in <CODE>lib/resource-1.0</CODE>, you will have
@@ -399,14 +370,12 @@ It is also possible to parse in Scandinavian languages
(Danish, Norwegian, Swedish) and, with enough memory (<CODE>gf +RTS -K512M</CODE>), (Danish, Norwegian, Swedish) and, with enough memory (<CODE>gf +RTS -K512M</CODE>),
German. German.
</P> </P>
<A NAME="toc13"></A>
<H2>Example applications</H2> <H2>Example applications</H2>
<P> <P>
These applications are meant to serve as starting points for These applications are meant to serve as starting points for
new applications, showing how the libraries can be used in new applications, showing how the libraries can be used in
typical situations. typical situations.
</P> </P>
<A NAME="toc14"></A>
<H3>Bronzeage</H3> <H3>Bronzeage</H3>
<P> <P>
The <A HREF="../../../examples/bronzeage">examples/bronzeage</A> The <A HREF="../../../examples/bronzeage">examples/bronzeage</A>
@@ -414,7 +383,6 @@ grammar set implements a language fragment
based on the Swadesh list of 200 words. It is useful for based on the Swadesh list of 200 words. It is useful for
things like language training. things like language training.
</P> </P>
<A NAME="toc15"></A>
<H3>Dialogue</H3> <H3>Dialogue</H3>
<P> <P>
The <A HREF="../../../examples/dialogue">examples/dialogue</A> The <A HREF="../../../examples/dialogue">examples/dialogue</A>
@@ -423,7 +391,6 @@ multimodal dialogue system.
Its purpose is to serve as a prototype for applications in the Its purpose is to serve as a prototype for applications in the
TALK project. TALK project.
</P> </P>
<A NAME="toc16"></A>
<H3>Animals</H3> <H3>Animals</H3>
<P> <P>
The <A HREF="../../../examples/animal">examples/animal</A> The <A HREF="../../../examples/animal">examples/animal</A>
@@ -431,7 +398,6 @@ grammar set implements some queries about animals.
Its purpose is to serve as a prototype for example-based Its purpose is to serve as a prototype for example-based
grammar writing. grammar writing.
</P> </P>
<A NAME="toc17"></A>
<H2>Known bugs and missing components</H2> <H2>Known bugs and missing components</H2>
<P> <P>
Danish Danish
@@ -494,11 +460,10 @@ Spanish
<P> <P>
Swedish Swedish
</P> </P>
<A NAME="toc18"></A>
<H2>More reading</H2> <H2>More reading</H2>
<P> <P>
<A HREF="../../../doc/resource.pdf">GF Resource Grammar Library</A> (pdf). <A HREF="../../../doc/resource.pdf">GF Resource Grammar Library</A> (pdf).
Printable user manual with API documentation. Printable user manual with API documentation (version 1.0).
</P> </P>
<P> <P>
<A HREF="gslt-sem-2006.html">Grammars as Software Libraries</A>. Slides <A HREF="gslt-sem-2006.html">Grammars as Software Libraries</A>. Slides
@@ -528,5 +493,5 @@ examples are from <CODE>multimodal/old</CODE>, which is a reduced-size API.
</P> </P>
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) --> <!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
<!-- cmdline: txt2tags -\-toc index.txt --> <!-- cmdline: txt2tags index.txt -->
</BODY></HTML> </BODY></HTML>

View File

@@ -1,4 +1,4 @@
GF Resource Grammar Library v. 1.0 GF Resource Grammar Library v. 1.1
Author: Aarne Ranta <aarne (at) cs.chalmers.se> Author: Aarne Ranta <aarne (at) cs.chalmers.se>
Last update: %%date(%c) Last update: %%date(%c)
@@ -16,10 +16,23 @@ Italian, Norwegian, Russian, Spanish, Swedish.
A still incomplete implementation for Arabic is also A still incomplete implementation for Arabic is also
included. included.
**New**: [User manual of the resource library ../../../doc/resource.pdf]. **New in Version 1.1**
- Simpler APIs using overloading:
- [Constructors gfdoc/Constructors.html]: almost all trees in a category ``C``
can be built by the function ``mkC``.
- [Combinators gfdoc/Combinators.html]: cross-cut grammatical functions:
predication, application, modification, coordination.
- [Symbolic gfdoc/Symbolig.html]: noun phrases with mathematical symbols.
An example of use is [``logic`` ../../../examples/logic].
The API of version 1.0 remains valid and can be used in combination with this.
- Some new functions.
- Bug fixes.
**Notice**. This document concerns the API v. 1.0 released
on June 22, 2006.
==Authors== ==Authors==
@@ -400,7 +413,7 @@ Swedish
==More reading== ==More reading==
[GF Resource Grammar Library ../../../doc/resource.pdf] (pdf). [GF Resource Grammar Library ../../../doc/resource.pdf] (pdf).
Printable user manual with API documentation. Printable user manual with API documentation (version 1.0).
[Grammars as Software Libraries gslt-sem-2006.html]. Slides [Grammars as Software Libraries gslt-sem-2006.html]. Slides
with background and motivation for the resource grammar library. with background and motivation for the resource grammar library.