Skip to content

Commit

Permalink
fix AdvVPSlash and PastPartAP
Browse files Browse the repository at this point in the history
  • Loading branch information
krangelov committed Jun 14, 2024
1 parent 1fbec65 commit d182354
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/russian/ExtendRus.gf
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ lin
++ vps.compl1 ! Pos ! a
++ vps.compl2 ! Pos ! a
++ vps.c.s ; --
isPost = False ;
isPost = case vps.isSimple of {
True => False ;
False => True
} ;
preferShort=PreferFull
} ;

Expand Down
5 changes: 5 additions & 0 deletions src/russian/ResRus.gf
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ oper
compl1 : ComplTable ;
compl2 : ComplTable ;
c : ComplementCase ;
isSimple : Bool ; -- regulates the place of participle used as adjective
} ; ----

slashV : VerbForms -> ComplementCase -> VPSlash = \verb,c -> {
Expand All @@ -622,6 +623,7 @@ oper
compl2 = \\_,a => [] ;
dep = [] ;
c = c ;
isSimple = True
} ;

insertSlashObjA : Adjective -> ComplementCase -> VPSlash -> VPSlash = \ap,c,slash -> {
Expand All @@ -643,6 +645,7 @@ oper
} ;
c = {s="" ; c=Acc ; neggen=True ; hasPrep=False};
dep = slash.dep ;
isSimple = False
} ;

insertSlashObj1 : (Polarity => Agr => Str) -> ComplementCase -> VPSlash -> VPSlash = \obj,c,slash -> {
Expand All @@ -652,6 +655,7 @@ oper
compl2 = slash.compl2 ;
c = slash.c ;
dep = slash.dep ;
isSimple = False
} ;

insertSlashObj2 : (Polarity => Agr => Str) -> ComplementCase -> VPSlash -> VPSlash = \obj,c,slash -> {
Expand All @@ -661,6 +665,7 @@ oper
compl2 =\\p,a => slash.compl2 ! p ! a ++ obj ! p ! a;
c = slash.c ;
dep = slash.dep ;
isSimple = False
} ;


Expand Down
4 changes: 2 additions & 2 deletions src/russian/VerbRus.gf
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ lin
AdVVP adv vp = vp ** {adv=\\a => adv.s ++ vp.adv ! a} ;

-- : VPSlash -> Adv -> VPSlash ; -- use (it) here
AdvVPSlash vps adv = vps ** {compl=\\p,a => vps.compl ! p ! a ++ adv.s} ;
AdvVPSlash vps adv = vps ** {compl1=\\p,a => vps.compl1 ! p ! a ++ adv.s; isSimple=False} ;

-- : AdV -> VPSlash -> VPSlash ; -- always use (it)
AdVVPSlash adv vps = vps ** {adv=\\a=>adv.s ++ vps.adv ! a} ;

-- : VP -> Prep -> VPSlash ; -- live in (it)
VPSlashPrep vp prep = vp ** {c = prep ; compl1 = vp.compl ; compl2 = \\_,_ => []; dep=[]} ;
VPSlashPrep vp prep = vp ** {c = prep ; compl1 = vp.compl ; compl2 = \\_,_ => []; dep=[]; isSimple=False} ;

-- : AP -> Comp ; -- (be) small
CompAP ap = case ap.preferShort of {
Expand Down

0 comments on commit d182354

Please sign in to comment.