Documentation

Linglib.Studies.DeMarneffeNivre2019

de Marneffe & Nivre 2019: UD enhanced dependencies for English LD and coordination #

[dMN19]

Worked English examples illustrating Universal Dependencies' basic vs enhanced representations (cf. §4.2 and Figure 9 of [dMN19]). The substrate — gap-filling (DepGrammar.LongDistance.fillGap) and shared-dependent propagation (DepGrammar.Coordination.enhanceSharedDeps) — lives in the corresponding substrate files.

Examples #

Long-distance dependencies #

Coordination #

Implementation notes #

Fixtures use Word.mk' (featureless); the worked theorems are structural (hasUniqueHeads, edge counts, decide over UD relation labels) and agreement / valence checks pass vacuously. A future revision could add feature-tagged fixtures if richer parallelism theorems are wanted.

Wh-question fixtures #

"What did John see?" — object wh-question (basic tree). Words: what(0) did(1) John(2) see(3). The wh-word attaches as obj of the main verb.

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

    "Who saw Mary?" — subject wh-question (no gap needed).

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

      "Who did John see?" — object wh-question with who.

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

        Relative-clause fixtures #

        "the book that John read" — object relative clause (basic tree). In UD the relative clause attaches via acl from head noun to RC verb; the gap (book as obj of read) is implicit.

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

          Complement-clause fixtures #

          "John thinks that Mary sleeps" — that-complement (no gap).

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

            "John thinks Mary sleeps" — bare complement (that-omission, no gap).

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

              "John wonders if Mary sleeps" — if-complement (no gap).

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

                "John wonders what Mary saw" — embedded wh-question. Words: John(0) wonders(1) what(2) Mary(3) saw(4).

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

                  Coordination fixtures #

                  "John and Mary sleep" — NP coordination.

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

                    "John sleeps and Mary sleeps" — S coordination.

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

                      "John sees and hears Mary" — VP coordination (basic tree). Mary attaches as obj of sees only; hears is conj of sees.

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

                        "the happy and smart boy" — adjective coordination.

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

                          "John likes and Mary hates pizza" — Right Node Raising (basic tree). pizza attaches to likes only.

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

                            Smoke tests #

                            Worked theorems — long-distance dependencies #

                            theorem DeMarneffeNivre2019.whatDidJohnSee_has_wh :
                            Option.map (fun (x : Word) => x.features.isWh) exWhatDidJohnSee.words[0]? = some true

                            Object wh-questions have a [wh] filler at index 0.

                            Subject wh-questions don't need gaps (empty gap list).

                            The enhanced graph for "the book that John read" has the obj-gap edge.

                            The basic tree of "the book that John read" does NOT have this obj edge.

                            The enhanced graph has strictly more edges than the basic tree.

                            The enhanced relclause graph violates unique-heads (book has edges from both det and obj), per [dMN19] §4.4.

                            The basic relclause tree IS a tree (unique heads).

                            Complement clauses have no filler-gap dependencies (vacuous heuristic island check).

                            Worked theorems — coordination #

                            VP coordination has matching argument structures (vacuously, since the example uses featureless verbs).

                            enhanceSharedDeps adds the missing obj edge from hears to Mary.

                            The basic VP-coord tree does NOT have the shared obj edge.

                            The coord enhanced graph has strictly more edges than the basic tree.

                            The coord enhanced graph violates unique-heads (Mary has incoming obj from both sees and hears), per [dMN19] §4.4.

                            The basic coord tree IS a tree (unique heads).

                            RNR enhancement propagates obj to the second-conjunct verb.

                            RNR enhanced graph violates unique-heads.