mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-06-21 01:06:21 -06:00
added GN & SN categories for constructing names
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
concrete CatRus of Cat = CommonX ** open ResRus, Prelude in {
|
||||
flags coding=utf8 ; optimize=all ;
|
||||
lincat
|
||||
N, PN = ResRus.NounForms ;
|
||||
N, GN, SN, PN = ResRus.NounForms ;
|
||||
N2 = ResRus.Noun2Forms ;
|
||||
N3 = ResRus.Noun3Forms ;
|
||||
|
||||
|
||||
@@ -216,4 +216,27 @@ lin
|
||||
|
||||
oper
|
||||
rus_quoted : Str -> Str = \s -> "«" ++ s ++ "»" ; ---- TODO bind ; move to Prelude?
|
||||
|
||||
lin GivenName, Surname = \n -> n ;
|
||||
lin FullName gn sn = {
|
||||
snom = gn.snom ++ sn.snom ;
|
||||
sgen = gn.snom ++ sn.sgen ;
|
||||
sdat = gn.snom ++ sn.sdat ;
|
||||
sacc = gn.snom ++ sn.sacc ;
|
||||
sins = gn.snom ++ sn.sins ;
|
||||
sprep = gn.snom ++ sn.sprep ;
|
||||
sloc = gn.snom ++ sn.sloc ;
|
||||
sptv = gn.snom ++ sn.sptv ;
|
||||
svoc = gn.snom ++ sn.svoc ;
|
||||
pnom = gn.snom ++ sn.pnom ;
|
||||
pgen = gn.snom ++ sn.pgen ;
|
||||
pdat = gn.snom ++ sn.pdat ;
|
||||
pacc = gn.snom ++ sn.pacc ;
|
||||
pins = gn.snom ++ sn.pins ;
|
||||
pprep = gn.snom ++ sn.pprep ;
|
||||
g = gn.g ;
|
||||
mayben = gn.mayben ;
|
||||
anim = gn.anim
|
||||
} ;
|
||||
|
||||
} ;
|
||||
|
||||
Reference in New Issue
Block a user