From ba78322409e2086a83c03b7b32e84940a24030b0 Mon Sep 17 00:00:00 2001 From: aarne Date: Fri, 15 Aug 2008 12:41:04 +0000 Subject: examples of morphological synthesis/analysis as top-level grammars --- examples/morpho/EngDescr.gf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 examples/morpho/EngDescr.gf (limited to 'examples/morpho/EngDescr.gf') diff --git a/examples/morpho/EngDescr.gf b/examples/morpho/EngDescr.gf new file mode 100644 index 000000000..3e5efec77 --- /dev/null +++ b/examples/morpho/EngDescr.gf @@ -0,0 +1,23 @@ +--# -path=.:alltenses + +concrete EngDescr of Eng = IrregEng ** open (R = ResEng) in { + +lincat + Display, Word, Form = Str ; + +lin + DAll w = w ++ ":" ++ "all forms" ; + + DForm w f = w ++ ":" ++ f ; + +-- names of forms displayed + + VInf = "Infinitive" ; + VPres = "Present" ; + VPast = "Past" ; + VPPart = "Past Participle" ; + VPresPart = "Present Participle" ; + + WVerb v = v.s ! R.VInf ; -- the dictionary form shown in word description + +} -- cgit v1.2.3