1
0
forked from GitHub/gf-core

examples of morphological synthesis/analysis as top-level grammars

This commit is contained in:
aarne
2008-08-15 12:41:04 +00:00
parent 0475ef3414
commit ba78322409
7 changed files with 259 additions and 0 deletions

38
examples/morpho/Fre.gf Normal file
View File

@@ -0,0 +1,38 @@
-- French irregular verbs, built using Eng as template.
abstract Fre = IrregFreAbs ** {
flags startcat = Display ;
cat
Display ; Word ; Form ;
-- French verb forms have an internal structure.
TMood ; Number ; Person ; NumPersI ; Gender ; Mood ;
fun
DAll : Word -> Display ;
DForm : Word -> Form -> Display ;
VInfin : Form ;
VFin : TMood -> Number -> Person -> Form ;
VImper : NumPersI -> Form ;
VPart : Gender -> Number -> Form ;
VGer : Form ;
VPres : Mood -> TMood ;
VImperf : Mood -> TMood ;
VPasse, VFut, VCondit : TMood ;
SgP2, PlP1, PlP2 : NumPersI ;
Sg, Pl : Number ;
P1, P2, P3 : Person ;
Masc, Fem : Gender ;
Indic, Conjunct : Mood ;
WVerb : V -> Word ;
WVerb2 : V2 -> Word ;
}