added GN & SN categories for constructing names

This commit is contained in:
Krasimir Angelov committed 2022-12-15 08:44:42 +01:00
1 parent d0e433cd46
commit 7085acacc9
55 files changed
+371 -43

No files matched your search

+1
View File
@@ -100,6 +100,7 @@ concrete CatGer of Cat =
N = ResGer.Noun ;
N2 = ResGer.Noun ** {c2 : Preposition} ;
N3 = ResGer.Noun ** {c2,c3 : Preposition} ;
GN, SN = {s : Case => Str; g : Gender} ;
PN = {s : Case => Str; g : Gender; n : Number} ;
-- tense with possibility to choose conjunctive forms
+7 -1
View File
@@ -140,5 +140,11 @@ lin
(Grammar.DetCN (Grammar.DetQuant Grammar.IndefArt (Grammar.NumCard card)) cn).s ! NPC c ;
n = Pl
} ;
lin GivenName, Surname = \n -> n ** { n = Sg } ;
lin FullName gn sn = {
s = \\c => gn.s ! Nom ++ sn.s ! c ;
g = gn.g ;
n = Sg
} ;
}