(Extend) Add RelVPS : RP -> VPS -> RS

Implemented in Swe and Eng, empty variants in ExtendFunctor.
This commit is contained in:
Inari Listenmaa
2021-05-04 12:17:40 +08:00
parent 310e143bea
commit cc75637704
4 changed files with 19 additions and 2 deletions
+11 -1
View File
@@ -7,7 +7,7 @@ concrete ExtendSwe of Extend = CatSwe **
StrandRelSlash, EmptyRelSlash, StrandQuestSlash,
PassVPSlash, PassAgentVPSlash, UttVPShort, ByVP, InOrderToVP,
MkVPI, BaseVPI, ConsVPI, ConjVPI, ComplVPIVV,
MkVPS, BaseVPS, ConsVPS, ConjVPS, PredVPS,
MkVPS, BaseVPS, ConsVPS, ConjVPS, PredVPS, RelVPS,
MkVPS2, ConjVPS2, ComplVPS2, ReflVPS2, MkVPI2, ConjVPI2, ComplVPI2,
ICompAP,ProDrop,EmbedSSlash,
AdAdV, PositAdVAdj, GerundCN, GerundNP, GerundAdv, PresPartAP, PastPartAP, PastPartAgentAP,
@@ -132,6 +132,16 @@ in {
}
} ;
RelVPS rp vps = {
s = \\ag,rcase =>
let agr = case rp.a of { -- RP's agr may override in the regular RelativeScand, is this true with VPS too?
RNoAg => ag ;
RAg g n p => {g = g ; n = n ; p = p}
} ;
in rp.s ! ag.g ! ag.n ! rcase ++ vps.s ! Sub ! agr ;
c = NPNom
} ;
MkVPS t p vp = {
s = \\o,a =>
let