started a separate module for names

This commit is contained in:
Krasimir Angelov
2023-07-24 17:24:13 +02:00
parent 8b1309c99d
commit 645de9955a
100 changed files with 611 additions and 227 deletions

View File

@@ -119,7 +119,7 @@ concrete CatPol of Cat = CommonX - [CAdv] ** open ResPol, Prelude, (R = ParamX)
N3 = Noun ** { c1, c2 : Complement } ;
GN, SN, PN = NounPhrase;
GN, SN, LN, PN = NounPhrase;
CAdv = {s,p,sn,pn : Str} ;

View File

@@ -40,13 +40,4 @@ oper
-- KA: PassVPSlash is derived from PassV2. Objects might be ignored
lin PassVPSlash vps = setImienne vps True;
lin GivenName, MaleSurname, FemaleSurname = \n -> n ;
lin FullName gn sn = {
nom = gn.nom ++ sn.nom ;
voc = gn.nom ++ sn.voc ;
dep = \\c => gn.nom ++ sn.dep ! c ;
gn = gn.gn ;
p = gn.p
} ;
}

View File

@@ -15,6 +15,7 @@ concrete GrammarPol of Grammar =
PhrasePol,
TenseX - [CAdv],
TextX - [CAdv],
NamesPol,
StructuralPol,
IdiomPol
** { flags startcat = Phr ; unlexer = text ; lexer = text ;} ;

12
src/polish/NamesPol.gf Normal file
View File

@@ -0,0 +1,12 @@
concrete NamesPol of Names = CatPol ** {
lin GivenName, MaleSurname, FemaleSurname = \n -> n ;
lin FullName gn sn = {
nom = gn.nom ++ sn.nom ;
voc = gn.nom ++ sn.voc ;
dep = \\c => gn.nom ++ sn.dep ! c ;
gn = gn.gn ;
p = gn.p
} ;
}