1
0
forked from GitHub/gf-rgl

ExistCN with a/no variation in Extend

This commit is contained in:
Aarne Ranta
2017-11-08 08:42:54 +01:00
parent 4a016f9bed
commit 161e981a29
4 changed files with 36 additions and 2 deletions

View File

@@ -11,7 +11,8 @@ concrete ExtendEng of Extend =
Base_nr_RNP, Base_rn_RNP, Base_rr_RNP, ByVP, CompBareCN,
CompIQuant, CompQS, CompS, CompVP, ComplBareVS, ComplGenVV, ComplSlashPartLast, ComplVPSVV, CompoundAP,
CompoundN, ConjRNP, ConjVPS, ConsVPS, Cons_nr_RNP, Cons_rr_RNP, DetNPFem, EmbedPresPart, EmptyRelSlash,
ExistsNP, FocusAP, FocusAdV, FocusAdv, FocusObj, GenIP, GenModIP, GenModNP, GenNP, GenRP,
ExistsNP, ExistCN, ExistMassCN, ExistPluralCN,
FocusAP, FocusAdV, FocusAdv, FocusObj, GenIP, GenModIP, GenModNP, GenNP, GenRP,
GerundAdv, GerundCN, GerundNP, IAdvAdv, ICompAP, InOrderToVP, MkVPS, NominalizeVPSlashNP,
PassAgentVPSlash, PassVPSlash, PastPartAP, PastPartAgentAP, PositAdVAdj, PredVPS, PredVPSVV, PredetRNP, PrepCN,
PresPartAP, PurposeVP, ReflPoss, ReflPron, ReflRNP, SlashBareV2S, SlashV2V, StrandQuestSlash, StrandRelSlash,
@@ -220,6 +221,22 @@ concrete ExtendEng of Extend =
mkClause "there" (agrP3 (fromAgr np.a).n)
(insertObj (\\_ => np.s ! NPAcc) (predV (regV "exist"))) ;
ExistCN cn =
let
pos = ExistNP (DetCN (DetQuant IndefArt NumSg) cn) ;
neg = ExistNP (DetCN (DetQuant no_Quant NumSg) cn) ;
in posNegClause pos neg ;
ExistMassCN cn =
let
pos = ExistNP (MassNP cn) ;
neg = ExistNP (DetCN (DetQuant no_Quant NumSg) cn) ;
in posNegClause pos neg ;
ExistPluralCN cn =
let
pos = ExistNP (DetCN (DetQuant IndefArt NumPl) cn) ;
neg = ExistNP (DetCN (DetQuant no_Quant NumPl) cn) ;
in posNegClause pos neg ;
ComplBareVS v s = insertExtra s.s (predV v) ;
SlashBareV2S v s = insertExtrac s.s (predVc v) ;

View File

@@ -556,6 +556,14 @@ param
}
} ;
-- for pos/neg variation other than negation word, e.g. "there is a car"/"there is no car"
posNegClause : Clause -> Clause -> Clause = \pos,neg -> {
s = \\t,a,b,o => case b of {
CPos => pos.s ! t ! a ! b ! o ;
_ => neg.s ! t ! a ! CPos ! o
}
} ;
-- For $Numeral$.