Abstract
Each language has its own complex systems of word, phrase, and sentence construction, the guiding principles of which are often summarized in grammar descriptions for the consumption of linguists or language learners. However, manual creation of such descriptions is a fraught process, as creating descriptions which describe the language in "its own terms" without bias or error requires both a deep understanding of the language at hand and linguistics as a whole. We propose an automatic framework AutoLEX that aims to ease linguists' discovery and extraction of concise descriptions of linguistic phenomena. Specifically, we apply this framework to extract descriptions for three phenomena: morphological agreement, case marking, and word order, across several languages. We evaluate the descriptions with the help of language experts and propose a method for automated evaluation when human evaluation is infeasible.
Introduction
Linguists traditionally document languages through "grammar sketches," a manual process that is slow, prone to bias, and requires deep expertise. While global databases like the World Atlas of Language Structures (WALS) exist, they are often too coarse-grained. For example, WALS might indicate that English objects usually follow verbs, but it fails to detail specific exceptions or the underlying semantic triggers. With over 6,500 languages in the world—many of them endangered—there is a critical need for tools that can automate the discovery of local, nuanced linguistic rules to aid in language documentation and technology development.
AUTOLEX is an automated framework designed to address this gap. By leveraging interpretable machine learning, it extracts fine-grained linguistic rules—such as word order and case marking—directly from raw text, transforming linguistic exploration into a structured classification task.
The AUTOLEX Framework
The AUTOLEX pipeline treats linguistic questions as supervised learning problems through a multi-step process:
- Task Formulation: A linguistic question (e.g., "Does the adjective come before or after the noun?") is framed as a classification task.
- Feature Extraction: The system extracts three feature types: Syntactic (POS tags and dependency relations), Lexical (specific lemmas), and Semantic. For semantics, the authors use SPINE to transform dense word embeddings into sparse, interpretable non-negative vectors, allowing the model to use human-readable features like "word-is-like-{numeric quantity}".
- Interpretable Modeling: Decision Trees (specifically XGBoost) are trained because their branches can be directly translated into human-readable rules.
- Rule Extraction & Validation: Statistical validation (chi-squared tests) ensures identified patterns are significant and not artifacts of the data.
- Visualization: The framework provides an interface showing the rule, the triggering features, and illustrative examples from the source text.
Experimental Setup
The framework was evaluated using 61 languages from the SUD Treebanks (v2.5), which provide gold-standard syntactic annotations. Semantic features were derived from Fasttext Embeddings. To test robustness in low-resource settings, the authors conducted a case study on Hmong Daw (mww), a threatened language. Lacking a gold-standard treebank, they scraped 445k sentences and used the Udify multilingual parser to generate silver-standard annotations.
Results and Insights
Performance Gains
Compared to a frequency-based baseline, AUTOLEX showed significant accuracy improvements: +7.3 for word order, +28.1 for case marking, and +4.0 for morphological agreement. Gains were most dramatic in high-resource settings (+12.8 over baseline), but remained meaningful (+3.19) even with fewer than 500 sentences.
Key Insights
- Semantics Drive Syntax: Adding lexical and semantic features significantly improved the model's predictive power. In Spanish, for instance, identifying an adjective as an "ordinal" (e.g., primero) is a much stronger predictor of its position before a noun than its POS tag alone.
- Discovering "Unknown Unknowns": In user studies, AUTOLEX identified valid rules that experts were not explicitly aware of, such as specific English conditions where adjectives follow nouns (e.g., "something new").
- Expert Validation: In manual evaluations for English and Greek, 80% of extracted rules were judged as valid grammar rules by experts, with 69% of Greek rules rated as highly readable and informative.
Discussion and Future Work
While powerful, AUTOLEX is bottlenecked by the quality of initial syntactic analysis; systematic errors in a parser can lead to incorrect rules. Currently, rules are described using English as a meta-language, though future iterations aim to support multiple languages for descriptions. The authors envision a "human-in-the-loop" approach where linguists use AUTOLEX to find patterns, correct underlying parses, and iteratively refine grammar descriptions, making it a potent tool for zero-resource linguistic fieldwork.
Summary updated