mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
examples of morphological synthesis/analysis as top-level grammars
This commit is contained in:
23
examples/morpho/EngDescr.gf
Normal file
23
examples/morpho/EngDescr.gf
Normal 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
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user