diff --git a/lib/resource-1.0/Makefile b/lib/resource-1.0/Makefile index 9304973fa..c0b901a3b 100644 --- a/lib/resource-1.0/Makefile +++ b/lib/resource-1.0/Makefile @@ -99,9 +99,13 @@ gfdoc: gfdoc -txthtml mathematical/Predication.gf gfdoc -txthtml multimodal/Multi.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 mathematical/*.html doc/gfdoc mv multimodal/*.html doc/gfdoc + mv api/*.html doc/gfdoc mv */Paradigms*.html doc/gfdoc cp */Irreg???.gf doc/gfdoc mv ../prelude/*.html doc/gfdoc diff --git a/lib/resource-1.0/doc/gfdoc/Adjective.html b/lib/resource-1.0/doc/gfdoc/Adjective.html index 0afa60ed5..782afdbe7 100644 --- a/lib/resource-1.0/doc/gfdoc/Adjective.html +++ b/lib/resource-1.0/doc/gfdoc/Adjective.html @@ -6,7 +6,7 @@

Adjective: Adjectives and Adjectival Phrases

-Last update: 2006-06-22 19:14:36 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Adverb.html b/lib/resource-1.0/doc/gfdoc/Adverb.html index eee0f5516..2f707f31b 100644 --- a/lib/resource-1.0/doc/gfdoc/Adverb.html +++ b/lib/resource-1.0/doc/gfdoc/Adverb.html @@ -6,7 +6,7 @@

Adverb: Adverbs and Adverbial Phrases

-Last update: 2006-06-14 22:56:30 CEST
+Last update: 2006-06-15 09:19:39 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Cat.html b/lib/resource-1.0/doc/gfdoc/Cat.html index 04d37d0f1..706e3433d 100644 --- a/lib/resource-1.0/doc/gfdoc/Cat.html +++ b/lib/resource-1.0/doc/gfdoc/Cat.html @@ -6,7 +6,7 @@

Cat: the Category System

-Last update: 2006-06-22 19:10:58 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Combinators.html b/lib/resource-1.0/doc/gfdoc/Combinators.html new file mode 100644 index 000000000..ee008aab8 --- /dev/null +++ b/lib/resource-1.0/doc/gfdoc/Combinators.html @@ -0,0 +1,126 @@ + + + + + Combinators: a High-Level Syntax API + +

Combinators: a High-Level Syntax API

+ +Last update: 2006-12-22 14:10:19 CET
+
+ +

+
+

+ + +

+
+

+

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

+

+This module defines some grammatical functions that give shortcuts to +typical constructions. Constructors and the +language-specific Paradigms modules are usually needed +to construct arguments of these functions. +

+
+    incomplete resource Combinators = open Grammar in {
+    
+      oper
+
+

+ +

Predication

+
+        pred : overload {
+          pred : V  -> NP -> Cl ;
+          pred : V2 -> NP -> NP -> Cl ;
+          pred : V3 -> NP -> NP -> NP -> Cl ; 
+          pred : V  -> NP -> NP -> Cl ;
+          pred : A  -> NP -> Cl ; 
+          pred : A2 -> NP -> NP -> Cl ;
+          pred : A  -> NP -> NP -> Cl ;      
+          pred : N -> NP -> Cl ;
+          pred : CN -> NP -> Cl ;
+          pred : NP -> NP -> Cl ;
+          pred : N -> NP -> NP -> Cl ; 
+          pred : Adv -> NP -> Cl ; 
+          pred : Prep -> NP -> NP -> Cl
+          } ;
+
+

+ +

Function application

+
+        app : overload {
+          app : N  -> NP ;
+          app : N2 -> NP -> NP ; 
+          app : N3 -> NP -> NP -> NP ;
+          app : N2 -> NP -> NP -> NP ;
+          app : N2 -> N -> CN
+          } ;
+
+

+ +

Coordination

+
+        coord : overload {
+          coord : Conj  -> Adv -> Adv -> Adv ;
+          coord : Conj  -> AP -> AP -> AP ;
+          coord : Conj  -> NP -> NP -> NP ;
+          coord : Conj  -> S  -> S  -> S ;
+          coord : DConj -> Adv -> Adv -> Adv ;
+          coord : DConj -> AP -> AP -> AP ;
+          coord : DConj -> NP -> NP -> NP ;
+          coord : DConj -> S  -> S  -> S ;
+          coord : Conj  -> ListAdv -> Adv ;
+          coord : Conj  -> ListAP -> AP ;
+          coord : Conj  -> ListNP -> NP ;
+          coord : Conj  -> ListS  -> S ;
+          coord : DConj -> ListAdv -> Adv ;
+          coord : DConj -> ListAP -> AP ;
+          coord : DConj -> ListNP -> NP ;
+          coord : DConj -> ListS  -> S  
+    
+          } ;
+
+

+ +

Modification

+
+        mod : overload {
+          mod : A -> N -> CN ;
+          mod : AP -> CN -> CN ;
+          mod : AdA -> A -> AP ;
+          mod : Quant -> N -> NP ;
+          mod : Quant -> CN -> NP ;
+          mod : Predet -> N -> NP ;
+          mod : Numeral -> N -> NP
+    
+          } ;
+
+

+ +

Text append

+

+This is not in ground API, because it would destroy parsing. +

+
+        appendText : Text -> Text -> Text ;
+
+

+ + + + diff --git a/lib/resource-1.0/doc/gfdoc/Common.html b/lib/resource-1.0/doc/gfdoc/Common.html index 9a348ba29..3ab63caf9 100644 --- a/lib/resource-1.0/doc/gfdoc/Common.html +++ b/lib/resource-1.0/doc/gfdoc/Common.html @@ -6,7 +6,7 @@

Common: Structures with Common Implementations.

-Last update: 2006-06-22 19:13:55 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Conjunction.html b/lib/resource-1.0/doc/gfdoc/Conjunction.html index b2caa31b3..aa9593ed7 100644 --- a/lib/resource-1.0/doc/gfdoc/Conjunction.html +++ b/lib/resource-1.0/doc/gfdoc/Conjunction.html @@ -6,7 +6,7 @@

Conjunction: Coordination

-Last update: 2006-06-22 19:17:31 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Constructors.html b/lib/resource-1.0/doc/gfdoc/Constructors.html index eda042d20..626057b70 100644 --- a/lib/resource-1.0/doc/gfdoc/Constructors.html +++ b/lib/resource-1.0/doc/gfdoc/Constructors.html @@ -6,7 +6,7 @@

Constructors: the High-Level Syntax API

-Last update: 2006-11-21 19:14:38 CET
+Last update: 2006-11-27 17:15:06 CET

@@ -85,7 +85,7 @@ to this.
         mkText : overload {
           mkText : Text               ;   -- [empty text]
-          mkText : Phr -> Text -> Text;   -- John walks. ...
+          mkText : Phr -> Text -> Text    -- John walks. ...
           } ;
     
         mkPhr : overload {
@@ -116,8 +116,8 @@ to this.
           mkS : Conj -> S -> S -> S ;            -- John walks and Mary talks   
           mkS : DConj -> S -> S -> S ;           -- either I leave or you come
           mkS : Conj -> ListS -> S ;             -- John walks, Mary talks, and Bob runs
-          mkS : DConj -> ListS -> S              -- either I leave, you come, or he runs
-    
+          mkS : DConj -> ListS -> S ;            -- either I leave, you come, or he runs
+          mkS : Adv -> S -> S                    -- today, I will sleep
           } ;
     
         mkCl : overload {
diff --git a/lib/resource-1.0/doc/gfdoc/Grammar.html b/lib/resource-1.0/doc/gfdoc/Grammar.html
index d324f7076..93e4c82c3 100644
--- a/lib/resource-1.0/doc/gfdoc/Grammar.html
+++ b/lib/resource-1.0/doc/gfdoc/Grammar.html
@@ -6,7 +6,7 @@
 
 

Grammar: the Main Module of the Resource Grammar

-Last update: 2006-06-22 19:08:55 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Idiom.html b/lib/resource-1.0/doc/gfdoc/Idiom.html index ce6b849fa..e808d2c24 100644 --- a/lib/resource-1.0/doc/gfdoc/Idiom.html +++ b/lib/resource-1.0/doc/gfdoc/Idiom.html @@ -6,7 +6,7 @@

Idiom: Idiomatic Expressions

-Last update: 2006-06-14 22:57:19 CEST
+Last update: 2006-06-15 09:19:39 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Lang.html b/lib/resource-1.0/doc/gfdoc/Lang.html index 16c2d9e24..8e957cbdb 100644 --- a/lib/resource-1.0/doc/gfdoc/Lang.html +++ b/lib/resource-1.0/doc/gfdoc/Lang.html @@ -6,7 +6,7 @@

Lang: a Test Module for the Resource Grammar

-Last update: 2006-06-22 19:09:20 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Mathematical.html b/lib/resource-1.0/doc/gfdoc/Mathematical.html index d0d812f52..70ef813ac 100644 --- a/lib/resource-1.0/doc/gfdoc/Mathematical.html +++ b/lib/resource-1.0/doc/gfdoc/Mathematical.html @@ -6,7 +6,7 @@

The Mathematics API to the Resource Grammar

-Last update: 2006-02-25 21:36:45 CET
+Last update: 2006-02-28 09:26:58 CET

diff --git a/lib/resource-1.0/doc/gfdoc/Multi.html b/lib/resource-1.0/doc/gfdoc/Multi.html index 65eb56347..e94882d8b 100644 --- a/lib/resource-1.0/doc/gfdoc/Multi.html +++ b/lib/resource-1.0/doc/gfdoc/Multi.html @@ -6,7 +6,7 @@

Multimodal additions to the resource grammar library

-Last update: 2006-05-23 23:36:59 CEST
+Last update: 2006-05-24 15:08:56 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Noun.html b/lib/resource-1.0/doc/gfdoc/Noun.html index 47d42c0a9..5483a7e8d 100644 --- a/lib/resource-1.0/doc/gfdoc/Noun.html +++ b/lib/resource-1.0/doc/gfdoc/Noun.html @@ -6,7 +6,7 @@

Noun: Nouns, noun phrases, and determiners

-Last update: 2006-06-22 19:19:41 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Numeral.html b/lib/resource-1.0/doc/gfdoc/Numeral.html index 3e6048a91..482a5736a 100644 --- a/lib/resource-1.0/doc/gfdoc/Numeral.html +++ b/lib/resource-1.0/doc/gfdoc/Numeral.html @@ -6,7 +6,7 @@

Numerals

-Last update: 2006-06-22 19:22:05 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsDan.html b/lib/resource-1.0/doc/gfdoc/ParadigmsDan.html index a34e49998..dd9b3b38e 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsDan.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsDan.html @@ -6,7 +6,7 @@

Danish Lexical Paradigms

-Last update: 2006-06-22 20:53:41 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsEng.html b/lib/resource-1.0/doc/gfdoc/ParadigmsEng.html index b9ec2e2dd..dd5ed0f28 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsEng.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsEng.html @@ -6,7 +6,7 @@

English Lexical Paradigms

-Last update: 2006-06-22 20:54:15 CEST
+Last update: 2006-11-23 14:34:29 CET

@@ -122,10 +122,18 @@ The resource category Prep is used.

Nouns

+Nouns are constructed by the function mkN, which takes a varying +number of arguments. +

+
+      mkN : overload {
+
+

+

Worst case: give all four forms.

-      mkN  : (man,men,man's,men's : Str) -> N ;
+        mkN : (man,men,man's,men's : Str) -> N ;
 

@@ -134,14 +142,14 @@ The regular function captures the variants for nouns ending with fly - flies (but toy - toys),

-      regN : Str -> N ;
+        mkN : (flash : Str) -> N ;
 

In practice the worst case is just: give singular and plural nominative.

-      mk2N : (man,men : Str) -> N ;
+        mkN : (man,men : Str) -> N ;
 

@@ -150,7 +158,7 @@ All nouns created by the previous functions are marked as function:

-      genderN : Gender -> N -> N ;
+        mkN : Gender -> N -> N ;
 

@@ -160,7 +168,8 @@ A compound noun ia an uninflected string attached to an inflected noun, such as baby boom, chief executive officer.

-      compoundN : Str -> N -> N ;
+        mkN : Str -> N -> N
+      } ;
 

diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsFin.html b/lib/resource-1.0/doc/gfdoc/ParadigmsFin.html index 346b9e625..9472a00f2 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsFin.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsFin.html @@ -6,7 +6,7 @@

Finnish Lexical Paradigms

-Last update: 2006-06-22 20:46:07 CEST
+Last update: 2006-11-13 16:54:32 CET

@@ -168,9 +168,10 @@ Examples: talo, kukko, huippu, koira, kukka,

-A special case are nouns with no alternations: +A special case: the vowel harmony is inferred from the last letter, -which must be one of o, u, , y. +which must be one of o, u, , y. Regular weak-grade alternation +is performed.

       nTalo : (talo : Str) -> N ;
diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsFre.html b/lib/resource-1.0/doc/gfdoc/ParadigmsFre.html
index 5f96b5123..15ff0718c 100644
--- a/lib/resource-1.0/doc/gfdoc/ParadigmsFre.html
+++ b/lib/resource-1.0/doc/gfdoc/ParadigmsFre.html
@@ -6,7 +6,7 @@
 
 

French Lexical Paradigms

-Last update: 2006-06-22 21:02:44 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsGer.html b/lib/resource-1.0/doc/gfdoc/ParadigmsGer.html index 7e2dee6fc..a0cfcea83 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsGer.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsGer.html @@ -6,7 +6,7 @@

German Lexical Paradigms

-Last update: 2006-06-22 20:58:18 CEST
+Last update: 2006-11-13 16:54:32 CET

diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsIta.html b/lib/resource-1.0/doc/gfdoc/ParadigmsIta.html index 076355eb9..e3c8dcc4a 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsIta.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsIta.html @@ -6,7 +6,7 @@

Italian Lexical Paradigms

-Last update: 2006-06-22 21:07:00 CEST
+Last update: 2006-12-07 11:27:52 CET

@@ -123,6 +123,13 @@ amalgamate with the following word (the 'genitive' di and the mkPrep : Str -> Prep ;

+

+The following prepositions also have special contracted forms. +

+
+      con_Prep, da_Prep, in_Prep, su_Prep : Prep ;
+
+

Nouns

diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsNor.html b/lib/resource-1.0/doc/gfdoc/ParadigmsNor.html index ebd816456..c9793fc17 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsNor.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsNor.html @@ -6,7 +6,7 @@

Norwegian Lexical Paradigms

-Last update: 2006-06-22 21:16:02 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsRus.html b/lib/resource-1.0/doc/gfdoc/ParadigmsRus.html index 99d206b6a..bd944e1e1 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsRus.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsRus.html @@ -6,7 +6,7 @@

Russian Lexical Paradigms

-Last update: 2006-06-22 17:53:54 CEST
+Last update: 2006-09-06 14:59:55 CEST

@@ -327,9 +327,10 @@ The worst case need 6 forms of the present tense in indicative mood a past form (singular, masculine: я бежал), an imperative form (singular, second person: беги), an infinitive (бежать). Inherent aspect should also be specified. +mkVerbum : Aspect -> (presentSgP1,presentSgP2,presentSgP3,

-       mkVerbum : Aspect -> (presentSgP1,presentSgP2,presentSgP3,
+       mkV : Aspect -> (presentSgP1,presentSgP2,presentSgP3,
                              presentPlP1,presentPlP2,presentPlP3,
                              pastSgMasculine,imperative,infinitive: Str) -> V ;
 
@@ -352,14 +353,6 @@ regV Imperfective Second люб лю любил люби

-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 V type, that have these parameters fixed. -We can extract the V from the lexicon. -mkV: Verbum -> Voice -> V ; -mkPresentV: Verbum -> Voice -> V ; Two-place verbs, and the special case with direct object. Notice that a particle can be included in a V.

diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsSpa.html b/lib/resource-1.0/doc/gfdoc/ParadigmsSpa.html index af4879cdf..5e567d020 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsSpa.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsSpa.html @@ -6,7 +6,7 @@

Spanish Lexical Paradigms

-Last update: 2006-06-22 21:33:43 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/ParadigmsSwe.html b/lib/resource-1.0/doc/gfdoc/ParadigmsSwe.html index ca59a1f7d..47dd14d6c 100644 --- a/lib/resource-1.0/doc/gfdoc/ParadigmsSwe.html +++ b/lib/resource-1.0/doc/gfdoc/ParadigmsSwe.html @@ -6,7 +6,7 @@

Swedish Lexical Paradigms

-Last update: 2006-06-22 21:39:41 CEST
+Last update: 2006-10-31 16:59:43 CET

diff --git a/lib/resource-1.0/doc/gfdoc/Phrase.html b/lib/resource-1.0/doc/gfdoc/Phrase.html index 753a83229..ae6ef29cf 100644 --- a/lib/resource-1.0/doc/gfdoc/Phrase.html +++ b/lib/resource-1.0/doc/gfdoc/Phrase.html @@ -6,7 +6,7 @@

Phrase: Phrases and Utterances

-Last update: 2006-06-14 22:58:47 CEST
+Last update: 2006-12-13 09:36:48 CET

@@ -38,10 +38,11 @@ and suffixing with a vocative (typically a noun phrase). Utterances are formed from sentences, questions, and imperatives.

-        UttS     : S -> Utt ;                   -- John walks
-        UttQS    : QS -> Utt ;                  -- is it good
-        UttImpSg : Pol -> Imp -> Utt;           -- (don't) help yourself
-        UttImpPl : Pol -> Imp -> Utt;           -- (don't) help yourselves
+        UttS      : S   -> Utt ;                -- John walks
+        UttQS     : QS  -> Utt ;                -- is it good
+        UttImpSg  : Pol -> Imp -> Utt;          -- (don't) help yourself
+        UttImpPl  : Pol -> Imp -> Utt;          -- (don't) help yourselves
+        UttImpPol : Pol -> Imp -> Utt ;         -- (don't) help (polite)
 

diff --git a/lib/resource-1.0/doc/gfdoc/Precedence.html b/lib/resource-1.0/doc/gfdoc/Precedence.html index b60db3700..63b421529 100644 --- a/lib/resource-1.0/doc/gfdoc/Precedence.html +++ b/lib/resource-1.0/doc/gfdoc/Precedence.html @@ -13,7 +13,7 @@


-Last update: 2005-11-17 17:36:49 CET +Last update: 2005-11-23 09:16:18 CET

Produced by diff --git a/lib/resource-1.0/doc/gfdoc/Predef.html b/lib/resource-1.0/doc/gfdoc/Predef.html index a8703dd28..693d078e2 100644 --- a/lib/resource-1.0/doc/gfdoc/Predef.html +++ b/lib/resource-1.0/doc/gfdoc/Predef.html @@ -6,7 +6,7 @@

Predefined functions for concrete syntax

-Last update: 2006-02-25 22:19:20 CET
+Last update: 2006-09-01 16:37:08 CEST

@@ -36,9 +36,11 @@ This type of booleans is for internal use only.
       param PBool = PTrue | PFalse ;
     
-      oper Int  : Type = variants {} ;                     -- the type of integers
-      oper Ints : Int -> Type = variants {} ;              -- the type of integers from 0 to n
+      oper Error : Type = variants {} ;          -- the empty type
+      oper Int   : Type = variants {} ;          -- the type of integers
+      oper Ints  : Int -> Type = variants {} ;   -- the type of integers from 0 to n
     
+      oper error  : Str        -> Error    = variants {} ; -- forms error message
       oper length : Tok ->        Int      = variants {} ; -- length of string
       oper drop   : Int -> Tok -> Tok      = variants {} ; -- drop prefix of length
       oper take   : Int -> Tok -> Tok      = variants {} ; -- take prefix of length
diff --git a/lib/resource-1.0/doc/gfdoc/PredefAbs.html b/lib/resource-1.0/doc/gfdoc/PredefAbs.html
index 8277d65d6..8bd03dae2 100644
--- a/lib/resource-1.0/doc/gfdoc/PredefAbs.html
+++ b/lib/resource-1.0/doc/gfdoc/PredefAbs.html
@@ -13,7 +13,7 @@
 

-Last update: 2006-06-03 10:54:51 CEST +Last update: 2006-06-02 17:49:44 CEST

Produced by diff --git a/lib/resource-1.0/doc/gfdoc/Predication.html b/lib/resource-1.0/doc/gfdoc/Predication.html index e8ef2e02b..3278694ac 100644 --- a/lib/resource-1.0/doc/gfdoc/Predication.html +++ b/lib/resource-1.0/doc/gfdoc/Predication.html @@ -6,7 +6,7 @@

A Small Predication Library

-Last update: 2006-02-25 23:46:32 CET
+Last update: 2006-02-28 09:26:58 CET

diff --git a/lib/resource-1.0/doc/gfdoc/Prelude.html b/lib/resource-1.0/doc/gfdoc/Prelude.html index 9874ebde7..6f1bbde29 100644 --- a/lib/resource-1.0/doc/gfdoc/Prelude.html +++ b/lib/resource-1.0/doc/gfdoc/Prelude.html @@ -6,7 +6,7 @@

The GF Prelude

-Last update: 2006-02-25 22:31:06 CET
+Last update: 2006-02-27 09:41:31 CET

diff --git a/lib/resource-1.0/doc/gfdoc/Question.html b/lib/resource-1.0/doc/gfdoc/Question.html index b9c7e8b74..5a4a25358 100644 --- a/lib/resource-1.0/doc/gfdoc/Question.html +++ b/lib/resource-1.0/doc/gfdoc/Question.html @@ -6,7 +6,7 @@

Question: Questions and Interrogative Pronouns

-Last update: 2006-06-22 19:22:41 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Relative.html b/lib/resource-1.0/doc/gfdoc/Relative.html index 1111923e5..ecceda94e 100644 --- a/lib/resource-1.0/doc/gfdoc/Relative.html +++ b/lib/resource-1.0/doc/gfdoc/Relative.html @@ -6,7 +6,7 @@

Relative clauses and pronouns

-Last update: 2006-06-22 19:23:30 CEST
+Last update: 2006-06-26 13:24:17 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Sentence.html b/lib/resource-1.0/doc/gfdoc/Sentence.html index d6b011032..c91e9acf9 100644 --- a/lib/resource-1.0/doc/gfdoc/Sentence.html +++ b/lib/resource-1.0/doc/gfdoc/Sentence.html @@ -6,7 +6,7 @@

Sentence: Sentences, Clauses, and Imperatives

-Last update: 2006-06-22 19:24:56 CEST
+Last update: 2006-12-18 16:59:02 CET

@@ -66,10 +66,10 @@ the style of CCG. Note the set is not complete and lacks e.g. verbs with more than 2 places.

-        SlashV2   : NP -> V2 -> Slash ;      -- (whom) he sees
-        SlashVVV2 : NP -> VV -> V2 -> Slash; -- (whom) he wants to see 
-        AdvSlash  : Slash -> Adv -> Slash ;  -- (whom) he sees tomorrow
-        SlashPrep : Cl -> Prep -> Slash ;    -- (with whom) he walks 
+        SlashV2   : NP -> V2 -> Slash ;         -- (whom) he sees
+        SlashVVV2 : NP -> VV -> V2 -> Slash;    -- (whom) he wants to see 
+        AdvSlash  : Slash -> Adv -> Slash ;     -- (whom) he sees tomorrow
+        SlashPrep : Cl -> Prep -> Slash ;       -- (with whom) he walks 
 

@@ -107,6 +107,13 @@ anteriority, which are defined in Common. UseCl : Tense -> Ant -> Pol -> Cl -> S ; UseQCl : Tense -> Ant -> Pol -> QCl -> QS ; UseRCl : Tense -> Ant -> Pol -> RCl -> RS ; +
+

+

+An adverb can be added to the beginning of a sentence. +

+
+        AdvS   : Adv -> S  -> S ;            -- today, I will go home
     
     }
 
diff --git a/lib/resource-1.0/doc/gfdoc/Structural.html b/lib/resource-1.0/doc/gfdoc/Structural.html index dad685866..bf3306bff 100644 --- a/lib/resource-1.0/doc/gfdoc/Structural.html +++ b/lib/resource-1.0/doc/gfdoc/Structural.html @@ -6,7 +6,7 @@

Structural: Structural Words

-Last update: 2006-06-22 19:26:01 CEST
+Last update: 2006-11-27 16:41:30 CET

@@ -63,6 +63,7 @@ This is an alphabetical list of structural words everywhere_Adv : Adv ; first_Ord : Ord ; few_Det : Det ; + for_Prep : Prep ; from_Prep : Prep ; he_Pron : Pron ; here_Adv : Adv ; diff --git a/lib/resource-1.0/doc/gfdoc/Symbol.html b/lib/resource-1.0/doc/gfdoc/Symbol.html index 80ab280b2..12c81da6b 100644 --- a/lib/resource-1.0/doc/gfdoc/Symbol.html +++ b/lib/resource-1.0/doc/gfdoc/Symbol.html @@ -6,7 +6,7 @@

Symbolic expressions

-Last update: 2006-03-17 12:02:40 CET
+Last update: 2006-11-23 12:18:08 CET

@@ -15,7 +15,9 @@

@@ -42,7 +44,7 @@ grammar Lang. SymbPN : Symb -> PN ; -- x IntPN : Int -> PN ; -- 27 FloatPN : Float -> PN ; -- 3.14159 - CNIntNP : CN -> Int -> NP ; -- level 53 + CNNumNP : CN -> Num -> NP ; -- level five ; level 5 CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y

@@ -53,6 +55,13 @@ grammar Lang.

+

Symbols as numerals

+
+      SymbNum  : Symb -> Num ;               -- n
+      SymbOrd  : Symb -> Ord ;               -- n'th
+
+

+

Symbol lists

A symbol list has at least two elements. The last two are separated @@ -66,6 +75,12 @@ This produces x, y and z, in English. fun MkSymb : String -> Symb ; + +

+ +

Obsolescent

+
+      CNIntNP  : CN -> Int -> NP ;           -- level 53 (covered by CNNumNP)
     
     }
 
diff --git a/lib/resource-1.0/doc/gfdoc/Symbolic.html b/lib/resource-1.0/doc/gfdoc/Symbolic.html new file mode 100644 index 000000000..1b606f2a5 --- /dev/null +++ b/lib/resource-1.0/doc/gfdoc/Symbolic.html @@ -0,0 +1,43 @@ + + + + + Symbolic: Noun Phrases with mathematical symbols + +

Symbolic: Noun Phrases with mathematical symbols

+ +Last update: 2006-12-22 14:08:31 CET
+
+ +

+
+

+

+
+

+

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

+
+    incomplete resource Symbolic = open Symbol, Grammar in {
+    
+      oper
+        symb : overload {
+          symb : Str -> NP ;                       -- x
+          symb : Int -> NP ;                       -- 23
+          symb : Float -> NP ;                     -- 0.99
+          symb : N -> Int -> NP ;                  -- level 4
+          symb : CN -> Num -> NP ;                 -- level four
+          symb : Det -> N  -> Str -> Str -> NP ;   -- the levels i and j
+          symb : Det -> CN -> [Symb] -> NP         -- the basic levels i, j, and k
+          } ;
+    
+        mkSymb : Str -> Symb ;
+
+

+ + + + diff --git a/lib/resource-1.0/doc/gfdoc/Text.html b/lib/resource-1.0/doc/gfdoc/Text.html index 963b315d3..8ab03c9ec 100644 --- a/lib/resource-1.0/doc/gfdoc/Text.html +++ b/lib/resource-1.0/doc/gfdoc/Text.html @@ -6,7 +6,7 @@

Text: Texts

-Last update: 2006-06-14 23:03:43 CEST
+Last update: 2006-06-15 09:19:39 CEST

diff --git a/lib/resource-1.0/doc/gfdoc/Verb.html b/lib/resource-1.0/doc/gfdoc/Verb.html index 5d47cd62b..ce260bf76 100644 --- a/lib/resource-1.0/doc/gfdoc/Verb.html +++ b/lib/resource-1.0/doc/gfdoc/Verb.html @@ -6,7 +6,7 @@

The construction of verb phrases

-Last update: 2006-02-26 18:02:58 CET
+Last update: 2006-02-27 09:41:31 CET

diff --git a/lib/resource-1.0/doc/index.html b/lib/resource-1.0/doc/index.html index 28906c85c..ea4437101 100644 --- a/lib/resource-1.0/doc/index.html +++ b/lib/resource-1.0/doc/index.html @@ -2,47 +2,14 @@ -GF Resource Grammar Library v. 1.0 +GF Resource Grammar Library v. 1.1 -

GF Resource Grammar Library v. 1.0

+

GF Resource Grammar Library v. 1.1

Author: Aarne Ranta <aarne (at) cs.chalmers.se>
-Last update: Mon Jun 26 13:35:19 2006 +Last update: Fri Dec 22 14:22:49 2006
-

-
-

- - -

-
-

The GF Resource Grammar Library defines the basic grammar of ten languages: @@ -52,13 +19,28 @@ A still incomplete implementation for Arabic is also included.

-New: User manual of the resource library. +New in Version 1.1

+ +

-Notice. This document concerns the API v. 1.0 released -on June 22, 2006. + An example of use is logic. + The API of version 1.0 remains valid and can be used in combination with this.

- + +

Authors

Inger Andersson and Therese Soderberg (Spanish morphology), @@ -93,14 +75,12 @@ Saara Myllyntausta, Wanjiku Ng'ang'a, Jordi Saludes.

-

License

The GF Resource Grammar Library is open-source software licensed under GNU General Public License. See the file LICENSE for more details.

-

Scope

Coverage, for each language: @@ -131,7 +111,6 @@ Presentation:

  • example collections -

    Quick start

    Go to the main directory, compile the grammars, and run a test. @@ -166,7 +145,6 @@ For more examples, see the Overview slides. The make procedure does not make Arabic, but it can be compiled in a similar way as the other languages.

    -

    Encoding

    Finnish, German, Romance, and Scandinavian languages are in isolatin-1. @@ -177,7 +155,6 @@ Arabic and Russian are in UTF-8.

    English is in pure ASCII.

    -

    The language independent ground API

    This API is accessible by both present and alltenses. @@ -211,7 +188,6 @@ The documentation of the individual modules:

  • Lang: the main module comprising both Grammar and Lexicon -

    The language-dependent APIs

    • ParadigmsDan: Danish lexical paradigms @@ -269,7 +245,6 @@ This is the structure of each language-dependent top module.
    • Swedish: Swedish with all extras
    -

    Special-purpose APIs

    Present

    @@ -297,9 +272,7 @@ gesture. Some functions for constructing demonstratives are provided.

  • Symbol: symbols and numbers in text -

    Using the library

    -

    The compiled 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 -

    Linking applications to libraries

    Typically, open one of @@ -360,7 +332,6 @@ The mathematical API shares modules with present. It is therefore not a good idea to use it in combination with alltenses.

    -

    Using the libraries as top-level grammars

    If you have done make in lib/resource-1.0, you will have @@ -399,14 +370,12 @@ It is also possible to parse in Scandinavian languages (Danish, Norwegian, Swedish) and, with enough memory (gf +RTS -K512M), German.

    -

    Example applications

    These applications are meant to serve as starting points for new applications, showing how the libraries can be used in typical situations.

    -

    Bronzeage

    The examples/bronzeage @@ -414,7 +383,6 @@ grammar set implements a language fragment based on the Swadesh list of 200 words. It is useful for things like language training.

    -

    Dialogue

    The examples/dialogue @@ -423,7 +391,6 @@ multimodal dialogue system. Its purpose is to serve as a prototype for applications in the TALK project.

    -

    Animals

    The examples/animal @@ -431,7 +398,6 @@ grammar set implements some queries about animals. Its purpose is to serve as a prototype for example-based grammar writing.

    -

    Known bugs and missing components

    Danish @@ -494,11 +460,10 @@ Spanish

    Swedish

    -

    More reading

    GF Resource Grammar Library (pdf). -Printable user manual with API documentation. +Printable user manual with API documentation (version 1.0).

    Grammars as Software Libraries. Slides @@ -528,5 +493,5 @@ examples are from multimodal/old, which is a reduced-size API.

    - + diff --git a/lib/resource-1.0/doc/index.txt b/lib/resource-1.0/doc/index.txt index e957b1a75..e6351f700 100644 --- a/lib/resource-1.0/doc/index.txt +++ b/lib/resource-1.0/doc/index.txt @@ -1,4 +1,4 @@ -GF Resource Grammar Library v. 1.0 +GF Resource Grammar Library v. 1.1 Author: Aarne Ranta Last update: %%date(%c) @@ -16,10 +16,23 @@ Italian, Norwegian, Russian, Spanish, Swedish. A still incomplete implementation for Arabic is also 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== @@ -400,7 +413,7 @@ Swedish ==More reading== [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 with background and motivation for the resource grammar library.