Documentation

Linglib.Theories.Syntax.HPSG.Coreference

Is this a nominal category?

Equations
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
      Instances For

        Is this word a reflexive specifically?

        Equations
        Instances For

          Is this word a reciprocal?

          Equations
          Instances For

            Types of nominal expressions for coreference.

            Implementation convenience for dispatching agreement checks. Both pronoun and rExpression map to [MODE ref] in SWB2003.

            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                @[implicit_reducible]
                Equations

                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
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      Parse a simple transitive sentence into a clause.

                      Equations
                      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
                          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
                            Instances For
                              def HPSG.Coreference.phiAgree (w1 w2 : Word) :
                              Bool

                              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
                                        Instances For

                                          Check if local coreference is blocked by Principle B ([MODE ref]).

                                          Applies to both pronouns and R-expressions.

                                          Equations
                                          Instances For

                                            Check if HPSG correctly predicts a minimal pair for coreference

                                            Grammatical sentence should pass, ungrammatical should fail.

                                            Equations
                                            Instances For

                                              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.
                                              Instances For