summaryrefslogtreecommitdiff
path: root/examples/morpho/Fre.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-08-15 12:41:04 +0000
committeraarne <aarne@cs.chalmers.se>2008-08-15 12:41:04 +0000
commitba78322409e2086a83c03b7b32e84940a24030b0 (patch)
tree87b13411a8d6db544461eef201f4e02207ac0ff1 /examples/morpho/Fre.gf
parent0475ef3414cff410b826c9f06e6c7043625972fa (diff)
examples of morphological synthesis/analysis as top-level grammars
Diffstat (limited to 'examples/morpho/Fre.gf')
-rw-r--r--examples/morpho/Fre.gf38
1 files changed, 38 insertions, 0 deletions
diff --git a/examples/morpho/Fre.gf b/examples/morpho/Fre.gf
new file mode 100644
index 000000000..54ebaf4d0
--- /dev/null
+++ b/examples/morpho/Fre.gf
@@ -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 ;
+
+}