forked from GitHub/gf-rgl
the names API in more languages
This commit is contained in:
@@ -1,20 +1,44 @@
|
||||
concrete NamesEst of Names = CatEst ** open ResEst, Prelude in {
|
||||
concrete NamesEst of Names = CatEst ** open ResEst, ParadigmsEst, Prelude in {
|
||||
|
||||
lin GivenName, MaleSurname, FemaleSurname = \n -> emptyNP ** {
|
||||
lin GivenName n = emptyNP ** {
|
||||
s = \\c => n.s ! npform2case Sg c ;
|
||||
a = agrP3 Sg ;
|
||||
isPron = False
|
||||
} ;
|
||||
lin MaleSurname n = emptyNP ** {
|
||||
s = \\c => n.s ! Male ! npform2case Sg c ;
|
||||
a = agrP3 Sg ;
|
||||
isPron = False
|
||||
} ;
|
||||
lin FemaleSurname n = emptyNP ** {
|
||||
s = \\c => n.s ! Female ! npform2case Sg c ;
|
||||
a = agrP3 Sg ;
|
||||
isPron = False
|
||||
} ;
|
||||
lin PlSurname n = emptyNP ** {
|
||||
s = \\c => n.pl ! npform2case Sg c ;
|
||||
a = agrP3 Pl ;
|
||||
isPron = False
|
||||
} ;
|
||||
lin FullName gn sn = emptyNP ** {
|
||||
s = \\c => gn.s ! Nom ++ sn.s ! npform2case Sg c ;
|
||||
s = \\c => gn.s ! Nom ++ sn.s ! gn.g ! npform2case Sg c ;
|
||||
a = agrP3 Sg ;
|
||||
isPron = False
|
||||
} ;
|
||||
|
||||
lin UseLN pn = emptyNP ** {
|
||||
s = \\c => pn.s ! npform2case Sg c ;
|
||||
lin UseLN, PlainLN = \ln -> emptyNP ** {
|
||||
s = \\c => ln.s ! npform2case Sg c ;
|
||||
a = agrP3 Sg ;
|
||||
isPron = False
|
||||
} ;
|
||||
|
||||
lin InLN pn = {
|
||||
s = appCompl True Pos (casePrep inessive)
|
||||
(emptyNP ** {
|
||||
s = \\c => pn.s ! npform2case Sg c ;
|
||||
a = agrP3 Sg ;
|
||||
isPron = False
|
||||
})
|
||||
} ;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user