Parsing Conjunctions Deterministically

Donald W. KosyACL 1986

Introduction

In natural language processing, coordinate conjunctions (and, or, but) have long been considered a "nightmare" for structural analysis. Traditional top-down parsers often struggle with three primary issues: combinatorial explosion, where every possible constituent pair must be hypothesized; grammar clutter, caused by the need for explicit rules for every conjoined type; and the "gap" problem, where elliptical sentences (e.g., "I gave Mary a nickel and Harry a dime") omit essential components like verbs.

This paper presents NEXUS, a rule-based "wait-and-see" parser designed by Donald W. Kosy. NEXUS addresses these complexities by separating the identification of phrase boundaries from the process of structural recombination, achieving significant performance gains over contemporary systems.

The NEXUS Architecture

NEXUS operates on a deterministic, stack-based philosophy that avoids the backtracking common in traditional parsers. The system distinguishes between two types of operations:

  1. Segmentation Rules: These rules identify constituent boundaries (noun phrases, verb groups) bottom-up as words are read. These constituents are then placed into specific "slots" within a stack structure.
  2. Recombination Rules: Once the stack is populated, these rules "collapse" the structures into a final parse tree, handling the attachment of modifiers and adjuncts.
Figure 3: The stack-based segmentation process for a standard clause, showing how words are assigned to functional slots like NP1, VERB, and NP2.

As shown in Figure 3, the parser processes the input string "the children wore the socks..." by assigning each word to a functional slot. This "wait-and-see" approach allows the parser to delay hard structural decisions until sufficient input has been processed to fill the predicted slots.

Handling Conjunctions and Ellipsis

When NEXUS encounters a conjunction, it utilizes specific rules to manage the transition between clauses without losing context. Upon seeing a word like and, the parser pushes a new, empty clause structure onto the stack.

One of the most powerful features of NEXUS is its ability to handle "gaps" or ellipsis. If the parser detects a missing element—such as a verb in a second conjoined clause—it invokes a rule to "copy" the corresponding filler from the previous clause on the stack. This allows for a single-pass parse of complex coordinate structures.

Figure 6: A trace showing the handling of a conjunction and an elliptical gap. Note how 'John' and 'a lampshade' are slotted into NP1 and NP2 even in the absence of a repeated verb.

In Figure 6, the parser handles the phrase "and John a lampshade..." by recognizing the conjunction and preparing the stack for a new set of noun phrases, effectively anticipating the structure of the elliptical clause.

Performance and Evaluation

NEXUS was evaluated against two prominent systems of the mid-1980s: MSG (Dahl & McCord) and RPM (Fong & Berwick). Using a set of 11 complex sample sentences involving difficult conjunction and ellipsis cases, NEXUS demonstrated superior efficiency:

  • Speed: NEXUS was consistently faster, averaging a 3x speedup over MSG and a 4x speedup over RPM.
  • Accuracy: The system successfully avoided "mis-attachments" in complex sentences like "Henry repeated the story John told Mary and Bob told Ann his opinion," which often tripped up other parsers.
  • Robustness: The gap-filling mechanism proved effective at reconstructing missing parts of conjoined clauses by leveraging the existing stack history.

Conclusion and Limitations

While NEXUS represents a significant step forward in deterministic parsing, it is not without limitations. The current grammar does not yet support conjoined adverbs or deeply embedded clausal gaps. Furthermore, the system relies on a "semantic interpreter" to resolve ambiguities between multiple valid parses—a component that was often simulated or bypassed during testing. Despite these constraints, the NEXUS approach demonstrates that separating segmentation from recombination can drastically reduce the search space and complexity of natural language parsing.

Summary updated

BibTeX
@inproceedings{kosy1986parsing,
  author = {Donald W. Kosy},
  title = {{Parsing Conjunctions Deterministically}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1986},
  doi = {10.3115/981131.981144},
}
Figure