examples of morphological synthesis/analysis as top-level grammars

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

View File

@@ -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
}