Sentence Polarity #
Binary sentence polarity: positive (affirmative) vs negative.
Used across phenomena involving polarity-sensitive behavior: multiplicity inferences, homogeneity gaps, scalar implicatures, etc.
Note: This is distinct from other polarity-like distinctions in the library:
Core.Lexical.UD.Polarity— morphological feature (.Pos/.Neg)Core.NaturalLogic.ContextPolarity— monotonicity direction (.upward/.downward)Phenomena.Gradability.Studies.Rett2015Implicature.Polarity— adjective markednessSemantics.Presupposition.OntologicalPreconditions.Polarity— event assertion (.affirmed/.negated)
Sentence polarity: whether a sentence is affirmative or negated.
Instances For
Equations
- Features.instReprPolarity.repr Features.Polarity.positive prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Features.Polarity.positive")).group prec✝
- Features.instReprPolarity.repr Features.Polarity.negative prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Features.Polarity.negative")).group prec✝
Instances For
@[implicit_reducible]
Equations
- Features.instReprPolarity = { reprPrec := Features.instReprPolarity.repr }
@[implicit_reducible]
Equations
- Features.instDecidableEqPolarity x✝ y✝ = if h : x✝.ctorIdx = y✝.ctorIdx then isTrue ⋯ else isFalse ⋯
@[implicit_reducible]
Equations
- Features.instInhabitedPolarity = { default := Features.instInhabitedPolarity.default }