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:
- 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.
- Recombination Rules: Once the stack is populated, these rules "collapse" the structures into a final parse tree, handling the attachment of modifiers and adjuncts.
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.
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