forked from GitHub/gf-core
Maltese RG: big improvements with clitics in VPs
This commit is contained in:
@@ -10,8 +10,7 @@
|
||||
concrete SentenceMlt of Sentence = CatMlt ** open
|
||||
Prelude,
|
||||
ResMlt,
|
||||
ParamX,
|
||||
CommonX in {
|
||||
ParamX in {
|
||||
|
||||
flags optimize=all_subs ;
|
||||
|
||||
@@ -29,7 +28,7 @@ concrete SentenceMlt of Sentence = CatMlt ** open
|
||||
True => [] ; -- omit subject pronouns
|
||||
False => np.s ! NPNom
|
||||
} ;
|
||||
v : Str = joinVParts (vp.s ! VPIndicat tense (toVAgr np.a) ! ant ! pol) ;
|
||||
v : Str = joinVP vp (VPIndicat tense (toVAgr np.a)) ant pol ;
|
||||
o : Str = vp.s2 ! np.a ;
|
||||
} ;
|
||||
} ;
|
||||
@@ -40,7 +39,7 @@ concrete SentenceMlt of Sentence = CatMlt ** open
|
||||
|
||||
-- VP -> Imp
|
||||
ImpVP vp = {
|
||||
s = \\pol,n => joinVParts (vp.s ! VPImperat n ! Simul ! pol)
|
||||
s = \\pol,n => joinVP vp (VPImperat n) Simul pol
|
||||
} ;
|
||||
|
||||
-- NP -> VPSlash -> ClSlash
|
||||
@@ -57,7 +56,15 @@ concrete SentenceMlt of Sentence = CatMlt ** open
|
||||
|
||||
-- Cl -> Prep -> ClSlash
|
||||
-- (with whom) he walks
|
||||
SlashPrep cl prep = cl ** {c2 = prep} ;
|
||||
-- SlashPrep cl prep = cl ** {c2 = prep} ;
|
||||
SlashPrep cl prep = cl ** {c2 = {
|
||||
s = prep.s ;
|
||||
enclitic = prep.enclitic ;
|
||||
takesDet = prep.takesDet ;
|
||||
joinsVerb = prep.joinsVerb ;
|
||||
isPresent = True ;
|
||||
}
|
||||
} ;
|
||||
|
||||
-- NP -> VS -> SSlash -> ClSlash
|
||||
-- (whom) she says that he loves
|
||||
|
||||
Reference in New Issue
Block a user