Introduction
In the late 20th century, the transition from physical print to digital lexical databases faced a significant hurdle: the nature of the source material. Publishers typically provided "typesetting tapes"—raw character streams intended for driving printing presses rather than for computational analysis. These files were dense with cryptic font codes and shorthand conventions designed to minimize physical page space. This paper presents the Dictionary Entry Parser (DEP), a framework designed to "unfold" these flat, implicit structures into explicit, hierarchical Lexical Databases (LDBs).
The DEP Architecture: From Raw Tapes to Tokens
The DEP operates through a three-stage pipeline to handle the idiosyncratic logic of lexicography. The first stage is Tokenization, which converts raw character sequences and font-specific hex codes into meaningful semantic markers.
Following tokenization, a Retokenization phase performs context-sensitive normalization. This step cleans the input by removing redundant font changes and reassembling words split by line-break hyphens, ensuring the parser receives a clean stream of tokens.
The Core Engine: Hierarchical Parsing
The heart of the DEP is the Parsing Proper phase. Built using Modular Logic Grammars implemented in Prolog, the parser employs unification and backtracking to construct a hierarchical tree from the normalized tokens.
Unlike standard natural language parsers, the DEP includes specialized operators for structure manipulation. It can "migrate" data nodes and includes a "junk collection" mechanism. This allows the system to skip over unstructured prose—such as long, free-form usage notes—without failing the entire parse, ensuring that the vast majority of structured data is still captured successfully.
Key Formalisms: Scoping and Inheritance
The authors introduce two critical concepts for dictionary parsing:
- The "Peter-minus-1" Principle: This principle dictates that a data node should be placed at the highest possible level in the hierarchy where its value remains valid for all subordinate nodes. For instance, if a subject domain label applies to multiple definitions, the parser "lifts" the label to scope over the entire group.
- Tribal Memory: Dictionary entries often feature deep nesting where sub-entries must inherit properties from their parent headwords. The DEP uses rule variables to pass this "ancestry" down the parse tree, maintaining the context of the main entry throughout the sub-structures.
Results and Performance
The DEP was evaluated against several major dictionaries, demonstrating high robustness across different languages and editorial styles:
- Webster’s Seventh New Collegiate Dictionary: 98% success rate.
- Collins German-English (CGE): 98% success rate.
- Collins English-German (CEG): 95% success rate.
- Longman Dictionary of Contemporary English (LDOCE): 93% success rate.
The resulting LDBs enabled complex, multi-field queries that were previously impossible with the original flat typesetting files.
Limitations and Future Directions
While highly effective, the DEP faces challenges with free-form natural language found in "USAGE" notes, which often defy strict grammar rules. Additionally, reconstructing full phonetic strings from abbreviated pronunciation fields (e.g., showing only the suffix change) requires specialized morphological engines. Future work aims to integrate deeper noun compound parsing to automatically link complex word fragments without manual grammar hints.
Summary updated