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)Pragmatics.Implicature.Evaluativity.Polarity— adjective markednessSemantics.Presupposition.OntologicalPreconditions.Polarity— event assertion (.affirmed/.negated)
Sentence polarity: whether a sentence is affirmative or negated.
Instances For
Equations
- Core.instReprPolarity = { reprPrec := Core.instReprPolarity.repr }
Equations
- Core.instReprPolarity.repr Core.Polarity.positive prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Core.Polarity.positive")).group prec✝
- Core.instReprPolarity.repr Core.Polarity.negative prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Core.Polarity.negative")).group prec✝
Instances For
Equations
- Core.instBEqPolarity.beq x✝ y✝ = (x✝.ctorIdx == y✝.ctorIdx)