Skip to content

Commit

Permalink
fixed cases with ComplSlash (#459)
Browse files Browse the repository at this point in the history
* fixed Slash functions

* fixed ComplSlash

---------

Co-authored-by: Krasimir Angelov <[email protected]>
  • Loading branch information
EkaterinaVoloshina and krangelov authored Mar 25, 2024
1 parent e7dd530 commit b404f4e
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/russian/VerbRus.gf
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ lin
SlashV2a v2 = slashV v2 v2.c ;

-- : 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
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
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
SlashV2S v2s s = insertSlashObj2 (\\_,a=> embedInCommas ("что" ++ s.s ! Ind)) v2s.c (slashV v2s v2s.c) ;
Expand All @@ -75,16 +75,10 @@ lin

-- : VPSlash -> NP -> VP ; -- love it
ComplSlash vps np =
let arg : {obj,acc,dat : Str}
= 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 ;
{verb = vps.verb ;
adv = vps.adv ;
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
Expand Down

0 comments on commit b404f4e

Please sign in to comment.