Is this a nominal category?
Equations
- HPSG.Coreference.isNominalCat c = (c == UD.UPOS.PROPN || c == UD.UPOS.NOUN || c == UD.UPOS.PRON)
Instances For
Derive MODE feature from a word.
Per @cite{sag-wasow-bender-2003} Ch. 7:
- Reflexives and reciprocals → [MODE ana]
- Personal pronouns and R-expressions → [MODE ref]
Equations
- One or more equations did not get rendered due to their size.
Instances For
Is this word an anaphor ([MODE ana])?
Equations
- HPSG.Coreference.isAnaphor w = (HPSG.Coreference.classifyMode w == some HPSG.Mode.ana)
Instances For
Is this word a reflexive specifically?
Equations
- HPSG.Coreference.isReflexive w = decide (w.form ∈ ["himself", "herself", "themselves", "myself", "yourself", "ourselves"])
Instances For
Is this word a reciprocal?
Equations
- HPSG.Coreference.isReciprocal w = decide (w.form ∈ ["each other", "one another"])
Instances For
Types of nominal expressions for coreference.
Implementation convenience for dispatching agreement checks.
Both pronoun and rExpression map to [MODE ref] in SWB2003.
- reflexive : NominalType
- reciprocal : NominalType
- pronoun : NominalType
- rExpression : NominalType
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- HPSG.Coreference.instDecidableEqNominalType x✝ y✝ = if h : x✝.ctorIdx = y✝.ctorIdx then isTrue ⋯ else isFalse ⋯
Classify a word as a nominal type.
This maps to MODE as follows:
- reflexive, reciprocal → [MODE ana]
- pronoun, rExpression → [MODE ref]
The pronoun/rExpression distinction is useful for implementation (e.g., agreement checks) but both are [MODE ref] in SWB2003.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Simple clause structure with ARG-ST for binding.
ARG-ST is implicitly [subject, object] — subject at position 0 outranks object at position 1.
- subject : Word
- verb : Word
- object : Option Word
- semanticPl : Bool
Whether the subject denotes a plurality. Defaults to matching syntactic number. Override for languages where syntactic and semantic number diverge (@cite{rakosi-2019}).
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parse a simple transitive sentence into a clause.
Equations
- One or more equations did not get rendered due to their size.
- HPSG.Coreference.parseSimpleClause [subj, v] = if (HPSG.Coreference.isNominalCat subj.cat && v.cat == UD.UPOS.VERB) = true then some { subject := subj, verb := v, object := none } else none
- HPSG.Coreference.parseSimpleClause ws = none
Instances For
Build the ARG-ST for a simple clause from its arguments.
ARG-ST = [subject, object] — the verb's argument structure list, ordered by obliqueness (@cite{sag-wasow-bender-2003} Ch. 7).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Does the subject outrank the object on ARG-ST?
Derived from ArgSt.outranks: subject at position 0 outranks
object at position 1 iff 0 < 1 ∧ 1 < args.length.
Equations
- HPSG.Coreference.subjectOutranksObject clause = clause.toArgSt.outranks 0 1
Instances For
Subject and object are on the same ARG-ST list: both are valid indices in the ARG-ST built from the verb's argument structure.
Equations
- HPSG.Coreference.sameArgSt clause = match clause.object with | none => true | some val => decide (1 < clause.toArgSt.args.length)
Instances For
Anaphoric Agreement Principle (AAP): coindexed elements must agree.
Per @cite{sag-wasow-bender-2003} Ch. 7: "Coindexed NPs agree."
Equations
- One or more equations did not get rendered due to their size.
Instances For
Principle A (SWB2003): An anaphor ([MODE ana]) must be outranked by a coindexed element on the same ARG-ST list.
For reflexives, the coindexed antecedent must also satisfy the AAP.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Principle A for reciprocals: a reciprocal ([MODE ana]) must be outranked by a semantically plural coindexed element. The plurality requirement is semantic (LF), not morphosyntactic — reciprocals are licensed by quantified NPs, singular coordinate DPs, and collective nouns that are syntactically singular (@cite{rakosi-2019}).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Principle B (SWB2003): A [MODE ref] element must NOT be outranked by a coindexed element on the same ARG-ST list.
This applies to both pronouns and R-expressions (both are [MODE ref]). In a simple clause, the subject outranks the object, so any [MODE ref] object that is coindexed with the subject violates Principle B.
Note: grammaticalForCoreference only tests this for pronouns, since
R-expression objects are typically not coindexed with the subject.
computeCoreferenceStatus applies Principle B to all [MODE ref] elements
for explicit coindexation queries.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Is a sentence free of binding violations under HPSG binding theory?
Checks Principle A (anaphors must be outranked) and Principle B (pronouns must not be locally bound).
For R-expression objects, no binding violation arises because
coindexation with the subject is not assumed. Use
computeCoreferenceStatus for explicit coindexation queries.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Check if reflexive is licensed in a sentence
Equations
- HPSG.Coreference.reflexiveLicensedInSentence ws = match HPSG.Coreference.parseSimpleClause ws with | none => false | some clause => HPSG.Coreference.reflexiveLicensed clause
Instances For
Check if local coreference is blocked by Principle B ([MODE ref]).
Applies to both pronouns and R-expressions.
Equations
- HPSG.Coreference.localCoreferenceBlocked ws = match HPSG.Coreference.parseSimpleClause ws with | none => false | some clause => !HPSG.Coreference.refLocallyFree clause
Instances For
Check if HPSG correctly predicts a minimal pair for coreference
Grammatical sentence should pass, ungrammatical should fail.
Equations
Instances For
Check all pairs in a PhenomenonData
Equations
Instances For
Check each pair individually for reflexive coreference
Compute coreference status for positions i and j using ARG-ST outranking.
Position 0 = subject, position 2 = object.
Applies both binding principles uniformly:
- Principle A: [MODE ana] at j outranked by coindexed i → obligatory
- Principle B: [MODE ref] at j outranked by coindexed i → blocked
Equations
- One or more equations did not get rendered due to their size.