Generic Scalar Implicature Helpers #
@cite{geurts-2010}
Generic scalar-implicature computation built on HornScale (from
Theories/Semantics/Alternatives/Lexical.lean) and contextual polarity
(from Theories/Semantics/Entailment/Polarity.lean).
Key operations #
scaleAlternatives: filter Horn-scale members by polarity, returning the context-appropriate alternatives (UE: stronger; DE: weaker; NM: none).quantImplicatureArises: does a particular alternative arise as a scalar implicature for a given quantifier in context?deriveScalarImplicatures/deriveFromWords/hasImplicature: produce the negation-of-stronger-alternative implicatures from a scalar term and scan a word list for them.
Scope #
Generic infrastructure only — no paper-specific worked examples. Worked
examples live in the Phenomena/ScalarImplicatures/Studies/*.lean
files that exercise this API.
Scale semantics (SemanticScale, HurfordSemantic, SinghSemantic) and
exhaustification predictions live in Alternatives/Lexical.lean and
Exhaustification/ScalePredictions.lean.
Get scalar alternatives for a scale member in context.
Delegates to HornScale members filtered by semantic entailment,
polarity-aware.
Equations
- Implicature.Scales.scaleAlternatives (Alternatives.ScaleMembership.quantifier pos) ctx = Implicature.Scales.filterAlts✝ Alternatives.Quantifiers.quantScale pos Alternatives.Quantifiers.entails ctx
- Implicature.Scales.scaleAlternatives (Alternatives.ScaleMembership.connective pos) ctx = Implicature.Scales.filterAlts✝ Alternatives.Connectives.connScale pos Alternatives.Connectives.entails ctx
- Implicature.Scales.scaleAlternatives (Alternatives.ScaleMembership.modal pos) ctx = Implicature.Scales.filterAlts✝ Alternatives.Modals.modalScale pos Alternatives.Modals.entails ctx
Instances For
Does an alternative arise as a scalar implicature of a quantifier term?
True iff alt is among the polarity-appropriate Horn-scale alternatives
of term.
Equations
- Implicature.Scales.QuantImplicatureArises term alt ctx = (toString alt ∈ Implicature.Scales.scaleAlternatives (Alternatives.ScaleMembership.quantifier term) ctx)
Instances For
Equations
- Implicature.Scales.instDecidableQuantImplicatureArises term alt ctx = Implicature.Scales.instDecidableQuantImplicatureArises._aux_1 term alt ctx
Complete scalar implicature derivation result.
- term : String
The original utterance's scalar term
- strongerAlts : List String
Stronger alternatives found
- implicatures : List String
Implicatures derived (negations of stronger alternatives)
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Derive all scalar implicatures for a term via HornScale.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Derive scalar implicatures from a list of words. Each word is looked up in the scale registry; scalar words produce implicatures based on polarity context.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Does any implicature in the results negate a given alternative?
Equations
- Implicature.Scales.HasImplicature results alt = ∃ r ∈ results, toString "not(" ++ toString alt ++ toString ")" ∈ r.implicatures
Instances For
Equations
- Implicature.Scales.instDecidableHasImplicature results alt = Implicature.Scales.instDecidableHasImplicature._aux_1 results alt