From ecce36b7772c8c91de15641fa790fe5ff6aceb18 Mon Sep 17 00:00:00 2001
From: aarne
+Notice. This document concerns the API v. 1.0 which has not
+yet been "officially" released. You can find the beginnings of it
+in
+The API is divided into a bunch of
+
+The documentation of the individual modules:
+
-Author:
-Last update: Tue Jan 17 15:29:08 2006
-
Produced by
gfdoc - a rudimentary GF document generator.
(c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.
-==
+This files gives a list of words whose purpose is to test the GF
+resource grammar. It covers all lexical categories of Cat.
+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.
+Note. This module uses right-recursive lists. If backward
+compatibility with API 0.9 is needed, use
+SeqConjunction.
+
-Author:
-Last update: Tue Jan 17 15:29:08 2006
-
Produced by
gfdoc - a rudimentary GF document generator.
(c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.
-==
+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 Test.
-Author:
-Last update: Tue Jan 17 15:29:08 2006
-
Produced by
gfdoc - a rudimentary GF document generator.
(c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.
-==
+This lexicon is used when developing a grammar, and called by
+Test. The full lexicon is divided between
+Structural, Basic, and Numeral.
+Words of open classes
+
-structural
+Structural words
Author:
-Last update: Tue Jan 17 15:29:08 2006
+Last update: Wed Jan 18 19:08:00 2006
Produced by
diff --git a/lib/resource-1.0/doc/gfdoc/Math.html b/lib/resource-1.0/doc/gfdoc/Math.html
index 479f0017f..da2abcf18 100644
--- a/lib/resource-1.0/doc/gfdoc/Math.html
+++ b/lib/resource-1.0/doc/gfdoc/Math.html
@@ -2,50 +2,56 @@
-Author:
-Last update: Tue Jan 17 15:29:08 2006
-
Produced by
gfdoc - a rudimentary GF document generator.
(c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.
-==
+Note. This module is not automatically included in the main
+grammar Lang.
A symbol list has at least two elements. The last two are separated
by a conjunction (and in English), the others by commas.
diff --git a/lib/resource-1.0/doc/gfdoc/Noun.html b/lib/resource-1.0/doc/gfdoc/Noun.html
index 6abb0e119..06802e26b 100644
--- a/lib/resource-1.0/doc/gfdoc/Noun.html
+++ b/lib/resource-1.0/doc/gfdoc/Noun.html
@@ -7,7 +7,7 @@
GF Resource Grammar Library v. 1.0
+
+Author: Aarne Ranta <aarne (at) cs.chalmers.se>
+Last update: Wed Jan 18 19:19:12 2006
+
+
+
+
+
+
+
+GF/lib/resource-1.0/. See the
+resource-1.0/README for
+details on how it differs from previous versions
+and how much has been implemented
+The language independent API
+abstract modules.
+The following figure gives the dependencies of these modules.
+
+
+
+
+
+The language-dependent APIs
+
+
+
+
+
+
+
diff --git a/lib/resource-1.0/doc/gf-resource-lib.txt b/lib/resource-1.0/doc/gf-resource-lib.txt
new file mode 100644
index 000000000..eed8c6532
--- /dev/null
+++ b/lib/resource-1.0/doc/gf-resource-lib.txt
@@ -0,0 +1,50 @@
+GF Resource Grammar Library v. 1.0
+Author: Aarne Ranta Adjectives and adjectival phrases
Author:
-Last update: Tue Jan 17 15:29:07 2006
+Last update: Wed Jan 18 19:07:58 2006
Adverbs and adverbial phrases
Author:
-Last update: Tue Jan 17 15:29:07 2006
+Last update: Wed Jan 18 19:07:59 2006
A Basic Lexicon
+Author:
+Last update: Wed Jan 18 19:07:59 2006
+
+
+
A Basic Lexicon
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 ;
diff --git a/lib/resource-1.0/doc/gfdoc/Cat.html b/lib/resource-1.0/doc/gfdoc/Cat.html
index f0e840a53..383c03b19 100644
--- a/lib/resource-1.0/doc/gfdoc/Cat.html
+++ b/lib/resource-1.0/doc/gfdoc/Cat.html
@@ -7,7 +7,7 @@
The category system
Author:
-Last update: Tue Jan 17 15:29:08 2006
+Last update: Wed Jan 18 19:07:59 2006
Coordination
Author:
-Last update: Tue Jan 17 15:29:08 2006
+Last update: Wed Jan 18 19:07:59 2006
abstract Conjunction = Cat ** {
diff --git a/lib/resource-1.0/doc/gfdoc/Lang.html b/lib/resource-1.0/doc/gfdoc/Lang.html
index 2ffc0d1c4..a8619c02c 100644
--- a/lib/resource-1.0/doc/gfdoc/Lang.html
+++ b/lib/resource-1.0/doc/gfdoc/Lang.html
@@ -2,27 +2,35 @@
+ The Main Module of the Resource Grammar
+Author:
+Last update: Wed Jan 18 19:07:59 2006
+
+
The Main Module of the Resource Grammar
abstract Lang =
diff --git a/lib/resource-1.0/doc/gfdoc/Lex.html b/lib/resource-1.0/doc/gfdoc/Lex.html
index e750ae951..014773522 100644
--- a/lib/resource-1.0/doc/gfdoc/Lex.html
+++ b/lib/resource-1.0/doc/gfdoc/Lex.html
@@ -2,31 +2,44 @@
+ Test lexicon
+Author:
+Last update: Wed Jan 18 19:07:59 2006
+
+
+
Test lexicon
abstract Lex = Cat ** {
-
+
+
+
fun
walk_V : V ;
help_V2 : V2 ;
@@ -44,7 +57,7 @@ gfdoc - a rudimentary GF document generator.
only_Predet, all_Predet : Predet ;
diff --git a/lib/resource-1.0/doc/gfdoc/ListConjunction.html b/lib/resource-1.0/doc/gfdoc/ListConjunction.html
index c22707c21..1c17b4449 100644
--- a/lib/resource-1.0/doc/gfdoc/ListConjunction.html
+++ b/lib/resource-1.0/doc/gfdoc/ListConjunction.html
@@ -14,7 +14,7 @@
+
Symbolic expressions
+Author:
+Last update: Wed Jan 18 19:08:00 2006
-
Symbolic expressions
abstract Math = Cat ** {
-
-Noun phrases with symbols
+
+Noun phrases with symbols
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
-
-Symbol lists
+
+Symbol lists
The construction of nouns, noun phrases, and determiners
Author:
-Last update: Tue Jan 17 15:29:09 2006
+Last update: Wed Jan 18 19:08:00 2006
- UseN2 : N2 -> CN ; -- son - UseN3 : N3 -> CN ; -- flight + UseN2 : N2 -> CN ; -- son + UseN3 : N3 -> CN ; -- flight
-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).
- 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
diff --git a/lib/resource-1.0/doc/gfdoc/Numeral.html b/lib/resource-1.0/doc/gfdoc/Numeral.html index 5a7d8a2a2..98997d242 100644 --- a/lib/resource-1.0/doc/gfdoc/Numeral.html +++ b/lib/resource-1.0/doc/gfdoc/Numeral.html @@ -7,7 +7,7 @@
Author: -Last update: Tue Jan 17 15:29:11 2006 +Last update: Wed Jan 18 19:08:02 2006
Produced by diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsGer.html b/lib/resource-1.0/doc/gfdoc/ParadigmsGer.html index 1d1ced58c..942fa0746 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsGer.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsGer.html @@ -18,14 +18,15 @@
Author: -Last update: Tue Jan 17 15:29:11 2006 +Last update: Wed Jan 18 19:08:02 2006
Produced by @@ -185,10 +186,10 @@ The regular genitive is s, omitted after s.
-Adjectives need four forms: two for the positive and one for the other degrees. +Adjectives need three forms, one for each degree.
- mkA : (x1,_,_,x4 : Str) -> A ; -- gut,gut,besser,best + mkA : (x1,_,x3 : Str) -> A ; -- gut,besser,beste
@@ -214,6 +215,15 @@ Two-place adjectives are formed by adding a preposition to an adjective.
++Adverbs are just strings. +
++ mkAdv : Str -> Adv ; ++ +
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 ;
- +The worst-case constructor needs six forms: @@ -302,7 +312,7 @@ Reflexive verbs can take reflexive pronouns of different cases. reflV : V -> Case -> V ;
- +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 ;
- +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,_,_
- +
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 AS, A2S, AV, A2V are just A.
AS, A2S, AV, A2V : Type ;
The definitions should not bother the user of the API. So they are diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsSwe.html b/lib/resource-1.0/doc/gfdoc/ParadigmsSwe.html index 9198079db..40bb80aab 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsSwe.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsSwe.html @@ -43,7 +43,7 @@
Author: -Last update: Tue Jan 17 15:29:11 2006 +Last update: Wed Jan 18 19:08:02 2006
Produced by diff --git a/lib/resource-1.0/doc/gfdoc/Phrase.html b/lib/resource-1.0/doc/gfdoc/Phrase.html index fa7cba3a1..eb3f8c015 100644 --- a/lib/resource-1.0/doc/gfdoc/Phrase.html +++ b/lib/resource-1.0/doc/gfdoc/Phrase.html @@ -7,7 +7,7 @@
-Author: -Last update: Tue Jan 17 15:29:10 2006 -
-Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.
--== -
+ +
abstract SeqConjunction = Cat ** {
This module is for backward compatibility with API 0.9. -To be used instead of Conjunction. +To be used instead of Conjunction.
fun
diff --git a/lib/resource-1.0/doc/gfdoc/Structural.html b/lib/resource-1.0/doc/gfdoc/Structural.html
index 18403f225..917cd1de4 100644
--- a/lib/resource-1.0/doc/gfdoc/Structural.html
+++ b/lib/resource-1.0/doc/gfdoc/Structural.html
@@ -7,7 +7,7 @@
GF Resource Grammar API for Structural Words
Author:
-Last update: Tue Jan 17 15:29:10 2006
+Last update: Wed Jan 18 19:08:01 2006
diff --git a/lib/resource-1.0/doc/gfdoc/Tense.html b/lib/resource-1.0/doc/gfdoc/Tense.html
index ec492d50b..cb85be2f8 100644
--- a/lib/resource-1.0/doc/gfdoc/Tense.html
+++ b/lib/resource-1.0/doc/gfdoc/Tense.html
@@ -2,27 +2,38 @@
+ Tense, Polarity, and Anteriority
+ Tense, Polarity, and Anteriority
+Author:
+Last update: Wed Jan 18 19:08:01 2006
+
+
-Author: -Last update: Tue Jan 17 15:29:10 2006 -
-Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.
+ +-== +This module defines the abstract parameters of tense, polarity, and +anteriority, which are used in Tensed 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 passé simple of +Romance languages.
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
}
diff --git a/lib/resource-1.0/doc/gfdoc/Tensed.html b/lib/resource-1.0/doc/gfdoc/Tensed.html
index 8c50e3800..989e0e0e8 100644
--- a/lib/resource-1.0/doc/gfdoc/Tensed.html
+++ b/lib/resource-1.0/doc/gfdoc/Tensed.html
@@ -2,27 +2,37 @@
+-Author: -Last update: Tue Jan 17 15:29:10 2006 -
-Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.
+ +-== +This module defines the 2 x 4 x 4 = 16 forms generated by different +combinations of tense, polarity, and +anteriority, which are defined in Tense. +A variant with just the polarity variation is given in +Untensed.
abstract Tensed = Cat, Tense ** {
@@ -35,6 +45,27 @@ gfdoc - a rudimentary GF document generator.
}
+
+Examples for English S:
+
+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 +
diff --git a/lib/resource-1.0/doc/gfdoc/Test.html b/lib/resource-1.0/doc/gfdoc/Test.html index 80557a13d..2d2e78d4d 100644 --- a/lib/resource-1.0/doc/gfdoc/Test.html +++ b/lib/resource-1.0/doc/gfdoc/Test.html @@ -2,27 +2,37 @@ +-Author: -Last update: Tue Jan 17 15:29:10 2006 -
-Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.
+ +-== +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 Lang. +The main constructs missing are tenses of sentences, numerals, and +comprehensive lexicon.
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
** {} ;
diff --git a/lib/resource-1.0/doc/gfdoc/Untensed.html b/lib/resource-1.0/doc/gfdoc/Untensed.html
index 0172ca7cc..45e75f01d 100644
--- a/lib/resource-1.0/doc/gfdoc/Untensed.html
+++ b/lib/resource-1.0/doc/gfdoc/Untensed.html
@@ -2,27 +2,35 @@
+-Author: -Last update: Tue Jan 17 15:29:10 2006 -
-Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.
+ +-== +This module defines just positive and negative present tense forms. +Am alternative with full variation in polarity, tense, and anteriority is +given in Untensed.
abstract Untensed = Cat ** {
diff --git a/lib/resource-1.0/doc/gfdoc/Verb.html b/lib/resource-1.0/doc/gfdoc/Verb.html
index 38584450c..4472024d1 100644
--- a/lib/resource-1.0/doc/gfdoc/Verb.html
+++ b/lib/resource-1.0/doc/gfdoc/Verb.html
@@ -7,7 +7,7 @@
The construction of verb phrases
Author:
-Last update: Tue Jan 17 15:29:10 2006
+Last update: Wed Jan 18 19:08:02 2006
diff --git a/lib/resource-1.0/english/BasicEng.gf b/lib/resource-1.0/english/BasicEng.gf
index b2e9d4057..deb15beb6 100644
--- a/lib/resource-1.0/english/BasicEng.gf
+++ b/lib/resource-1.0/english/BasicEng.gf
@@ -129,6 +129,7 @@ lin
open_V2 = dirV2 (regV "open") ;
paint_V2A = mkV2A (regV "paint") [] ;
paper_N = regN "paper" ;
+ paris_PN = regPN "Paris" nonhuman ;
peace_N = regN "peace" ;
pen_N = regN "pen" ;
planet_N = regN "planet" ;
diff --git a/lib/resource-1.0/german/BasicGer.gf b/lib/resource-1.0/german/BasicGer.gf
index 10252947d..e55fb0efe 100644
--- a/lib/resource-1.0/german/BasicGer.gf
+++ b/lib/resource-1.0/german/BasicGer.gf
@@ -136,6 +136,7 @@ lin
open_V2 = dirV2 (regV "öffnen") ;
paint_V2A = mkV2A (regV "malen") accPrep ;
paper_N = reg2N "Papier" "Papiere" neuter ;
+ paris_PN = mkPN "Paris" "Paris" ;
peace_N = mkN "Friede" "Frieden" "Frieden" "Friedens" "Frieden" "Frieden" masculine ;
pen_N = regN "Bleistift" ; ----
planet_N = reg2N "Planet" "Planeten" masculine ;
diff --git a/lib/resource-1.0/swedish/BasicSwe.gf b/lib/resource-1.0/swedish/BasicSwe.gf
index 521bbe177..e8a55fcbe 100644
--- a/lib/resource-1.0/swedish/BasicSwe.gf
+++ b/lib/resource-1.0/swedish/BasicSwe.gf
@@ -131,6 +131,7 @@ lin
open_V2 = dirV2 (regV "öppna") ;
paint_V2A = mkV2A (regV "måla") [] ;
paper_N = mkN "papper" "pappret" "papper" "pappren" ;
+ paris_PN = regPN "Paris" neutrum ;
peace_N = regN "fred" utrum ; ---- ar?
pen_N = regN "penna" utrum ;
planet_N = mk2N "planet" "planeter" ;