forked from GitHub/gf-rgl
(Pes) Fixes in VV constructions
* Add the conjunction که 'that' in VV * Fix word order in imperatives formed of VV+complement
This commit is contained in:
@@ -34,6 +34,11 @@ resource ResPes = MorphoPes ** open Prelude,Predef in {
|
||||
Neg => CNeg b
|
||||
} ;
|
||||
|
||||
cpol2pol : CPolarity -> Polarity = \cp -> case cp of {
|
||||
CPos => Pos ;
|
||||
_ => Neg
|
||||
} ;
|
||||
|
||||
-----------------------
|
||||
--- Verb Phrase
|
||||
-----------------------
|
||||
@@ -144,7 +149,7 @@ oper
|
||||
|
||||
insertVV : (Agr => Str) -> VPH -> VPH = \obj1,vp -> vp ** {
|
||||
wish = True ;
|
||||
vComp = \\a => vp.comp ! a ++ obj1 ! a ;
|
||||
vComp = \\a => vp.comp ! a ++ conjThat ++ obj1 ! a ;
|
||||
} ;
|
||||
|
||||
insertObj2 : (Str) -> VPH -> VPH = \obj1,vp -> vp ** {
|
||||
|
||||
@@ -10,12 +10,12 @@ concrete SentencePes of Sentence = CatPes ** open Prelude, ResPes,Predef in {
|
||||
PredSCVP sc vp = mkSClause ("این" ++ sc.s) (defaultAgr) vp ;
|
||||
|
||||
ImpVP vp = {
|
||||
s = \\pol,n =>
|
||||
s = \\cpol,n =>
|
||||
let agr = Ag (numImp n) P2 ;
|
||||
in case pol of {
|
||||
CPos => vp.ad ++ vp.comp ! agr ++ vp.obj.s ++ vp.vComp ! agr ++ vp.s ! VPImp Pos (numImp n) ++ vp.embComp;
|
||||
CNeg _ => vp.ad ++ vp.comp ! agr ++ vp.obj.s ++ vp.vComp ! agr ++ vp.s ! VPImp Neg (numImp n) ++ vp.embComp
|
||||
} ;
|
||||
pol = cpol2pol cpol ;
|
||||
in case vp.wish of {
|
||||
True => vp.s ! VPImp pol (numImp n) ++ vp.ad ++ vp.comp ! agr ++ vp.obj.s ++ vp.vComp ! agr ++ vp.embComp;
|
||||
False => vp.ad ++ vp.comp ! agr ++ vp.obj.s ++ vp.vComp ! agr ++ vp.s ! VPImp pol (numImp n) ++ vp.embComp }
|
||||
} ;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user