Abstract
Traditionally, the development of computational grammars involves manual selection between competing linguistic analyses, often without empirical evidence regarding their computational efficiency. This paper introduces metagrammar engineering, a methodology that utilizes high-level systems to automatically generate multiple grammar variants from a single description. By systematically comparing these variants, researchers can identify the most efficient theoretical approaches. A case study on Germanic languages demonstrates that an "auxiliary+verb" construction significantly outperforms the standard "argument-composition" model in both parsing and generation tasks.
Introduction
In frameworks like Head-driven Phrase Structure Grammar (HPSG), grammar engineers frequently encounter theoretical "forks in the road." For instance, when modeling the interaction between auxiliary verbs (e.g., "has") and main verbs (e.g., "seen"), several formal analyses may be linguistically valid. However, these choices are rarely made with foresight into how they will interact with other components, such as word-order rules. Choosing an analysis based solely on theoretical elegance can lead to "efficiency debt," resulting in grammars that are too slow or memory-intensive for practical use.
Methodology: The Metagrammar Approach
To move beyond the "pick-and-pray" method, the author proposes writing a "metagrammar"—a system that generates implemented grammars. Using a specialized branch of the LinGO Grammar Matrix, the study generated 12 distinct grammars for German, Dutch, and Flemish to compare two primary contenders for handling auxiliaries:
- Argument-composition (The Standard): The auxiliary verb inherits the objects and subjects of the main verb. While theoretically elegant, it creates underspecified lists that increase parser search space.
- Aux+verb construction: The auxiliary and main verb combine into a single unit before seeking objects. This approach, originally proposed for the Australian language Wambaya, was tested here for its applicability to Germanic structures.
Experimental Setup and Datasets
To isolate structural complexity from lexical ambiguity, the experiment utilized artificial grammars with a dummy vocabulary of approximately 10 unambiguous words. The test suites were based on established linguistic descriptions (Kathol 2000 for German; Haeseryn 1997 for Dutch/Flemish).
As shown in the dataset summary, the Dutch test suite included 177 positive examples and over 14,000 total test cases, while the German suite included 116 positive examples and nearly 7,000 total cases. These large sets of ungrammatical strings were essential for ensuring the grammars did not over-generate.
Results and Efficiency Gains
The "Aux+verb" analysis emerged as the superior model across all performance metrics. Because the standard "argument-composition" model forces the parser to speculate on the number of arguments before the verbs combine, it leads to exponential growth in processing steps.
Key findings from the empirical evaluation include:
- Parsing Efficiency: The Aux+verb construction achieved a 73.2% reduction in performed tasks and required 32.9% less memory than the argument-composition model.
- Generation Speed: For German sentences involving ditransitive verbs and auxiliaries, the Aux+verb model reduced the number of computational "edges" by over 98.5%.
- Empirical Parity: Both models covered the exact same set of grammatical sentences, proving that the efficiency gains did not come at the cost of accuracy.
Conclusion and Future Work
Metagrammar engineering demonstrates that linguistic analysis selection should be treated as an empirical optimization problem. While the Aux+verb model showed clear advantages, it faced challenges with rare phenomena like partial VP fronting in German, which required specialized rules. Future research will focus on scaling these metagrammars to real-world corpora and comparing them against established, manually optimized grammars like Alpino (Dutch) or the GG (German) to further refine the generation process.
Summary updated