diff options
| author | aarne <aarne@cs.chalmers.se> | 2008-08-15 12:41:04 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2008-08-15 12:41:04 +0000 |
| commit | ba78322409e2086a83c03b7b32e84940a24030b0 (patch) | |
| tree | 87b13411a8d6db544461eef201f4e02207ac0ff1 /examples/morpho/FreDescr.gf | |
| parent | 0475ef3414cff410b826c9f06e6c7043625972fa (diff) | |
examples of morphological synthesis/analysis as top-level grammars
Diffstat (limited to 'examples/morpho/FreDescr.gf')
| -rw-r--r-- | examples/morpho/FreDescr.gf | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/examples/morpho/FreDescr.gf b/examples/morpho/FreDescr.gf new file mode 100644 index 000000000..0007986b2 --- /dev/null +++ b/examples/morpho/FreDescr.gf @@ -0,0 +1,44 @@ +--# -path=.:alltenses + +concrete FreDescr of Fre = IrregFre - [S] ** open (R = CommonRomance), Prelude in { + +flags coding=utf8 ; + +lincat + Display, Word, Form = Str ; + TMood, Number, Person, NumPersI, Gender, Mood = Str ; + +lin + DAll w = w ++ ":" ++ "la conjugaison" ; + + DForm w f = w ++ ":" ++ f ; + + VInfin = "infinitif" ; + VFin m n p = m ++ n ++ p ; + VImper np = "imparfait" ++ np ; + VPart g n = "participe passé" ++ g ++ n ; + VGer = "participe présent" ; + + VPres m = m ++ "présent" ; + VImperf m = m ++ "imparfait" ; + VPasse = "passé simple" ; + VFut = "futur" ; + VCondit = "conditionnel" ; + + SgP2 = "singulier 2e" ; + PlP1 = "pluriel 1ère" ; + PlP2 = "pluriel 2e" ; + Sg = "singulier" ; + Pl = "pluriel" ; + P1 = "1ère" ; + P2 = "2e" ; + P3 = "3e" ; + Masc = "masculin" ; + Fem = "féminin" ; + Indic = "indicatif" ; + Conjunct = "subjonctif" ; + + WVerb v = v.s ! R.VInfin True ; + WVerb2 v = v.s ! R.VInfin True ; + +} |
