forked from GitHub/gf-rgl
Agr = AgSgP1 | AgSgP2 | AgSgP3 Gender | AgSgP3Gen | AgPl Person | AgPlPol ;
with AgSgP3Gen resp. AgPlPol used for reflexive,possessive forms of "man", "Sie".
Compiles AllGer from src in 162sec with 15M VerbGer.gfo vs. 380sec with 17M VerbGer.gfo
43 lines
1004 B
Plaintext
43 lines
1004 B
Plaintext
concrete RelativeGer of Relative = CatGer ** open ResGer, Prelude in {
|
|
|
|
flags optimize=all_subs ;
|
|
|
|
lin
|
|
|
|
RelCl cl = {
|
|
s = \\m,t,a,b,_ => "derart" ++ conjThat ++ cl.s ! m ! t ! a ! b ! Sub ;
|
|
c = Nom
|
|
} ;
|
|
|
|
RelVP rp vp = {
|
|
s = \\m,t,ant,b,rgn =>
|
|
let
|
|
gn = case rgn of {
|
|
RGenNum gf => gf ;
|
|
RSentence => GSg Neutr
|
|
} ;
|
|
agr = case rp.a of {
|
|
RNoAg => agrP3 (numGenNum gn) ;
|
|
RAg n p => case n of {Sg => AgSgP3 Neutr ; Pl => AgPl p}
|
|
} ;
|
|
cl = mkClause (rp.s ! rgn ! Nom) agr vp
|
|
in
|
|
cl.s ! m ! t ! ant ! b ! Sub ;
|
|
c = Nom
|
|
} ;
|
|
|
|
RelSlash rp slash = {
|
|
s = \\m,t,a,p,gn =>
|
|
appPrep slash.c2 (rp.s ! gn) ++ slash.s ! m ! t ! a ! p ! Sub ;
|
|
c = slash.c2.c
|
|
} ;
|
|
|
|
FunRP p np rp = {
|
|
s = \\gn,c => np.s ! False ! c ++ appPrep p (rp.s ! gn) ;
|
|
a = RAg (numberAgr np.a) (personAgr np.a)
|
|
} ;
|
|
|
|
IdRP = {s = relPron ; a = RNoAg} ;
|
|
|
|
}
|