forked from GitHub/gf-rgl
fixed cases with ComplSlash (#459)
* fixed Slash functions * fixed ComplSlash --------- Co-authored-by: Krasimir Angelov <kr.angelov@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e7dd5304c7
commit
b404f4e5b3
@@ -56,13 +56,13 @@ lin
|
|||||||
SlashV2a v2 = slashV v2 v2.c ;
|
SlashV2a v2 = slashV v2 v2.c ;
|
||||||
|
|
||||||
-- : V3 -> NP -> VPSlash ; -- give it (to her)
|
-- : V3 -> NP -> VPSlash ; -- give it (to her)
|
||||||
Slash2V3 v3 np = insertSlashObj1 (\\p,_ => applyPolPrep p v3.c np) v3.c (slashV v3 v3.c) ;
|
Slash2V3 v3 np = insertSlashObj1 (\\p,_ => applyPolPrep p v3.c np) v3.c2 (slashV v3 v3.c2) ;
|
||||||
|
|
||||||
-- : V3 -> NP -> VPSlash ; -- give (it) to her
|
-- : V3 -> NP -> VPSlash ; -- give (it) to her
|
||||||
Slash3V3 v3 np = insertSlashObj2 (\\p,_ => applyPolPrep p v3.c2 np) v3.c2 (slashV v3 v3.c2) ;
|
Slash3V3 v3 np = insertSlashObj2 (\\p,_ => applyPolPrep p v3.c2 np) v3.c (slashV v3 v3.c) ;
|
||||||
|
|
||||||
-- : V2V -> VP -> VPSlash ; -- beg (her) to go
|
-- : V2V -> VP -> VPSlash ; -- beg (her) to go
|
||||||
SlashV2V v2v vp = insertSlashObj2 (\\_,a => verbInf vp.verb) v2v.c (slashV v2v v2v.c) ;
|
SlashV2V v2v vp = insertSlashObj2 (\\_,a => verbInf vp.verb) v2v.c (slashV v2v v2v.c) ;
|
||||||
|
|
||||||
-- : V2S -> S -> VPSlash ; -- answer (to him) that it is good
|
-- : V2S -> S -> VPSlash ; -- answer (to him) that it is good
|
||||||
SlashV2S v2s s = insertSlashObj2 (\\_,a=> embedInCommas ("что" ++ s.s ! Ind)) v2s.c (slashV v2s v2s.c) ;
|
SlashV2S v2s s = insertSlashObj2 (\\_,a=> embedInCommas ("что" ++ s.s ! Ind)) v2s.c (slashV v2s v2s.c) ;
|
||||||
@@ -75,16 +75,10 @@ lin
|
|||||||
|
|
||||||
-- : VPSlash -> NP -> VP ; -- love it
|
-- : VPSlash -> NP -> VP ; -- love it
|
||||||
ComplSlash vps np =
|
ComplSlash vps np =
|
||||||
let arg : {obj,acc,dat : Str}
|
{verb = vps.verb ;
|
||||||
= case vps.c.c of {
|
|
||||||
Dat => {obj=[]; acc=np.s ! Acc; dat=[] } ;
|
|
||||||
Acc => {obj=[]; acc=[]; dat=np.s ! Dat} ;
|
|
||||||
c => {obj=np.s ! c; acc=[]; dat=[] }
|
|
||||||
}
|
|
||||||
in {verb = vps.verb ;
|
|
||||||
adv = vps.adv ;
|
adv = vps.adv ;
|
||||||
dep = vps.dep ;
|
dep = vps.dep ;
|
||||||
compl = \\p,a => vps.compl1 ! p ! a ++ arg.acc ++ arg.dat ++ arg.obj ++ vps.compl2 ! p ! a ;
|
compl = \\p,a => vps.compl1 ! p ! a ++ applyPolPrep p vps.c np ++ vps.compl2 ! p ! a ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
-- : VV -> VPSlash -> VPSlash ; -- want to buy
|
-- : VV -> VPSlash -> VPSlash ; -- want to buy
|
||||||
|
|||||||
Reference in New Issue
Block a user