mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-21 18:59:32 -06:00
Romance negation: word order dependence
This commit is contained in:
@@ -121,6 +121,10 @@ oper
|
||||
|
||||
subjPron : Agr -> Str ;
|
||||
|
||||
-- Whether subject negative in direct position causes negation to the sentence: "personne ne dort" vs. "nessuno dorme".
|
||||
|
||||
polNegDirSubj : RPolarity ;
|
||||
|
||||
--2 Workarounds, to be eliminated
|
||||
|
||||
-- This should be provided by $pronArg$ above, but causes trouble in compilation.
|
||||
|
||||
@@ -209,12 +209,13 @@ oper
|
||||
\isNeg, subj, hasClit, isPol, agr, vp -> {
|
||||
s = \\d,te,a,b,m =>
|
||||
let
|
||||
isAnyNeg = orB isNeg vp.isNeg ;
|
||||
pol = case <isAnyNeg,b> of {
|
||||
<True,RPos> => RNeg True ;
|
||||
|
||||
pol : RPolarity = case <isNeg, vp.isNeg, b, d> of {
|
||||
<_,True,RPos,_> => RNeg True ;
|
||||
<True,_,RPos,DInv> => RNeg True ;
|
||||
<True,_,RPos,_> => polNegDirSubj ;
|
||||
_ => b
|
||||
} ;
|
||||
|
||||
neg = vp.neg ! pol ;
|
||||
|
||||
gen = agr.g ;
|
||||
|
||||
Reference in New Issue
Block a user