forked from GitHub/gf-rgl
Merge pull request #457 from EkaterinaVoloshina/master
added compoundPN and compoundLN
This commit is contained in:
@@ -175,19 +175,30 @@ lin
|
||||
} ;
|
||||
|
||||
-- : VPSlash -> VP ; -- be forced to sleep
|
||||
PassVPSlash vps = vps ** {
|
||||
PassVPSlash vps = case vps.verb.asp of {
|
||||
Perfective => vps ** {
|
||||
verb=copulaEll ;
|
||||
compl=\\p,a => vps.compl ! p ! a ++ shortPastPassPart vps.verb (agrGenNum a) ++ vps.c.s
|
||||
compl=\\p,a => shortPastPassPart vps.verb (agrGenNum a) ++ vps.compl ! p ! a ++ vps.c.s
|
||||
} ;
|
||||
Imperfective => vps ** {
|
||||
verb=(passivate vps.verb);
|
||||
}
|
||||
};
|
||||
|
||||
-- PresPartAP : VP -> AP ; -- (the man) looking at Mary
|
||||
-- use PlP2 + "ый"
|
||||
|
||||
-- : VPSlash -> VP
|
||||
PassAgentVPSlash vps np =
|
||||
vps ** {
|
||||
PassAgentVPSlash vps np = case vps.verb.asp of {
|
||||
Perfective => vps ** {
|
||||
verb=copulaEll ;
|
||||
compl=\\p,a => vps.compl ! p ! a ++ shortPastPassPart vps.verb (agrGenNum a) ++ vps.c.s ++ np.s ! Ins
|
||||
compl=\\p,a => shortPastPassPart vps.verb (agrGenNum a) ++ vps.c.s ++ vps.compl ! p ! a ++ np.s ! Ins
|
||||
} ;
|
||||
Imperfective => vps ** {
|
||||
verb=(passivate vps.verb);
|
||||
compl=\\p,a => vps.compl ! p ! a ++ np.s ! Ins
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
-- : Pron -> Pron ; -- unstressed subject pronoun becomes empty: "am tired"
|
||||
|
||||
@@ -371,6 +371,17 @@ oper
|
||||
} ;
|
||||
} ;
|
||||
|
||||
|
||||
compoundPN : (PN -> Str -> PN)
|
||||
= \pn, adv -> pn ** {
|
||||
s = \\c => pn.s ! c ++ adv
|
||||
} ;
|
||||
|
||||
compoundLN : (LN -> Str -> LN)
|
||||
= \ln, adv -> ln ** {
|
||||
s = \\c => ln.s ! c ++ adv
|
||||
} ;
|
||||
|
||||
mkN2 = overload {
|
||||
mkN2 : N -> N2
|
||||
= \n -> lin N2 (mkFun n nullPrep) ;
|
||||
|
||||
Reference in New Issue
Block a user