From f99576264fa50fc4a438a19e66de167607a182b0 Mon Sep 17 00:00:00 2001 From: aarne Date: Wed, 24 May 2006 16:51:52 +0000 Subject: [PATCH] cleaned up in multimodal and dialogue --- examples/dialogue/AgendaEng.gf | 4 +- examples/dialogue/AgendaFin.gf | 4 +- examples/dialogue/AgendaFre.gf | 4 +- examples/dialogue/AgendaSwe.gf | 4 +- examples/dialogue/AuxFin.gf | 2 +- examples/dialogue/AuxFre.gf | 2 +- examples/dialogue/AuxSwe.gf | 4 +- examples/dialogue/DialogueFin.gf | 4 +- examples/dialogue/DialogueFre.gf | 4 +- examples/dialogue/DialogueI.gf | 2 + examples/dialogue/DialogueSwe.gf | 4 +- examples/dialogue/LightsFin.gf | 4 +- examples/dialogue/LightsFre.gf | 4 +- examples/dialogue/LightsSwe.gf | 5 +- examples/dialogue/README.txt | 3 + lib/resource-1.0/Makefile | 7 +- lib/resource-1.0/common/CommonX.gf | 26 +++--- lib/resource-1.0/doc/gfdoc/Adjective.html | 9 +- lib/resource-1.0/doc/gfdoc/Adverb.html | 11 ++- lib/resource-1.0/doc/gfdoc/Cat.html | 48 +++------- lib/resource-1.0/doc/gfdoc/Common.html | 68 +++++++++++++-- lib/resource-1.0/doc/gfdoc/Conjunction.html | 20 +++-- lib/resource-1.0/doc/gfdoc/Idiom.html | 9 +- lib/resource-1.0/doc/gfdoc/Lang.html | 9 +- lib/resource-1.0/doc/gfdoc/Mathematical.html | 9 +- lib/resource-1.0/doc/gfdoc/Multi.html | 87 +++++++++++++++++++ lib/resource-1.0/doc/gfdoc/Noun.html | 24 +++-- lib/resource-1.0/doc/gfdoc/Numeral.html | 9 +- lib/resource-1.0/doc/gfdoc/ParadigmsEng.html | 86 ++++++++++-------- lib/resource-1.0/doc/gfdoc/ParadigmsFin.html | 42 +++++---- lib/resource-1.0/doc/gfdoc/ParadigmsFre.html | 78 ++++++++++------- lib/resource-1.0/doc/gfdoc/ParadigmsGer.html | 9 +- lib/resource-1.0/doc/gfdoc/ParadigmsIta.html | 78 ++++++++++------- lib/resource-1.0/doc/gfdoc/ParadigmsNor.html | 86 ++++++++++-------- lib/resource-1.0/doc/gfdoc/ParadigmsSpa.html | 78 ++++++++++------- lib/resource-1.0/doc/gfdoc/ParadigmsSwe.html | 86 ++++++++++-------- lib/resource-1.0/doc/gfdoc/Phrase.html | 9 +- lib/resource-1.0/doc/gfdoc/Precedence.html | 6 +- lib/resource-1.0/doc/gfdoc/Predef.html | 9 +- lib/resource-1.0/doc/gfdoc/PredefAbs.html | 6 +- lib/resource-1.0/doc/gfdoc/Predication.html | 32 ++++--- lib/resource-1.0/doc/gfdoc/Prelude.html | 36 ++++---- lib/resource-1.0/doc/gfdoc/Question.html | 9 +- lib/resource-1.0/doc/gfdoc/Relative.html | 9 +- lib/resource-1.0/doc/gfdoc/Sentence.html | 28 +++--- lib/resource-1.0/doc/gfdoc/Structural.html | 11 ++- lib/resource-1.0/doc/gfdoc/Symbol.html | 20 +++-- lib/resource-1.0/doc/gfdoc/Tense.html | 9 +- lib/resource-1.0/doc/gfdoc/Text.html | 11 ++- lib/resource-1.0/doc/gfdoc/Verb.html | 24 +++-- lib/resource-1.0/doc/index.txt | 3 +- lib/resource-1.0/multimodal/MultiI.gf | 16 ++-- .../multimodal/{ => old}/DemRes.gf | 0 .../multimodal/{ => old}/Demonstrative.gf | 0 .../multimodal/{ => old}/DemonstrativeEng.gf | 0 .../multimodal/{ => old}/DemonstrativeFin.gf | 0 .../multimodal/{ => old}/DemonstrativeFre.gf | 0 .../multimodal/{ => old}/DemonstrativeGer.gf | 0 .../multimodal/{ => old}/DemonstrativeI.gf | 0 .../multimodal/{ => old}/DemonstrativeIta.gf | 0 .../multimodal/{ => old}/DemonstrativeNor.gf | 0 .../multimodal/{ => old}/DemonstrativeSpa.gf | 0 .../multimodal/{ => old}/DemonstrativeSwe.gf | 0 .../multimodal/{ => old}/Multimodal.gf | 0 .../multimodal/{ => old}/MultimodalEng.gf | 0 .../multimodal/{ => old}/MultimodalFin.gf | 0 .../multimodal/{ => old}/MultimodalFre.gf | 0 .../multimodal/{ => old}/MultimodalGer.gf | 0 .../multimodal/{ => old}/MultimodalIta.gf | 0 .../multimodal/{ => old}/MultimodalNor.gf | 0 .../multimodal/{ => old}/MultimodalSpa.gf | 0 .../multimodal/{ => old}/MultimodalSwe.gf | 0 72 files changed, 762 insertions(+), 409 deletions(-) create mode 100644 lib/resource-1.0/doc/gfdoc/Multi.html rename lib/resource-1.0/multimodal/{ => old}/DemRes.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/Demonstrative.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/DemonstrativeEng.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/DemonstrativeFin.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/DemonstrativeFre.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/DemonstrativeGer.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/DemonstrativeI.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/DemonstrativeIta.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/DemonstrativeNor.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/DemonstrativeSpa.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/DemonstrativeSwe.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/Multimodal.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/MultimodalEng.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/MultimodalFin.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/MultimodalFre.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/MultimodalGer.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/MultimodalIta.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/MultimodalNor.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/MultimodalSpa.gf (100%) rename lib/resource-1.0/multimodal/{ => old}/MultimodalSwe.gf (100%) diff --git a/examples/dialogue/AgendaEng.gf b/examples/dialogue/AgendaEng.gf index 5686e704e..519f90c8d 100644 --- a/examples/dialogue/AgendaEng.gf +++ b/examples/dialogue/AgendaEng.gf @@ -1,7 +1,7 @@ ---# -path=.:present:prelude +--# -path=.:multimodal:alltenses:prelude concrete AgendaEng of Agenda = - DialogueEng, WeekdayEng ** open LangEng, ParadigmsEng in { + DialogueEng, WeekdayEng ** open MultiEng, ParadigmsEng in { lin Day = UseN (regN "day") ; diff --git a/examples/dialogue/AgendaFin.gf b/examples/dialogue/AgendaFin.gf index fac8220a4..67074acad 100644 --- a/examples/dialogue/AgendaFin.gf +++ b/examples/dialogue/AgendaFin.gf @@ -1,7 +1,7 @@ ---# -path=.:present:prelude +--# -path=.:multimodal:alltenses:prelude concrete AgendaFin of Agenda = - DialogueFin, WeekdayFin ** open LangFin, ParadigmsFin in { + DialogueFin, WeekdayFin ** open MultiFin, ParadigmsFin in { lin Day = UseN (regN "päivä") ; diff --git a/examples/dialogue/AgendaFre.gf b/examples/dialogue/AgendaFre.gf index 02871f928..e435e0428 100644 --- a/examples/dialogue/AgendaFre.gf +++ b/examples/dialogue/AgendaFre.gf @@ -1,7 +1,7 @@ ---# -path=.:present:prelude +--# -path=.:multimodal:alltenses:prelude concrete AgendaFre of Agenda = - DialogueFre, WeekdayFre ** open LangFre, ParadigmsFre, IrregFre in { + DialogueFre, WeekdayFre ** open MultiFre, ParadigmsFre, IrregFre in { lin Day = UseN (regN "jour") ; diff --git a/examples/dialogue/AgendaSwe.gf b/examples/dialogue/AgendaSwe.gf index 53d616c4f..1e7bf93dc 100644 --- a/examples/dialogue/AgendaSwe.gf +++ b/examples/dialogue/AgendaSwe.gf @@ -1,7 +1,7 @@ ---# -path=.:present:prelude +--# -path=.:multimodal:alltenses:prelude concrete AgendaSwe of Agenda = - DialogueSwe, WeekdaySwe ** open LangSwe, ParadigmsSwe, IrregSwe in { + DialogueSwe, WeekdaySwe ** open MultiSwe, ParadigmsSwe, IrregSwe in { lin Day = UseN (regN "dag") ; diff --git a/examples/dialogue/AuxFin.gf b/examples/dialogue/AuxFin.gf index c3e321b31..cb72b447c 100644 --- a/examples/dialogue/AuxFin.gf +++ b/examples/dialogue/AuxFin.gf @@ -1,2 +1,2 @@ -instance AuxFin of AuxDialogue = open LangFin in { +instance AuxFin of AuxDialogue = open MultiFin in { } \ No newline at end of file diff --git a/examples/dialogue/AuxFre.gf b/examples/dialogue/AuxFre.gf index 178a60f25..b663e3650 100644 --- a/examples/dialogue/AuxFre.gf +++ b/examples/dialogue/AuxFre.gf @@ -1,2 +1,2 @@ -instance AuxFre of AuxDialogue = open LangFre in { +instance AuxFre of AuxDialogue = open MultiFre in { } \ No newline at end of file diff --git a/examples/dialogue/AuxSwe.gf b/examples/dialogue/AuxSwe.gf index be3e1a117..acd7907b0 100644 --- a/examples/dialogue/AuxSwe.gf +++ b/examples/dialogue/AuxSwe.gf @@ -1,2 +1,2 @@ -instance AuxSwe of AuxDialogue = open LangSwe in { -} \ No newline at end of file +instance AuxSwe of AuxDialogue = open MultiSwe in { +} diff --git a/examples/dialogue/DialogueFin.gf b/examples/dialogue/DialogueFin.gf index d2de99587..9ef44d02c 100644 --- a/examples/dialogue/DialogueFin.gf +++ b/examples/dialogue/DialogueFin.gf @@ -1,4 +1,4 @@ ---# -path=.:present:prelude +--# -path=.:multimodal:alltenses:prelude concrete DialogueFin of Dialogue = DialogueI with - (Lang = LangFin) ; + (Multi = MultiFin) ; diff --git a/examples/dialogue/DialogueFre.gf b/examples/dialogue/DialogueFre.gf index fcd755a78..9fc908dee 100644 --- a/examples/dialogue/DialogueFre.gf +++ b/examples/dialogue/DialogueFre.gf @@ -1,4 +1,4 @@ ---# -path=.:present:prelude +--# -path=.:multimodal:alltenses:prelude concrete DialogueFre of Dialogue = DialogueI with - (Lang = LangFre) ; + (Multi = MultiFre) ; diff --git a/examples/dialogue/DialogueI.gf b/examples/dialogue/DialogueI.gf index 9337638c9..dea67bc2f 100644 --- a/examples/dialogue/DialogueI.gf +++ b/examples/dialogue/DialogueI.gf @@ -1,5 +1,7 @@ incomplete concrete DialogueI of Dialogue = open Multi, Prelude in { + flags optimize = all_subs ; + lincat Move = Phr ; Action = {s : ActType => Str ; point : Str} ; diff --git a/examples/dialogue/DialogueSwe.gf b/examples/dialogue/DialogueSwe.gf index 28a81cd69..b23d761bc 100644 --- a/examples/dialogue/DialogueSwe.gf +++ b/examples/dialogue/DialogueSwe.gf @@ -1,4 +1,4 @@ ---# -path=.:present:prelude +--# -path=.:multimodal:alltenses:prelude concrete DialogueSwe of Dialogue = DialogueI with - (Lang = LangSwe) ; + (Multi = MultiSwe) ; diff --git a/examples/dialogue/LightsFin.gf b/examples/dialogue/LightsFin.gf index 5e51e0951..75c46ff49 100644 --- a/examples/dialogue/LightsFin.gf +++ b/examples/dialogue/LightsFin.gf @@ -1,7 +1,7 @@ ---# -path=.:present:prelude +--# -path=.:multimodal:alltenses:prelude concrete LightsFin of Lights = - DialogueFin ** open LangFin, ParadigmsFin, AuxFin in { + DialogueFin ** open MultiFin, ParadigmsFin, AuxFin in { lin Light = UseN (regN "valo") ; diff --git a/examples/dialogue/LightsFre.gf b/examples/dialogue/LightsFre.gf index 50f959d0e..dc86cce2b 100644 --- a/examples/dialogue/LightsFre.gf +++ b/examples/dialogue/LightsFre.gf @@ -1,7 +1,7 @@ ---# -path=.:present:prelude +--# -path=.:multimodal:alltenses:prelude concrete LightsFre of Lights = - DialogueFre ** open LangFre, ParadigmsFre, IrregFre, AuxFre in { + DialogueFre ** open MultiFre, ParadigmsFre, IrregFre, AuxFre in { lin Light = UseN (regN "lampe") ; diff --git a/examples/dialogue/LightsSwe.gf b/examples/dialogue/LightsSwe.gf index 695c3aa41..e2daaa36b 100644 --- a/examples/dialogue/LightsSwe.gf +++ b/examples/dialogue/LightsSwe.gf @@ -1,7 +1,8 @@ ---# -path=.:present:prelude +--# -path=.:multimodal:alltenses:prelude + concrete LightsSwe of Lights = - DialogueSwe ** open LangSwe, ParadigmsSwe, AuxSwe in { + DialogueSwe ** open MultiSwe, ParadigmsSwe, AuxSwe in { lin Light = UseN (regN "lampa") ; diff --git a/examples/dialogue/README.txt b/examples/dialogue/README.txt index 68ec539a9..db14dad96 100644 --- a/examples/dialogue/README.txt +++ b/examples/dialogue/README.txt @@ -2,6 +2,9 @@ Dialogue system grammars using GF resource. AR 16/5/2006 + +24/5 Added multimodality. + ==Functionality and purpose== Dialogue system abstract syntax + concrete syntaxes for diff --git a/lib/resource-1.0/Makefile b/lib/resource-1.0/Makefile index a7e356b0a..c36fc39ae 100644 --- a/lib/resource-1.0/Makefile +++ b/lib/resource-1.0/Makefile @@ -2,7 +2,7 @@ GF=../../bin/gf .PHONY: show-path all test pretest langs present mathematical multimodal compiled treebank stat gfdoc clean -all: show-path present mathematical multimodal langs compiled +all: show-path langs multimodal present mathematical compiled show-path: @echo GF_LIB_PATH=$(GF_LIB_PATH) @@ -27,7 +27,7 @@ mathematical: mv mathematical/*.gfc ../mathematical multimodal: - $(GF) -make -nocf -preproc=./mkPresent multimodal/Multimodal???.gf + $(GF) -make -nocf multimodal/Multi???.gf mv multimodal/*.gfc multimodal/*.gfr ../multimodal compiled: @@ -45,8 +45,7 @@ gfdoc: gfdoc -txthtml mathematical/Mathematical.gf gfdoc -txthtml mathematical/Symbol.gf gfdoc -txthtml mathematical/Predication.gf - gfdoc -txthtml multimodal/Demonstrative.gf - gfdoc -txthtml multimodal/Multimodal.gf + gfdoc -txthtml multimodal/Multi.gf gfdoc -txthtml ../prelude/*.gf mv abstract/*.html doc/gfdoc mv mathematical/*.html doc/gfdoc diff --git a/lib/resource-1.0/common/CommonX.gf b/lib/resource-1.0/common/CommonX.gf index 3133ceea4..c2e9a1296 100644 --- a/lib/resource-1.0/common/CommonX.gf +++ b/lib/resource-1.0/common/CommonX.gf @@ -1,19 +1,19 @@ concrete CommonX of Common = open (R = ParamX) in { lincat - Text = {s : Str ; lock_Text : {}} ; - Phr = {s : Str ; lock_Phr : {}} ; - Utt = {s : Str ; lock_Utt : {}} ; - Voc = {s : Str ; lock_Voc : {}} ; - SC = {s : Str ; lock_SC : {}} ; - Adv = {s : Str ; lock_Adv : {}} ; - AdV = {s : Str ; lock_AdV : {}} ; - AdA = {s : Str ; lock_AdA : {}} ; - AdS = {s : Str ; lock_AdS : {}} ; - AdN = {s : Str ; lock_AdN : {}} ; - IAdv = {s : Str ; lock_IAdv : {}} ; - CAdv = {s : Str ; lock_CAdv : {}} ; - PConj = {s : Str ; lock_PConj : {}} ; + Text = {s : Str} ; --lock_Text : {}} ; + Phr = {s : Str} ; --lock_Phr : {}} ; + Utt = {s : Str} ; --lock_Utt : {}} ; + Voc = {s : Str} ; --lock_Voc : {}} ; + SC = {s : Str} ; --lock_SC : {}} ; + Adv = {s : Str} ; --lock_Adv : {}} ; + AdV = {s : Str} ; --lock_AdV : {}} ; + AdA = {s : Str} ; --lock_AdA : {}} ; + AdS = {s : Str} ; --lock_AdS : {}} ; + AdN = {s : Str} ; --lock_AdN : {}} ; + IAdv = {s : Str} ; --lock_IAdv : {}} ; + CAdv = {s : Str} ; --lock_CAdv : {}} ; + PConj = {s : Str} ; --lock_PConj : {}} ; Tense = {s : Str ; t : R.Tense} ; Ant = {s : Str ; a : R.Anteriority} ; diff --git a/lib/resource-1.0/doc/gfdoc/Adjective.html b/lib/resource-1.0/doc/gfdoc/Adjective.html index 0ffaf0608..46ab75d4b 100644 --- a/lib/resource-1.0/doc/gfdoc/Adjective.html +++ b/lib/resource-1.0/doc/gfdoc/Adjective.html @@ -6,12 +6,17 @@

Adjectives and adjectival phrases

-Last update: 2006-01-10 20:56:21 CET
+Author:
+Last update: Wed May 24 18:29:10 2006


+ +


@@ -20,6 +25,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Adjectives and adjectival phrases

     abstract Adjective = Cat ** {
     
diff --git a/lib/resource-1.0/doc/gfdoc/Adverb.html b/lib/resource-1.0/doc/gfdoc/Adverb.html
index 583d9fa31..80807eca4 100644
--- a/lib/resource-1.0/doc/gfdoc/Adverb.html
+++ b/lib/resource-1.0/doc/gfdoc/Adverb.html
@@ -6,12 +6,17 @@
 
 

Adverbs and adverbial phrases

-Last update: 2006-01-13 16:54:40 CET
+Author:
+Last update: Wed May 24 18:29:10 2006


+ +


@@ -20,6 +25,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Adverbs and adverbial phrases

     abstract Adverb = Cat ** {
     
@@ -27,7 +34,7 @@ gfdoc - a rudimentary GF document generator.
 

-The two main ways of formins adverbs is from adjectives and by +The two main ways of forming adverbs are from adjectives and by prepositions from noun phrases.

diff --git a/lib/resource-1.0/doc/gfdoc/Cat.html b/lib/resource-1.0/doc/gfdoc/Cat.html
index 26c9145d4..a6e6b18f4 100644
--- a/lib/resource-1.0/doc/gfdoc/Cat.html
+++ b/lib/resource-1.0/doc/gfdoc/Cat.html
@@ -6,25 +6,27 @@
 
 

The category system

-Last update: 2006-04-20 21:45:11 CEST
+Author:
+Last update: Wed May 24 18:29:11 2006


+


@@ -34,6 +36,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

The category system

Some categories are inherited from Common.

@@ -43,17 +47,6 @@ Some categories are inherited from Common. cat

- -

Top-level units

-

-Constructed in Text: Text. -Constructed in Phrase: Phr and -

-
-        Utt ;   -- sentence, question, word...         e.g. "be quiet"
-        Voc ;   -- vocative or "please"                e.g. "my darling"
-
-

Sentences and clauses

@@ -67,7 +60,6 @@ Constructed in Sentence, and also in Cl ; -- declarative clause, with all tenses e.g. "she looks at this" Slash ; -- clause missing NP (S/NP in GPSG) e.g. "she looks at" Imp ; -- imperative e.g. "look at this" - SC ; -- embedded sentence or question e.g. "that it rains"

@@ -78,7 +70,6 @@ Constructed in Question.
         QCl ;   -- question clause, with all tenses    e.g. "why does she walk"
         IP ;    -- interrogative pronoun               e.g. "who"
-        IAdv ;  -- interrogative adverb                e.g. "why"
         IComp ; -- interrogative complement of copula  e.g. "where"
         IDet ;  -- interrogative determiner            e.g. "which"
 
@@ -140,19 +131,6 @@ as defined in Noun.

-

Adverbs

-

-Constructed in Adverb. -Many adverbs are constructed in Structural. -

-
-        Adv ;   -- verb-phrase-modifying adverb,       e.g. "in the house"
-        AdV ;   -- adverb directly attached to verb    e.g. "always"
-        AdA ;   -- adjective-modifying adverb,         e.g. "very"
-        AdN ;   -- numeral-modifying adverb,           e.g. "more than"
-
-

-

Numerals

Constructed in Numeral. @@ -161,7 +139,7 @@ Constructed in Numeral. Numeral;-- cardinal or ordinal, e.g. "five/fifth"

- +

Structural words

Constructed in Structural. @@ -169,13 +147,11 @@ Constructed in Structural.

         Conj ;  -- conjunction,                        e.g. "and"
         DConj ; -- distributed conj.                   e.g. "both - and"
-        PConj ; -- phrase-beginning conj.              e.g. "therefore"
-        CAdv ;  -- comparative adverb                  e.g. "more"
         Subj ;  -- subjunction,                        e.g. "if"
         Prep ;  -- preposition, or just case           e.g. "in"
 

- +

Words of open classes

These are constructed in Lexicon and in additional lexicon modules. diff --git a/lib/resource-1.0/doc/gfdoc/Common.html b/lib/resource-1.0/doc/gfdoc/Common.html index d0199bf1c..efd59e61d 100644 --- a/lib/resource-1.0/doc/gfdoc/Common.html +++ b/lib/resource-1.0/doc/gfdoc/Common.html @@ -6,12 +6,22 @@

Infrastructure with common implementations.

-Last update: 2006-02-25 15:24:23 CET
+Author:
+Last update: Wed May 24 18:29:11 2006


+ +


@@ -20,8 +30,13 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Infrastructure with common implementations.

-This module defines the abstract parameters of tense, polarity, and +This module defines the categories that uniformly have the linearization +{s : Str} in all languages. They are given lock fields that guarantee +grammatical correctness via type checking. +Moreover, this module defines the abstract parameters of tense, polarity, and anteriority, which are used in Phrase 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 @@ -32,12 +47,49 @@ Romance languages. abstract Common = { cat - Text ; -- text consisting of several phrases - Phr ; -- phrase in a text e.g. "But come here my darling." - - Pol ; - Tense ; - Ant ; + +

+ +

Top-level units

+

+Constructed in Text: Text. +

+
+        Text ;  -- text consisting of several phrases  e.g. "He is here. Why?"
+        Phr ;   -- phrase in a text                    e.g. "But get out please."
+
+

+

+Constructed in Phrase: Phr and +

+
+        Utt ;   -- sentence, question, word...         e.g. "be quiet"
+        Voc ;   -- vocative or "please"                e.g. "my darling"
+        PConj ; -- phrase-beginning conj.              e.g. "therefore"
+        SC ;    -- embedded sentence or question       e.g. "that it rains"
+
+

+ +

Adverbs

+

+Constructed in Adverb. +Many adverbs are constructed in Structural. +

+
+        Adv ;   -- verb-phrase-modifying adverb,       e.g. "in the house"
+        AdV ;   -- adverb directly attached to verb    e.g. "always"
+        AdA ;   -- adjective-modifying adverb,         e.g. "very"
+        AdN ;   -- numeral-modifying adverb,           e.g. "more than"
+        IAdv ;  -- interrogative adverb                e.g. "why"
+        CAdv ;  -- comparative adverb                  e.g. "more"
+
+

+ +

Tense, polarity, and anteriority

+
+        Tense ; -- tense: present, past, future, conditional
+        Pol ;   -- polarity: positive, negative
+        Ant ;   -- anteriority: simultaneous, anterior
     
       fun
         PPos, PNeg : Pol ;             -- I sleep/don't sleep
diff --git a/lib/resource-1.0/doc/gfdoc/Conjunction.html b/lib/resource-1.0/doc/gfdoc/Conjunction.html
index 54a3da95a..9e0fa7cd1 100644
--- a/lib/resource-1.0/doc/gfdoc/Conjunction.html
+++ b/lib/resource-1.0/doc/gfdoc/Conjunction.html
@@ -6,17 +6,21 @@
 
 

Coordination

-Last update: 2006-01-20 22:04:10 CET
+Author:
+Last update: Wed May 24 18:29:11 2006


+


@@ -26,6 +30,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Coordination

Coordination is defined for many different categories; here is a sample. The rules apply to lists of two or more elements, @@ -45,7 +51,7 @@ compatibility with API 0.9 is needed, use abstract Conjunction = Cat ** {

- +

Rules

       fun
@@ -60,7 +66,7 @@ compatibility with API 0.9 is needed, use
         DConjAdv : DConj -> [Adv] -> Adv; -- "both badly and slowly"
 

- +

Categories

These categories are only used in this module. @@ -73,7 +79,7 @@ These categories are only used in this module. [AP]{2} ;

- +

List constructors

The list constructors are derived from the list notation and therefore diff --git a/lib/resource-1.0/doc/gfdoc/Idiom.html b/lib/resource-1.0/doc/gfdoc/Idiom.html index 83d5cf085..6d5f63870 100644 --- a/lib/resource-1.0/doc/gfdoc/Idiom.html +++ b/lib/resource-1.0/doc/gfdoc/Idiom.html @@ -6,12 +6,17 @@

Idiomatic expressions

-Last update: 2006-05-16 18:46:50 CEST
+Author:
+Last update: Wed May 24 18:29:11 2006


+ +


@@ -20,6 +25,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Idiomatic expressions

     abstract Idiom = Cat ** {
 
diff --git a/lib/resource-1.0/doc/gfdoc/Lang.html b/lib/resource-1.0/doc/gfdoc/Lang.html index a063b45ac..da91fae44 100644 --- a/lib/resource-1.0/doc/gfdoc/Lang.html +++ b/lib/resource-1.0/doc/gfdoc/Lang.html @@ -6,12 +6,17 @@

The Main Module of the Resource Grammar

-Last update: 2006-02-20 20:02:47 CET
+Author:
+Last update: Wed May 24 18:29:11 2006


+ +


@@ -20,6 +25,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

The Main Module of the Resource Grammar

This grammar is just a collection of the different modules, and the one that can be imported when one wants to test the diff --git a/lib/resource-1.0/doc/gfdoc/Mathematical.html b/lib/resource-1.0/doc/gfdoc/Mathematical.html index d0d812f52..ee27e8243 100644 --- a/lib/resource-1.0/doc/gfdoc/Mathematical.html +++ b/lib/resource-1.0/doc/gfdoc/Mathematical.html @@ -6,12 +6,17 @@

The Mathematics API to the Resource Grammar

-Last update: 2006-02-25 21:36:45 CET
+Author:
+Last update: Wed May 24 18:29:15 2006


+ +


@@ -20,6 +25,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

The Mathematics API to the Resource Grammar

This grammar is a collection of the different modules. It differs from Lang in two main ways: diff --git a/lib/resource-1.0/doc/gfdoc/Multi.html b/lib/resource-1.0/doc/gfdoc/Multi.html new file mode 100644 index 000000000..a5cb12010 --- /dev/null +++ b/lib/resource-1.0/doc/gfdoc/Multi.html @@ -0,0 +1,87 @@ + + + + + Multimodal additions to the resource grammar library + +

Multimodal additions to the resource grammar library

+ +Author:
+Last update: Wed May 24 18:29:16 2006 +
+ +

+
+

+ + +

+
+

+

+Produced by +gfdoc - a rudimentary GF document generator. +(c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL. +

+ +

Multimodal additions to the resource grammar library

+
+    abstract Multi = Lang ** {
+    
+      cat
+
+

+

+Entrypoint for speech recognition - suppresses clicks. +

+
+        Speech ;
+
+

+

+The entrypoint to sequencialized multimodal input is Phr. +The pointing gesture (click) type. +

+
+        Point ;
+    
+      fun
+
+

+

+The top function to send an utterance to speech recognizer. +

+
+        SpeechUtt : PConj -> Utt -> Voc -> Speech ;
+
+

+

+Demonstratives. +

+
+        this8point_NP : Point -> NP ;
+        that8point_NP : Point -> NP ;
+        these8point_NP : Point -> NP ;
+        those8point_NP : Point -> NP ;
+        here8point_Adv : Point -> Adv ;
+        here7to8point_Adv : Point -> Adv ;
+        here7from8point_Adv : Point -> Adv ;
+        this8point_Quant : Point -> Quant ;
+        that8point_Quant : Point -> Quant ;
+
+

+

+Building points from strings. +

+
+        MkPoint : String -> Point ;
+    
+    }
+
+

+ + + + diff --git a/lib/resource-1.0/doc/gfdoc/Noun.html b/lib/resource-1.0/doc/gfdoc/Noun.html index 3ba597db2..3c3bb0cee 100644 --- a/lib/resource-1.0/doc/gfdoc/Noun.html +++ b/lib/resource-1.0/doc/gfdoc/Noun.html @@ -6,18 +6,22 @@

The construction of nouns, noun phrases, and determiners

-Last update: 2006-05-16 23:42:30 CEST
+Author:
+Last update: Wed May 24 18:29:12 2006


+


@@ -27,11 +31,13 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

The construction of nouns, noun phrases, and determiners

     abstract Noun = Cat ** {
 

- +

Noun phrases

The three main types of noun phrases are @@ -66,7 +72,7 @@ verb or by an adverb. AdvNP : NP -> Adv -> NP ; -- Paris at midnight

- +

Determiners

The determiner has a fine-grained structure, in which a 'nucleus' @@ -160,7 +166,7 @@ in semantically odd expressions.

Other determiners are defined in Structural.

- +

Common nouns

Simple nouns can be used as nouns outright. @@ -206,7 +212,7 @@ to decide. Sentential complements are defined in Verb. SentCN : CN -> SC -> CN ; -- fact that John smokes, question if he does

- +

Apposition

This is certainly overgenerating. diff --git a/lib/resource-1.0/doc/gfdoc/Numeral.html b/lib/resource-1.0/doc/gfdoc/Numeral.html index 7464685c8..07416af2e 100644 --- a/lib/resource-1.0/doc/gfdoc/Numeral.html +++ b/lib/resource-1.0/doc/gfdoc/Numeral.html @@ -6,12 +6,17 @@

Numerals

-Last update: 2006-01-17 17:56:17 CET
+Author:
+Last update: Wed May 24 18:29:12 2006


+ +


@@ -20,6 +25,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Numerals

This grammar defines numerals from 1 to 999999. The implementations are adapted from the diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsEng.html b/lib/resource-1.0/doc/gfdoc/ParadigmsEng.html index 79a8eb18d..9e6bf16ec 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsEng.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsEng.html @@ -2,51 +2,63 @@ - English Lexical Paradigms -

English Lexical Paradigms

-Last update: 2006-04-21 16:38:25 CEST


+


+Author: +Last update: Wed May 24 18:29:14 2006 +

+

Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+== +

+

+# -path=.:../abstract:../../prelude:../common +

+ +

English Lexical Paradigms

+

Aarne Ranta 2003--2005

@@ -85,7 +97,7 @@ The following modules are presupposed: in {

- +

Parameters

To abstract over gender names, we define the following identifiers. @@ -126,7 +138,7 @@ Prepositions are used in many-argument functions for rection. Preposition : Type ;

- +

Nouns

Worst case: give all four forms and the semantic gender. @@ -160,7 +172,7 @@ function: genderN : Gender -> N -> N ;

- +

Compound nouns

A compound noun ia an uninflected string attached to an inflected noun, @@ -170,7 +182,7 @@ such as baby boom, chief executive officer. compoundN : Str -> N -> N ;

- +

Relational nouns

Relational nouns (daughter of x) need a preposition. @@ -198,7 +210,7 @@ Three-place relational nouns (the connection from x to y) need two prepos mkN3 : N -> Preposition -> Preposition -> N3 ;

- +

Relational common noun phrases

In some cases, you may want to make a complex CN into a @@ -209,7 +221,7 @@ relational noun (e.g. the old town hall of). cnN3 : CN -> Preposition -> Preposition -> N3 ;

- +

Proper names and noun phrases

Proper names, with a regular genitive, are formed as follows @@ -233,7 +245,7 @@ genitive, you can use the worst-case function. mkNP : Str -> Str -> Number -> Gender -> NP ;

- +

Adjectives

Non-comparison one-place adjectives need two forms: one for @@ -251,7 +263,7 @@ even for cases with the variation happy - happily. regA : Str -> A ;

- +

Two-place adjectives

Two-place adjectives need a preposition for their second argument. @@ -301,7 +313,7 @@ From a given ADeg, it is possible to get back to A. adegA : ADeg -> A ;

- +

Adverbs

Adverbs are not inflected. Most lexical ones have position @@ -319,7 +331,7 @@ Adverbs modifying adjectives and sentences can also be formed. mkAdA : Str -> AdA ;

- +

Prepositions

A preposition as used for rection in the lexicon, as well as to @@ -333,7 +345,7 @@ build PPs in the resource API, just requires a string.

(These two functions are synonyms.)

- +

Verbs

Except for be, the worst case needs five forms: the infinitive and @@ -372,7 +384,7 @@ duplication in the present participle. irregDuplV : (get, got, gotten : Str) -> V ;

- +

Verbs with a particle.

The particle, such as in switch on, is given as a string. @@ -381,7 +393,7 @@ The particle, such as in switch on, is given as a string. partV : V -> Str -> V ;

- +

Reflexive verbs

By default, verbs are not reflexive; this function makes them that. @@ -390,7 +402,7 @@ By default, verbs are not reflexive; this function makes them that. reflV : V -> V ;

- +

Two-place verbs

Two-place verbs need a preposition, except the special case with direct object. @@ -402,7 +414,7 @@ Two-place verbs need a preposition, except the special case with direct object. dirV2 : V -> V2 ;

- +

Three-place verbs

Three-place (ditransitive) verbs need two prepositions, of which @@ -414,7 +426,7 @@ the first one or both can be absent. dirdirV3 : V -> V3 ; -- give,_,_

- +

Other complement patterns

Verbs and adjectives can take complements such as sentences, @@ -448,7 +460,7 @@ as an adverb. Likewise AS, A2S, AV, A2V are just A. AS, A2S, AV, A2V : Type ;

- +

Definitions of paradigms

The definitions should not bother the user of the API. So they are diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsFin.html b/lib/resource-1.0/doc/gfdoc/ParadigmsFin.html index fb0f03a79..46faa2407 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsFin.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsFin.html @@ -2,36 +2,48 @@ - Finnish Lexical Paradigms -

Finnish Lexical Paradigms

-Last update: 2006-03-07 21:08:18 CET


+


+Author: +Last update: Wed May 24 18:29:14 2006 +

+

Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+== +

+

+# -path=.:../abstract:../common:../../prelude +

+ +

Finnish Lexical Paradigms

+

Aarne Ranta 2003--2005

@@ -77,7 +89,7 @@ flags optimize=all ; flags optimize=noexpand ;

- +

Parameters

To abstract over gender, number, and (some) case names, @@ -117,7 +129,7 @@ just a case, or a pre/postposition and a case. casePrep : Case -> Prep ; -- adessive

- +

Nouns

The worst case gives ten forms and the semantic gender. @@ -317,7 +329,7 @@ The plural forms are filtered away by the compiler. mkNP : N -> Number -> NP ;

- +

Adjectives

Non-comparison one-place adjectives are just like nouns. @@ -349,7 +361,7 @@ The regular adjectives are based on regN in the positive. regA : (punainen : Str) -> A ;

- +

Verbs

The grammar does not cover the potential mood and some nominal @@ -455,7 +467,7 @@ But this is taken care of by ClauseFin. dirV2 : V -> V2 ;

- +

Three-place verbs

Three-place (ditransitive) verbs need two prepositions, of which @@ -467,7 +479,7 @@ the first one or both can be absent. dirdirV3 : V -> V3 ; -- acc, allat

- +

Other complement patterns

Verbs and adjectives can take complements such as sentences, diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsFre.html b/lib/resource-1.0/doc/gfdoc/ParadigmsFre.html index aa106d67c..318c25a22 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsFre.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsFre.html @@ -2,49 +2,61 @@ - French Lexical Paradigms -

French Lexical Paradigms

-Last update: 2006-03-07 21:08:17 CET


+


+Author: +Last update: Wed May 24 18:29:14 2006 +

+

Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+== +

+

+# -path=.:../romance:../common:../abstract:../../prelude +

+ +

French Lexical Paradigms

+

Aarne Ranta 2003

@@ -84,7 +96,7 @@ words. flags optimize=all ;

- +

Parameters

To abstract over gender names, we define the following identifiers. @@ -123,7 +135,7 @@ amalgamate with the following word (the 'genitive' de and the mkPreposition : Str -> Preposition ;

- +

Nouns

Worst case: give both two forms and the gender. @@ -153,7 +165,7 @@ Adding gender information widens the scope of the foregoing function. regGenN : Str -> Gender -> N ;

- +

Compound nouns

Some nouns are ones where the first part is inflected as a noun but @@ -165,7 +177,7 @@ they are frequent in lexica. compN : N -> Str -> N ;

- +

Relational nouns

Relational nouns (fille de x) need a case and a preposition. @@ -190,7 +202,7 @@ Three-place relational nouns (la connection de x mkN3 : N -> Preposition -> Preposition -> N3 ;

- +

Relational common noun phrases

In some cases, you may want to make a complex CN into a @@ -198,7 +210,7 @@ relational noun (e.g. the old town hall of). However, N2 and N3 are purely lexical categories. But you can use the AdvCN and PrepNP constructions to build phrases like this.

- +

Proper names and noun phrases

Proper names need a string and a gender. @@ -215,7 +227,7 @@ you can use the worst-case function. mkNP : Str -> Gender -> Number -> NP ;

- +

Adjectives

Non-comparison one-place adjectives need four forms in the worst @@ -246,7 +258,7 @@ provided. prefA : A -> A ;

- +

Two-place adjectives

Two-place adjectives need a preposition for their second argument. @@ -255,7 +267,7 @@ Two-place adjectives need a preposition for their second argument. mkA2 : A -> Preposition -> A2 ;

- +

Comparison adjectives

Comparison adjectives are in the worst case put up from two @@ -281,7 +293,7 @@ provided. prefA : A -> A ;

- +

Adverbs

Adverbs are not inflected. Most lexical ones have position @@ -305,7 +317,7 @@ Adverbs modifying adjectives and sentences can also be formed. mkAdA : Str -> AdA ;

- +

Verbs

Irregular verbs are given in the module VerbsFre. @@ -342,7 +354,7 @@ To change it to reflV : V -> V ;

- +

Two-place verbs

Two-place verbs need a preposition, except the special case with direct object. @@ -361,7 +373,7 @@ You can reuse a V2 verb in V. v2V : V2 -> V ;

- +

Three-place verbs

Three-place (ditransitive) verbs need two prepositions, of which @@ -373,7 +385,7 @@ the first one or both can be absent. dirdirV3 : V -> V3 ; -- donner,_,_

- +

Other complement patterns

Verbs and adjectives can take complements such as sentences, @@ -409,7 +421,7 @@ as an adverb. Likewise AS, A2S, AV, A2V are just A. AS, A2S, AV, A2V : Type ;

- +

Definitions of the paradigms

The definitions should not bother the user of the API. So they are diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsGer.html b/lib/resource-1.0/doc/gfdoc/ParadigmsGer.html index 682c4895e..06a48d004 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsGer.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsGer.html @@ -34,13 +34,20 @@


-Last update: 2006-01-20 22:04:10 CET +Author: +Last update: Wed May 24 18:29:14 2006

Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+

+== +

+

+# -path=.:../common:../abstract:../../prelude +

German Lexical Paradigms

diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsIta.html b/lib/resource-1.0/doc/gfdoc/ParadigmsIta.html index f7da3a65d..2a0a896b2 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsIta.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsIta.html @@ -2,49 +2,61 @@ - Italian Lexical Paradigms -

Italian Lexical Paradigms

-Last update: 2006-02-22 19:06:50 CET


+


+Author: +Last update: Wed May 24 18:29:15 2006 +

+

Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+== +

+

+# -path=.:../romance:../common:../abstract:../../prelude +

+ +

Italian Lexical Paradigms

+

Aarne Ranta 2003

@@ -85,7 +97,7 @@ words. flags optimize=all ;

- +

Parameters

To abstract over gender names, we define the following identifiers. @@ -124,7 +136,7 @@ amalgamate with the following word (the 'genitive' de and the mkPreposition : Str -> Preposition ;

- +

Nouns

Worst case: give both two forms and the gender. @@ -151,7 +163,7 @@ To force a different gender, use one of the following functions. femN : N -> N ;

- +

Compound nouns

Some nouns are ones where the first part is inflected as a noun but @@ -163,7 +175,7 @@ they are frequent in lexica. compN : N -> Str -> N ;

- +

Relational nouns

Relational nouns (figlio di x) need a case and a preposition. @@ -188,7 +200,7 @@ Three-place relational nouns (la connessione di x a y) need two prepositi mkN3 : N -> Preposition -> Preposition -> N3 ;

- +

Relational common noun phrases

In some cases, you may want to make a complex CN into a @@ -196,7 +208,7 @@ relational noun (e.g. the old town hall of). However, N2 and N3 are purely lexical categories. But you can use the AdvCN and PrepNP constructions to build phrases like this.

- +

Proper names and noun phrases

Proper names need a string and a gender. @@ -213,7 +225,7 @@ you can use the worst-case function. mkNP : Str -> Gender -> Number -> NP ;

- +

Adjectives

Non-comparison one-place adjectives need five forms in the worst @@ -241,7 +253,7 @@ provided. prefA : A -> A ;

- +

Two-place adjectives

Two-place adjectives need a preposition for their second argument. @@ -250,7 +262,7 @@ Two-place adjectives need a preposition for their second argument. mkA2 : A -> Preposition -> A2 ;

- +

Comparison adjectives

Comparison adjectives are in the worst case put up from two @@ -276,7 +288,7 @@ with comparison by plus. regADeg : Str -> A ;

- +

Adverbs

Adverbs are not inflected. Most lexical ones have position @@ -300,7 +312,7 @@ Adverbs modifying adjectives and sentences can also be formed. mkAdA : Str -> AdA ;

- +

Verbs

Regular verbs are ones with the infinitive er or ir, the @@ -331,7 +343,7 @@ Reflexive implies essere. reflV : V -> V ;

- +

Two-place verbs

Two-place verbs need a preposition, except the special case with direct object. @@ -350,7 +362,7 @@ You can reuse a V2 verb in V. v2V : V2 -> V ;

- +

Three-place verbs

Three-place (ditransitive) verbs need two prepositions, of which @@ -362,7 +374,7 @@ the first one or both can be absent. dirdirV3 : V -> V3 ; -- donner,_,_

- +

Other complement patterns

Verbs and adjectives can take complements such as sentences, @@ -398,7 +410,7 @@ as an adverb. Likewise AS, A2S, AV, A2V are just A. AS, A2S, AV, A2V : Type ;

- +

The definitions of the paradigms

The definitions should not bother the user of the API. So they are diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsNor.html b/lib/resource-1.0/doc/gfdoc/ParadigmsNor.html index d7e468c04..5fc3fe944 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsNor.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsNor.html @@ -2,51 +2,63 @@ - Norwegian Lexical Paradigms -

Norwegian Lexical Paradigms

-Last update: 2006-03-07 21:08:17 CET


+


+Author: +Last update: Wed May 24 18:29:15 2006 +

+

Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+== +

+

+# -path=.:../scandinavian:../common:../abstract:../../prelude +

+ +

Norwegian Lexical Paradigms

+

Aarne Ranta 2003

@@ -84,7 +96,7 @@ words. CatNor in {

- +

Parameters

To abstract over gender names, we define the following identifiers. @@ -125,7 +137,7 @@ Prepositions used in many-argument functions are just strings. Preposition : Type = Str ;

- +

Nouns

Worst case: give all four forms. The gender is computed from the @@ -161,13 +173,13 @@ gender is computed from the definite form. mk2N : (bil,bilen : Str) -> N ;

- +

Compound nouns

All the functions above work quite as well to form compound nouns, such as fotboll.

- +

Relational nouns

Relational nouns (daughter of x) need a preposition. @@ -195,7 +207,7 @@ Three-place relational nouns (the connection from x to y) need two prepos mkN3 : N -> Preposition -> Preposition -> N3 ;

- +

Relational common noun phrases

In some cases, you may want to make a complex CN into a @@ -203,7 +215,7 @@ relational noun (e.g. the old town hall of). However, N2 and N3 are purely lexical categories. But you can use the AdvCN and PrepNP constructions to build phrases like this.

- +

Proper names and noun phrases

Proper names, with a regular genitive, are formed as follows @@ -227,7 +239,7 @@ genitive, you can use the worst-case function. mkNP : Str -> Str -> Number -> Gender -> NP ;

- +

Adjectives

Non-comparison one-place adjectives need three forms: @@ -250,7 +262,7 @@ In most cases, two forms are enough. mk2A : (stor,stort : Str) -> A ;

- +

Two-place adjectives

Two-place adjectives need a preposition for their second argument. @@ -297,7 +309,7 @@ long adjective, the following pattern is used: compoundADeg : A -> A ; -- -/mer/mest norsk

- +

Adverbs

Adverbs are not inflected. Most lexical ones have position @@ -315,7 +327,7 @@ Adverbs modifying adjectives and sentences can also be formed. mkAdA : Str -> AdA ;

- +

Prepositions

A preposition is just a string. @@ -324,7 +336,7 @@ A preposition is just a string. mkPreposition : Str -> Preposition ;

- +

Verbs

The worst case needs six forms. @@ -355,7 +367,7 @@ In practice, it is enough to give three forms, as in school books. irregV : (drikke, drakk, drukket : Str) -> V ;

- +

Verbs with a particle.

The particle, such as in switch on, is given as a string. @@ -364,7 +376,7 @@ The particle, such as in switch on, is given as a string. partV : V -> Str -> V ;

- +

Deponent verbs.

Some words are used in passive forms only, e.g. hoppas, some as @@ -375,7 +387,7 @@ reflexive e.g. reflV : V -> V ;

- +

Two-place verbs

Two-place verbs need a preposition, except the special case with direct object. @@ -387,7 +399,7 @@ Two-place verbs need a preposition, except the special case with direct object. dirV2 : V -> V2 ;

- +

Three-place verbs

Three-place (ditransitive) verbs need two prepositions, of which @@ -399,7 +411,7 @@ the first one or both can be absent. dirdirV3 : V -> V3 ; -- give,_,_

- +

Other complement patterns

Verbs and adjectives can take complements such as sentences, @@ -433,7 +445,7 @@ as an adverb. Likewise AS, A2S, AV, A2V are just A. AS, A2S, AV, A2V : Type ;

- +

Definitions of the paradigms

The definitions should not bother the user of the API. So they are diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsSpa.html b/lib/resource-1.0/doc/gfdoc/ParadigmsSpa.html index 6cc039bb7..9c48e545f 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsSpa.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsSpa.html @@ -2,49 +2,61 @@ - Spanish Lexical Paradigms -

Spanish Lexical Paradigms

-Last update: 2006-03-14 11:21:47 CET


+


+Author: +Last update: Wed May 24 18:29:15 2006 +

+

Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+== +

+

+# -path=.:../romance:../common:../abstract:../../prelude +

+ +

Spanish Lexical Paradigms

+

Aarne Ranta 2003

@@ -82,7 +94,7 @@ escape to construct the most irregular words of type C. flags optimize=all ;

- +

Parameters

To abstract over gender names, we define the following identifiers. @@ -121,7 +133,7 @@ amalgamate with the following word (the 'genitive' de and the mkPreposition : Str -> Preposition ;

- +

Nouns

Worst case: two forms (singular + plural), @@ -152,7 +164,7 @@ To force a different gender, use one of the following functions. femN : N -> N ;

- +

Compound nouns

Some nouns are ones where the first part is inflected as a noun but @@ -164,7 +176,7 @@ they are frequent in lexica. compN : N -> Str -> N ;

- +

Relational nouns

Relational nouns (fille de x) need a case and a preposition. @@ -189,7 +201,7 @@ Three-place relational nouns (la connessione di x a y) need two prepositi mkN3 : N -> Preposition -> Preposition -> N3 ;

- +

Relational common noun phrases

In some cases, you may want to make a complex CN into a @@ -197,7 +209,7 @@ relational noun (e.g. the old town hall of). However, N2 and N3 are purely lexical categories. But you can use the AdvCN and PrepNP constructions to build phrases like this.

- +

Proper names and noun phrases

Proper names need a string and a gender. @@ -214,7 +226,7 @@ you can use the worst-case function. mkNP : Str -> Gender -> Number -> NP ;

- +

Adjectives

Non-comparison one-place adjectives need five forms in the worst @@ -243,7 +255,7 @@ provided. prefA : A -> A ;

- +

Two-place adjectives

Two-place adjectives need a preposition for their second argument. @@ -252,7 +264,7 @@ Two-place adjectives need a preposition for their second argument. mkA2 : A -> Preposition -> A2 ;

- +

Comparison adjectives

Comparison adjectives are in the worst case put up from two @@ -278,7 +290,7 @@ with comparison by mas. regADeg : Str -> A ;

- +

Adverbs

Adverbs are not inflected. Most lexical ones have position @@ -302,7 +314,7 @@ Adverbs modifying adjectives and sentences can also be formed. mkAdA : Str -> AdA ;

- +

Verbs

Regular verbs are ones inflected like cortar, deber, or vivir. @@ -338,7 +350,7 @@ in masculine singular form as second argument. special_ppV : V -> Str -> V ;

- +

Two-place verbs

Two-place verbs need a preposition, except the special case with direct object. @@ -357,7 +369,7 @@ You can reuse a V2 verb in V. v2V : V2 -> V ;

- +

Three-place verbs

Three-place (ditransitive) verbs need two prepositions, of which @@ -369,7 +381,7 @@ the first one or both can be absent. dirdirV3 : V -> V3 ; -- donner,_,_

- +

Other complement patterns

Verbs and adjectives can take complements such as sentences, @@ -405,7 +417,7 @@ as an adverb. Likewise AS, A2S, AV, A2V are just A. AS, A2S, AV, A2V : Type ;

- +

The definitions of the paradigms

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 072215468..2a035d59f 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsSwe.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsSwe.html @@ -2,51 +2,63 @@ - Swedish Lexical Paradigms -

Swedish Lexical Paradigms

-Last update: 2006-03-07 21:08:17 CET


+


+Author: +Last update: Wed May 24 18:29:15 2006 +

+

Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+== +

+

+# -path=.:../scandinavian:../common:../abstract:../../prelude +

+ +

Swedish Lexical Paradigms

+

Aarne Ranta 2003

@@ -84,7 +96,7 @@ words. CatSwe in {

- +

Parameters

To abstract over gender names, we define the following identifiers. @@ -124,7 +136,7 @@ Prepositions used in many-argument functions are just strings. Preposition : Type = Str ;

- +

Nouns

Worst case: give all four forms. The gender is computed from the @@ -167,13 +179,13 @@ It does not work if there are changes in the stem. mk1N : (bilarna : Str) -> N ;

- +

Compound nouns

All the functions above work quite as well to form compound nouns, such as fotboll.

- +

Relational nouns

Relational nouns (daughter of x) need a preposition. @@ -201,7 +213,7 @@ Three-place relational nouns (the connection from x to y) need two prepos mkN3 : N -> Preposition -> Preposition -> N3 ;

- +

Relational common noun phrases

In some cases, you may want to make a complex CN into a @@ -209,7 +221,7 @@ relational noun (e.g. the old town hall of). However, N2 and N3 are purely lexical categories. But you can use the AdvCN and PrepNP constructions to build phrases like this.

- +

Proper names and noun phrases

Proper names, with a regular genitive, are formed as follows @@ -233,7 +245,7 @@ genitive, you can use the worst-case function. mkNP : Str -> Str -> Number -> Gender -> NP ;

- +

Adjectives

Adjectives may need as many as seven forms. @@ -265,7 +277,7 @@ Sometimes just the positive forms are irregular. mk2A : (bred,brett : Str) -> A ;

- +

Two-place adjectives

Two-place adjectives need a preposition for their second argument. @@ -274,7 +286,7 @@ Two-place adjectives need a preposition for their second argument. mkA2 : A -> Preposition -> A2 ;

- +

Adverbs

Adverbs are not inflected. Most lexical ones have position @@ -292,7 +304,7 @@ Adverbs modifying adjectives and sentences can also be formed. mkAdA : Str -> AdA ;

- +

Prepositions

A preposition is just a string. @@ -301,7 +313,7 @@ A preposition is just a string. mkPreposition : Str -> Preposition ;

- +

Verbs

The worst case needs five forms. @@ -339,7 +351,7 @@ In practice, it is enough to give three forms, as in school books. irregV : (dricka, drack, druckit : Str) -> V ;

- +

Verbs with a particle.

The particle, such as in passa på, is given as a string. @@ -348,7 +360,7 @@ The particle, such as in passa p partV : V -> Str -> V ;

- +

Deponent verbs.

Some words are used in passive forms only, e.g. hoppas, some as @@ -359,7 +371,7 @@ reflexive e.g. reflV : V -> V ;

- +

Two-place verbs

Two-place verbs need a preposition, except the special case with direct object. @@ -371,7 +383,7 @@ Two-place verbs need a preposition, except the special case with direct object. dirV2 : V -> V2 ;

- +

Three-place verbs

Three-place (ditransitive) verbs need two prepositions, of which @@ -383,7 +395,7 @@ the first one or both can be absent. dirdirV3 : V -> V3 ; -- ge _ _

- +

Other complement patterns

Verbs and adjectives can take complements such as sentences, @@ -417,7 +429,7 @@ as an adverb. Likewise AS, A2S, AV, A2V are just A. AS, A2S, AV, A2V : Type ;

- +

Definitions of the paradigms

The definitions should not bother the user of the API. So they are diff --git a/lib/resource-1.0/doc/gfdoc/Phrase.html b/lib/resource-1.0/doc/gfdoc/Phrase.html index 68a07e65d..e232ec554 100644 --- a/lib/resource-1.0/doc/gfdoc/Phrase.html +++ b/lib/resource-1.0/doc/gfdoc/Phrase.html @@ -6,12 +6,17 @@

Phrases and utterances

-Last update: 2006-01-25 20:10:39 CET
+Author:
+Last update: Wed May 24 18:29:12 2006


+ +


@@ -20,6 +25,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Phrases and utterances

     abstract Phrase = Cat ** {
 
diff --git a/lib/resource-1.0/doc/gfdoc/Precedence.html b/lib/resource-1.0/doc/gfdoc/Precedence.html index b60db3700..3557cc712 100644 --- a/lib/resource-1.0/doc/gfdoc/Precedence.html +++ b/lib/resource-1.0/doc/gfdoc/Precedence.html @@ -13,7 +13,8 @@

-Last update: 2005-11-17 17:36:49 CET +Author: +Last update: Wed May 24 18:29:16 2006

Produced by @@ -21,6 +22,9 @@ gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+== +

+

operations for precedence-dependent strings. five levels: p4 (constants), p3 (applications), p2 (products), p1 (sums), p0 (arrows) diff --git a/lib/resource-1.0/doc/gfdoc/Predef.html b/lib/resource-1.0/doc/gfdoc/Predef.html index a8703dd28..9d98cf255 100644 --- a/lib/resource-1.0/doc/gfdoc/Predef.html +++ b/lib/resource-1.0/doc/gfdoc/Predef.html @@ -6,12 +6,17 @@

Predefined functions for concrete syntax

-Last update: 2006-02-25 22:19:20 CET
+Author:
+Last update: Wed May 24 18:29:17 2006


+ +


@@ -20,6 +25,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Predefined functions for concrete syntax

The definitions of these constants are hard-coded in GF, and defined in AppPredefined.hs. Applying diff --git a/lib/resource-1.0/doc/gfdoc/PredefAbs.html b/lib/resource-1.0/doc/gfdoc/PredefAbs.html index b428e97f4..512b090b8 100644 --- a/lib/resource-1.0/doc/gfdoc/PredefAbs.html +++ b/lib/resource-1.0/doc/gfdoc/PredefAbs.html @@ -13,13 +13,17 @@


-Last update: 2005-11-17 17:36:49 CET +Author: +Last update: Wed May 24 18:29:17 2006

Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+

+== +

     abstract PredefAbs = {
       cat Int ; String ;
diff --git a/lib/resource-1.0/doc/gfdoc/Predication.html b/lib/resource-1.0/doc/gfdoc/Predication.html
index e8ef2e02b..8d0906843 100644
--- a/lib/resource-1.0/doc/gfdoc/Predication.html
+++ b/lib/resource-1.0/doc/gfdoc/Predication.html
@@ -6,20 +6,24 @@
 
 

A Small Predication Library

-Last update: 2006-02-25 23:46:32 CET
+Author:
+Last update: Wed May 24 18:29:16 2006


+


@@ -29,6 +33,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

A Small Predication Library

(c) Aarne Ranta 2003-2006 under Gnu GPL.

@@ -40,7 +46,7 @@ API of resource grammars. abstract Predication = Cat ** {

- +

The category of atomic sentences

We want to use sentences in positive and negative forms but do not care about @@ -52,7 +58,7 @@ tenses. NegCl : Cl -> S ; -- negative sentence: "x doesn't intersect y"

- +

Predication patterns.

       predV     : V  -> NP -> Cl ;         -- one-place verb:      "x converges"
@@ -70,14 +76,14 @@ tenses.
       predPrep  : Prep -> NP -> NP -> Cl ; -- preposition:         "x is outside y"
 

- +

Imperatives and infinitives.

       impV2     : V2 -> NP -> Phr ;        -- imperative:          "solve the equation E"
       infV2     : V2 -> NP -> Phr ;        -- infinitive:          "to solve the equation E"
 

- +

Individual-valued function applications

       appN2     : N2 -> NP -> NP ;         -- one-place function:  "the successor of x"
@@ -85,7 +91,7 @@ tenses.
       appColl   : N2 -> NP -> NP -> NP ;   -- collective function: "the sum of x and y"
 

- +

Families of types

These are expressed by relational nouns applied to arguments. @@ -96,7 +102,7 @@ These are expressed by relational nouns applied to arguments. famColl : N2 -> NP -> NP -> CN ; -- collective family: "path between x and y"

- +

Type constructor

This is similar to a family except that the argument is a type. diff --git a/lib/resource-1.0/doc/gfdoc/Prelude.html b/lib/resource-1.0/doc/gfdoc/Prelude.html index 9874ebde7..304b27b17 100644 --- a/lib/resource-1.0/doc/gfdoc/Prelude.html +++ b/lib/resource-1.0/doc/gfdoc/Prelude.html @@ -6,21 +6,25 @@

The GF Prelude

-Last update: 2006-02-25 22:31:06 CET
+Author:
+Last update: Wed May 24 18:29:17 2006


+


@@ -30,6 +34,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

The GF Prelude

This file defines some prelude facilities usable in all grammars.

@@ -39,7 +45,7 @@ This file defines some prelude facilities usable in all grammars. oper

- +

Strings, records, and tables

       SS  : Type = {s : Str} ;
@@ -68,7 +74,7 @@ Discontinuous constituents.
       sd2 : (_,_ : Str) -> SD2 = \x,y -> {s1 = x ; s2 = y} ;
 

- +

Optional elements

Missing form. @@ -100,7 +106,7 @@ Parametric order between two strings. if_then_Str pr (x ++ y) (y ++ x) ;

- +

Infixes. prefixes, and postfixes

Fixes with precedences are defined in Precedence. @@ -112,7 +118,7 @@ Fixes with precedences are defined in Precedence. embedSS : Str -> Str -> SS -> SS = \f,g,x -> ss (f ++ x.s ++ g) ;

- +

Booleans

      param Bool = True | False ;
@@ -148,7 +154,7 @@ Interface to internal booleans
       last : Tok -> Tok = Predef.dp 1 ;
 

- +

High-level acces to Predef operations

       isNil : Tok -> Bool = \b -> pbool2bool (Predef.eqStr [] b) ;
@@ -157,7 +163,7 @@ Interface to internal booleans
         case Predef.eqStr t u of {Predef.PTrue => a ; Predef.PFalse => b} ;
 

- +

Lexer-related operations

Bind together two tokens in some lexers, either obligatorily or optionally @@ -185,7 +191,7 @@ These should be hidden, and never changed since they are hardcoded in (un)lexers CAPIT : Str = "&|" ;

- +

Miscellaneous

Identity function diff --git a/lib/resource-1.0/doc/gfdoc/Question.html b/lib/resource-1.0/doc/gfdoc/Question.html index ff5e3ece1..cb63f481f 100644 --- a/lib/resource-1.0/doc/gfdoc/Question.html +++ b/lib/resource-1.0/doc/gfdoc/Question.html @@ -6,12 +6,17 @@

Questions and interrogative pronouns

-Last update: 2006-04-20 21:45:11 CEST
+Author:
+Last update: Wed May 24 18:29:12 2006


+ +


@@ -20,6 +25,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Questions and interrogative pronouns

     abstract Question = Cat ** {
 
diff --git a/lib/resource-1.0/doc/gfdoc/Relative.html b/lib/resource-1.0/doc/gfdoc/Relative.html index 235b9e2e9..d14c629da 100644 --- a/lib/resource-1.0/doc/gfdoc/Relative.html +++ b/lib/resource-1.0/doc/gfdoc/Relative.html @@ -6,12 +6,17 @@

Relative clauses and pronouns

-Last update: 2006-01-17 17:56:17 CET
+Author:
+Last update: Wed May 24 18:29:13 2006


+ +


@@ -20,6 +25,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Relative clauses and pronouns

     abstract Relative = Cat ** {
     
diff --git a/lib/resource-1.0/doc/gfdoc/Sentence.html b/lib/resource-1.0/doc/gfdoc/Sentence.html
index d8a59fc45..4c43d3bd8 100644
--- a/lib/resource-1.0/doc/gfdoc/Sentence.html
+++ b/lib/resource-1.0/doc/gfdoc/Sentence.html
@@ -6,19 +6,23 @@
 
 

Sentences, clauses, imperatives, and sentential complements

-Last update: 2006-01-25 20:10:39 CET
+Author:
+Last update: Wed May 24 18:29:13 2006


+


@@ -28,11 +32,13 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Sentences, clauses, imperatives, and sentential complements

     abstract Sentence = Cat ** {
 

- +

Clauses

The NP VP predication rule form a clause whose linearization @@ -53,7 +59,7 @@ is only meaningful for some verb phrases. PredSCVP : SC -> VP -> Cl ; -- that you go makes me happy

- +

Clauses missing object noun phrases

This category is a variant of the 'slash category' S/NP of @@ -71,7 +77,7 @@ the style of CCG. SlashPrep : Cl -> Prep -> Slash ; -- (with whom) he walks

- +

Imperatives

An imperative is straightforwardly formed from a verb phrase. @@ -82,7 +88,7 @@ To fix these parameters, see Phrase. ImpVP : VP -> Imp ; -- go

- +

Embedded sentences

Sentences, questions, and infinitival phrases can be used as @@ -94,7 +100,7 @@ subjects and (adverbial) complements. EmbedVP : VP -> SC ; -- to go

- +

Sentences

These are the 2 x 4 x 4 = 16 forms generated by different diff --git a/lib/resource-1.0/doc/gfdoc/Structural.html b/lib/resource-1.0/doc/gfdoc/Structural.html index 5a5799dcb..1dd9a9e51 100644 --- a/lib/resource-1.0/doc/gfdoc/Structural.html +++ b/lib/resource-1.0/doc/gfdoc/Structural.html @@ -6,12 +6,17 @@

GF Resource Grammar API for Structural Words

-Last update: 2006-03-07 21:08:18 CET
+Author:
+Last update: Wed May 24 18:29:13 2006


+ +


@@ -20,13 +25,15 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

GF Resource Grammar API for Structural Words

AR 21/11/2003 -- 30/11/2005

Here we have some words belonging to closed classes and appearing in all languages we have considered. -Sometimes they are not really meaningful, e.g. we_NP in Spanish +Sometimes they are not really meaningful, e.g. we_Pron in Spanish should be replaced by masculine and feminine variants.

diff --git a/lib/resource-1.0/doc/gfdoc/Symbol.html b/lib/resource-1.0/doc/gfdoc/Symbol.html
index 80ab280b2..efb4f6296 100644
--- a/lib/resource-1.0/doc/gfdoc/Symbol.html
+++ b/lib/resource-1.0/doc/gfdoc/Symbol.html
@@ -6,17 +6,21 @@
 
 

Symbolic expressions

-Last update: 2006-03-17 12:02:40 CET
+Author:
+Last update: Wed May 24 18:29:16 2006


+


@@ -26,6 +30,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Symbolic expressions

Note. This module is not automatically included in the main grammar Lang. @@ -34,7 +40,7 @@ grammar Lang. abstract Symbol = Cat, PredefAbs ** {

- +

Noun phrases with symbols and numbers

     fun
@@ -46,13 +52,13 @@ grammar Lang.
       CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
 

- +

Sentence consisting of a formula

       SymbS    : Symb -> S ;                 -- A
 

- +

Symbol lists

A symbol list has at least two elements. The last two are separated diff --git a/lib/resource-1.0/doc/gfdoc/Tense.html b/lib/resource-1.0/doc/gfdoc/Tense.html index 621e17a4a..671371ff9 100644 --- a/lib/resource-1.0/doc/gfdoc/Tense.html +++ b/lib/resource-1.0/doc/gfdoc/Tense.html @@ -6,12 +6,17 @@

Tense, Polarity, and Anteriority

-Last update: 2006-02-26 18:06:25 CET
+Author:
+Last update: Wed May 24 18:29:13 2006


+ +


@@ -20,6 +25,8 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Tense, Polarity, and Anteriority

This module defines the abstract parameters of tense, polarity, and anteriority, which are used in Tensed to generate different diff --git a/lib/resource-1.0/doc/gfdoc/Text.html b/lib/resource-1.0/doc/gfdoc/Text.html index 78f8b86fa..b38b571e4 100644 --- a/lib/resource-1.0/doc/gfdoc/Text.html +++ b/lib/resource-1.0/doc/gfdoc/Text.html @@ -6,12 +6,17 @@

Texts

-Last update: 2006-02-20 20:02:47 CET
+Author:
+Last update: Wed May 24 18:29:13 2006


+ +


@@ -20,8 +25,10 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

Texts

-    abstract Text = Cat ** {
+    abstract Text = Common ** {
     
       fun
         TEmpty : Text ;
diff --git a/lib/resource-1.0/doc/gfdoc/Verb.html b/lib/resource-1.0/doc/gfdoc/Verb.html
index 5d47cd62b..512de6ec0 100644
--- a/lib/resource-1.0/doc/gfdoc/Verb.html
+++ b/lib/resource-1.0/doc/gfdoc/Verb.html
@@ -6,18 +6,22 @@
 
 

The construction of verb phrases

-Last update: 2006-02-26 18:02:58 CET
+Author:
+Last update: Wed May 24 18:29:13 2006


+


@@ -27,11 +31,13 @@ Produced by gfdoc - a rudimentary GF document generator. (c) Aarne Ranta (aarne@cs.chalmers.se) 2002 under GNU GPL.

+ +

The construction of verb phrases

     abstract Verb = Cat ** {
 

- +

Complementization rules

Verb phrases are constructed from verbs by providing their @@ -51,7 +57,7 @@ complements. There is one rule for each verb category. ComplV2A : V2A -> NP -> AP -> VP ; -- paint the house red

- +

Other ways of forming verb phrases

Verb phrases can also be constructed reflexively and from @@ -92,7 +98,7 @@ vs. next to (or before) the verb. Agents of passives are constructed as adverbs with the preposition Structural.8agent_Prep.

- +

Complements to copula

Adjectival phrases, noun phrases, and adverbs can be used. @@ -103,7 +109,7 @@ Adjectival phrases, noun phrases, and adverbs can be used. CompAdv : Adv -> Comp ; -- (be) here

- +

Coercions

Verbs can change subcategorization patterns in systematic ways, diff --git a/lib/resource-1.0/doc/index.txt b/lib/resource-1.0/doc/index.txt index 16fa546c3..55b3f6d6c 100644 --- a/lib/resource-1.0/doc/index.txt +++ b/lib/resource-1.0/doc/index.txt @@ -172,8 +172,7 @@ sufficient for many applications. ====Multimodal==== -- [Multimodal gfdoc/Multimodal.html]: main module for multimodal dialogue systems -- [Demonstrative gfdoc/Demonstrative.html]: demonstrative noun phrases and adverbs +- [Multi gfdoc/Multi.html]: main module for multimodal dialogue systems ====Mathematical==== diff --git a/lib/resource-1.0/multimodal/MultiI.gf b/lib/resource-1.0/multimodal/MultiI.gf index 4d9c1d5d6..24546b2cc 100644 --- a/lib/resource-1.0/multimodal/MultiI.gf +++ b/lib/resource-1.0/multimodal/MultiI.gf @@ -12,6 +12,8 @@ incomplete concrete MultiI of Multi = ] ** open (Lang = Lang) in { + flags optimize = all_subs ; + lincat NP = Lang.NP ** {point : Str} ; Adv = Lang.Adv ** {point : Str} ; @@ -158,15 +160,15 @@ incomplete concrete MultiI of Multi = --3 Demonstratives - this8point_NP p = LangEng.this_NP ** p ; - that8point_NP p = LangEng.that_NP ** p ; - these8point_NP p = LangEng.these_NP ** p ; - those8point_NP p = LangEng.those_NP ** p ; + this8point_NP p = Lang.this_NP ** p ; + that8point_NP p = Lang.that_NP ** p ; + these8point_NP p = Lang.these_NP ** p ; + those8point_NP p = Lang.those_NP ** p ; here8point_Adv p = Lang.here_Adv ** p ; here7to8point_Adv p = Lang.here7to_Adv ** p ; here7from8point_Adv p = Lang.here7from_Adv ** p ; - this8point_Quant p = LangEng.this_Quant ** p ; - that8point_Quant p = LangEng.that_Quant ** p ; + this8point_Quant p = Lang.this_Quant ** p ; + that8point_Quant p = Lang.that_Quant ** p ; MkPoint s = {point = s.s} ; @@ -174,4 +176,4 @@ incomplete concrete MultiI of Multi = oper noPoint = {point = []} ; -} \ No newline at end of file +} diff --git a/lib/resource-1.0/multimodal/DemRes.gf b/lib/resource-1.0/multimodal/old/DemRes.gf similarity index 100% rename from lib/resource-1.0/multimodal/DemRes.gf rename to lib/resource-1.0/multimodal/old/DemRes.gf diff --git a/lib/resource-1.0/multimodal/Demonstrative.gf b/lib/resource-1.0/multimodal/old/Demonstrative.gf similarity index 100% rename from lib/resource-1.0/multimodal/Demonstrative.gf rename to lib/resource-1.0/multimodal/old/Demonstrative.gf diff --git a/lib/resource-1.0/multimodal/DemonstrativeEng.gf b/lib/resource-1.0/multimodal/old/DemonstrativeEng.gf similarity index 100% rename from lib/resource-1.0/multimodal/DemonstrativeEng.gf rename to lib/resource-1.0/multimodal/old/DemonstrativeEng.gf diff --git a/lib/resource-1.0/multimodal/DemonstrativeFin.gf b/lib/resource-1.0/multimodal/old/DemonstrativeFin.gf similarity index 100% rename from lib/resource-1.0/multimodal/DemonstrativeFin.gf rename to lib/resource-1.0/multimodal/old/DemonstrativeFin.gf diff --git a/lib/resource-1.0/multimodal/DemonstrativeFre.gf b/lib/resource-1.0/multimodal/old/DemonstrativeFre.gf similarity index 100% rename from lib/resource-1.0/multimodal/DemonstrativeFre.gf rename to lib/resource-1.0/multimodal/old/DemonstrativeFre.gf diff --git a/lib/resource-1.0/multimodal/DemonstrativeGer.gf b/lib/resource-1.0/multimodal/old/DemonstrativeGer.gf similarity index 100% rename from lib/resource-1.0/multimodal/DemonstrativeGer.gf rename to lib/resource-1.0/multimodal/old/DemonstrativeGer.gf diff --git a/lib/resource-1.0/multimodal/DemonstrativeI.gf b/lib/resource-1.0/multimodal/old/DemonstrativeI.gf similarity index 100% rename from lib/resource-1.0/multimodal/DemonstrativeI.gf rename to lib/resource-1.0/multimodal/old/DemonstrativeI.gf diff --git a/lib/resource-1.0/multimodal/DemonstrativeIta.gf b/lib/resource-1.0/multimodal/old/DemonstrativeIta.gf similarity index 100% rename from lib/resource-1.0/multimodal/DemonstrativeIta.gf rename to lib/resource-1.0/multimodal/old/DemonstrativeIta.gf diff --git a/lib/resource-1.0/multimodal/DemonstrativeNor.gf b/lib/resource-1.0/multimodal/old/DemonstrativeNor.gf similarity index 100% rename from lib/resource-1.0/multimodal/DemonstrativeNor.gf rename to lib/resource-1.0/multimodal/old/DemonstrativeNor.gf diff --git a/lib/resource-1.0/multimodal/DemonstrativeSpa.gf b/lib/resource-1.0/multimodal/old/DemonstrativeSpa.gf similarity index 100% rename from lib/resource-1.0/multimodal/DemonstrativeSpa.gf rename to lib/resource-1.0/multimodal/old/DemonstrativeSpa.gf diff --git a/lib/resource-1.0/multimodal/DemonstrativeSwe.gf b/lib/resource-1.0/multimodal/old/DemonstrativeSwe.gf similarity index 100% rename from lib/resource-1.0/multimodal/DemonstrativeSwe.gf rename to lib/resource-1.0/multimodal/old/DemonstrativeSwe.gf diff --git a/lib/resource-1.0/multimodal/Multimodal.gf b/lib/resource-1.0/multimodal/old/Multimodal.gf similarity index 100% rename from lib/resource-1.0/multimodal/Multimodal.gf rename to lib/resource-1.0/multimodal/old/Multimodal.gf diff --git a/lib/resource-1.0/multimodal/MultimodalEng.gf b/lib/resource-1.0/multimodal/old/MultimodalEng.gf similarity index 100% rename from lib/resource-1.0/multimodal/MultimodalEng.gf rename to lib/resource-1.0/multimodal/old/MultimodalEng.gf diff --git a/lib/resource-1.0/multimodal/MultimodalFin.gf b/lib/resource-1.0/multimodal/old/MultimodalFin.gf similarity index 100% rename from lib/resource-1.0/multimodal/MultimodalFin.gf rename to lib/resource-1.0/multimodal/old/MultimodalFin.gf diff --git a/lib/resource-1.0/multimodal/MultimodalFre.gf b/lib/resource-1.0/multimodal/old/MultimodalFre.gf similarity index 100% rename from lib/resource-1.0/multimodal/MultimodalFre.gf rename to lib/resource-1.0/multimodal/old/MultimodalFre.gf diff --git a/lib/resource-1.0/multimodal/MultimodalGer.gf b/lib/resource-1.0/multimodal/old/MultimodalGer.gf similarity index 100% rename from lib/resource-1.0/multimodal/MultimodalGer.gf rename to lib/resource-1.0/multimodal/old/MultimodalGer.gf diff --git a/lib/resource-1.0/multimodal/MultimodalIta.gf b/lib/resource-1.0/multimodal/old/MultimodalIta.gf similarity index 100% rename from lib/resource-1.0/multimodal/MultimodalIta.gf rename to lib/resource-1.0/multimodal/old/MultimodalIta.gf diff --git a/lib/resource-1.0/multimodal/MultimodalNor.gf b/lib/resource-1.0/multimodal/old/MultimodalNor.gf similarity index 100% rename from lib/resource-1.0/multimodal/MultimodalNor.gf rename to lib/resource-1.0/multimodal/old/MultimodalNor.gf diff --git a/lib/resource-1.0/multimodal/MultimodalSpa.gf b/lib/resource-1.0/multimodal/old/MultimodalSpa.gf similarity index 100% rename from lib/resource-1.0/multimodal/MultimodalSpa.gf rename to lib/resource-1.0/multimodal/old/MultimodalSpa.gf diff --git a/lib/resource-1.0/multimodal/MultimodalSwe.gf b/lib/resource-1.0/multimodal/old/MultimodalSwe.gf similarity index 100% rename from lib/resource-1.0/multimodal/MultimodalSwe.gf rename to lib/resource-1.0/multimodal/old/MultimodalSwe.gf