diff --git a/lib/resource/abstract/Cat.gf b/lib/resource/abstract/Cat.gf index cfc13e52e..885332019 100644 --- a/lib/resource/abstract/Cat.gf +++ b/lib/resource/abstract/Cat.gf @@ -86,8 +86,8 @@ abstract Cat = Common ** { -- Constructed in [Numeral Numeral.html]. - Numeral ; -- cardinal or ordinal, e.g. "five/fifth" - Digits ; -- cardinal or ordinal, e.g. "1,000/1,000th" + Numeral ; -- cardinal or ordinal in words e.g. "five/fifth" + Digits ; -- cardinal or ordinal in digits e.g. "1,000/1,000th" --2 Structural words diff --git a/lib/resource/api/Constructors.gf b/lib/resource/api/Constructors.gf index 20dd467e7..ff51032a1 100644 --- a/lib/resource/api/Constructors.gf +++ b/lib/resource/api/Constructors.gf @@ -77,7 +77,12 @@ incomplete resource Constructors = open Grammar in { mkText : S -> Text ; -- 4. John walked. mkText : Cl -> Text ; -- 5. John walks. mkText : QS -> Text ; -- 6. Did John walk? - mkText : Imp -> Text -- 7. Walk! + mkText : Imp -> Text ; -- 7. Walk! + +-- Finally, two texts can be combined into a text. + + mkText : Text -> Text -> Text ; -- 8. Where? When? Here. Now! + } ; -- A text can also be empty. @@ -1452,7 +1457,8 @@ incomplete resource Constructors = open Grammar in { mkText : Pol -> Imp -> Text = \p,i -> TExclMark (PhrUtt NoPConj (UttImpSg p i) NoVoc) TEmpty; mkText : Phr -> Text -> Text -- John walks. ... - = TFullStop + = TFullStop ; + mkText : Text -> Text -> Text = \t,u -> {s = t.s ++ u.s ; lock_Text = <>} ; } ; mkVP = overload { diff --git a/lib/resource/doc/synopsis.html b/lib/resource/doc/synopsis.html index 3d17d61a2..682a38929 100644 --- a/lib/resource/doc/synopsis.html +++ b/lib/resource/doc/synopsis.html @@ -35,6 +35,7 @@
Paradigms modules.
Paradigms modules.
Paradigms modules.
mkDet-> Det-> DetmkDet-> Num -> Det-> Num -> DetmkDet-> Det-> DetmkDetInt -> Det-> Det| Function | +Type | +Example | +|
|---|---|---|---|
n1000_Digits |
+Digits | +thousand | +|
n100_Digits |
+Digits | +hundred | +|
n10_Digits |
+Digits | +ten | +|
n1_Digits |
+Digits | +one | +|
n20_Digits |
+Digits | +twenty | +|
n2_Digits |
+Digits | +two | +|
n3_Digits |
+Digits | +three | +|
n4_Digits |
+Digits | +four | +|
n5_Digits |
+Digits | +five | +|
n6_Digits |
+Digits | +six | +|
n7_Digits |
+Digits | +seven | +|
n8_Digits |
+Digits | +eight | +|
n9_Digits |
+Digits | +nine | +|
mkNP |
-Numeral -> N -> NP |
+Numeral -> N -> NP |
twenty men |
mkNP |
-Numeral -> CN -> NP |
+Numeral -> CN -> NP |
twenty old men |
mkNP |
-Int -> N -> NP |
+Digits -> N -> NP |
45 men |
mkNP |
-Int -> CN -> NP |
+Digits -> CN -> NP |
45 old men |
mkNum |
-Numeral -> Num |
+Numeral -> Num |
twenty |
mkNum |
-Int -> Num |
+Digits -> Num |
51 |
| Function | @@ -1650,67 +1736,67 @@ Lexical category, constructors given in|||
|---|---|---|---|
n1000_Numeral |
-Numeral | +Numeral | thousand |
n100_Numeral |
-Numeral | +Numeral | hundred |
n10_Numeral |
-Numeral | +Numeral | ten |
n1_Numeral |
-Numeral | +Numeral | one |
n20_Numeral |
-Numeral | +Numeral | twenty |
n2_Numeral |
-Numeral | +Numeral | two |
n3_Numeral |
-Numeral | +Numeral | three |
n4_Numeral |
-Numeral | +Numeral | four |
n5_Numeral |
-Numeral | +Numeral | five |
n6_Numeral |
-Numeral | +Numeral | six |
n7_Numeral |
-Numeral | +Numeral | seven |
n8_Numeral |
-Numeral | +Numeral | eight |
n9_Numeral |
-Numeral | +Numeral | nine |
first_OrdmkOrd-> Ord-> OrdmkOrdInt -> Ord-> Ord| Function | @@ -2151,22 +2232,22 @@ Lexical category, constructors given in|||
|---|---|---|---|
defQuant |
-Quant | +Quant | the |
indefQuant |
-Quant | +Quant | a |
that_Quant |
-Quant | +Quant | - |
this_Quant |
-Quant | +Quant | - |
mkQuantPl-> QuantPl-> QuantPlmkQuantSg-> QuantSg-> QuantSgone_Quantthat_QuantSg-> TextmkText-> Text -> Text
@@ -3038,7 +3119,7 @@ source
@@ -3269,7 +3350,7 @@ source
@@ -3608,7 +3689,7 @@ source
@@ -3839,7 +3920,7 @@ source
@@ -4094,7 +4175,7 @@ source
@@ -4329,7 +4410,7 @@ source
@@ -4576,7 +4657,7 @@ source
@@ -4647,17 +4728,13 @@ source
@@ -5054,7 +5187,7 @@ source
@@ -5297,7 +5430,7 @@ source
All of the following assume
@@ -5334,7 +5467,7 @@ To view linearizations in all languages by parsing from English:
> p -cat=S -lang=LangEng "this grammar is too big" | tb
The standard way of building an application has the following modules.
http://www.cs.chalmers.se/~aarn
-
+
Paradigms for English
http://www.cs.chalmers.se/~aar
-
+
Paradigms for Finnish
http://www.cs.chalmers.se/~aar
-
+
Paradigms for French
http://www.cs.chalmers.se/~aarn
-
+
Paradigms for German
http://www.cs.chalmers.se/~aarn
-
+
Paradigms for Italian
http://www.cs.chalmers.se/~aar
-
+
Paradigms for Norwegian
http://www.cs.chalmers.se/~a
-
+
Paradigms for Russian
http://www.cs.chalmers.se/~aar
+
+mkN
+(nomSg, genSg, datSg, accSg, instSg, preposSg, prepos2Sg,
+
regNStr -> N
-
-
-mkN
-Str -> Gender -> Animacy -> N
-
-
-mkN
-(nomSg,_,_,_,_,_,_,_,_,_,_,prepPl : Str) -> Gender -> Animacy -> N
@@ -4695,7 +4772,7 @@ source nMashinaStr -> Nhttp://www.cs.chalmers.se/~aar
-nChislo
+Str -> NStr -> Str -> N
@@ -4730,10 +4807,70 @@ source nZhivotnoehttp://www.cs.chalmers.se/~aar
Str -> N
+
+
+nUchitel
+Str -> N
nUrovenStr -> N
+
+
+nSlovar
+Str -> N
+
+
+nMusej
+Str -> N
+
+
+nDvorec
+Str -> N
+
+
+nTovarish
+Str -> N
+
+
+nMesjac
+Str -> N
+
+
+nGrazhdanin
+Str -> N
+
+
+nRebenok
+Str -> N
+
+
+nPut
+Str -> N
+
+
+nGospodin
+Str -> N
+
+
+nDen
+Str -> N
+
+
+nDrug
+Str -> N
+
+
+nSyn
+Str -> N
+
+
+nLes
+Str -> N
+
+
+nMost
+Str -> N
@@ -4747,23 +4884,19 @@ source mkFunN
-> Prep -> N2http://www.cs.chalmers.se/~aar
-
-mkPN
-Str -> PN
-
mkPNStr -> Gender -> Animacy -> PN
-
+mkPNnounPNN
-> PN
-
-mkA
+Str -> A
+regAStr -> Str -> A
-
-mkA
+Str -> Str -> A
+adjInvarStr -> A
@@ -4795,31 +4928,31 @@ source AStaruyjhttp://www.cs.chalmers.se/~aar
-mkVAspect
+-> Conjugation -> (stemPrsSgP1,endPrsSgP1,pastSgP1,imp,inf : Str) -> VAspect
-> (presentSgP1,presentSgP2,presentSgP3,
-
-
-mkVAspect
--> (presSgP1,presSgP2,presSgP3,presPlP1,presPlP2,presPlP3,pastSgMasc,imp,inf: Str) -> V
-
-mkV2V
+-> V2
+pastSgP1,imperative,infinitiveStr) -> V
mkV2V
-> Str -> Case -> V2
-
-
-tvDirDirV
--> V3
+mkV3V
-> Str -> Str -> Case -> Case -> V3
+
+
+dirV2V
+-> V2
+
-
+
+tvDirDirV
+-> V3Paradigms for Spanish
http://www.cs.chalmers.se/~aar
-
+
Paradigms for Swedish
http://www.cs.chalmers.se/~aar
-
+
Browsing the libraries with GF commands
An Example of Usage