added NamesPes.gf

This commit is contained in:
Krasimir Angelov
2026-09-27 13:50:30 +02:00
parent 9458f5c8e7
commit 1b8197ce5f
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
QuestionPes, QuestionPes,
RelativePes, RelativePes,
ConjunctionPes, ConjunctionPes,
NamesPes,
PhrasePes, PhrasePes,
TextPes, TextPes,
StructuralPes, StructuralPes,
+22
View File
@@ -0,0 +1,22 @@
concrete NamesPes of Names = CatPes ** open Prelude, ResPes in {
lin
GivenName gn = nameNP Animate Sg gn.s ;
MaleSurname sn = nameNP Animate Sg sn.s ;
FemaleSurname sn = nameNP Animate Sg sn.s ;
PlSurname sn = nameNP Animate Pl sn.s ;
FullName gn sn = nameNP Animate Sg (gn.s ++ sn.s) ;
UseLN ln = nameNP Inanimate Sg ln.s ;
PlainLN ln = nameNP Inanimate Sg ln.s ;
InLN ln = {s = "در" ++ ln.s} ;
AdjLN ap ln = {s = runtimeKasre ln.s ++ ap.s ! Bare} ;
oper
nameNP : Animacy -> Number -> Str -> NP = \animacy,number,s ->
emptyNP ** {
s = \\_ => s ;
a = agrP3 number ;
animacy = animacy
} ;
}