Abstract
Large Language Models (LLMs) often exhibit a "Standard Language" bias, struggling with the orthographic fluidity of non-standardized dialects. We present DIALEMMA, a framework for inducing dialect variation dictionaries from monolingual corpora using string similarity and human annotation. Applying this to German and Bavarian, we produce a 100,000-pair dataset and evaluate state-of-the-art LLMs. Our findings reveal that while LLMs capture some dialectal rules, they frequently conflate translation with grammatical inflection and perform better with English-language prompts.
Introduction
Most Natural Language Processing (NLP) research assumes a world of standardized orthography. However, millions of people write in dialects that lack standard spelling rules. For example, the German word zweisprachig (bilingual) might appear in Bavarian as zwaasprochig, zwaspråchig, or zwoasprachign. This variation creates a "lexical gap" that hinders model performance in retrieval, translation, and comprehension. Existing solutions often rely on scarce parallel corpora; DIALEMMA addresses this by utilizing widely available monolingual data.
The DIALEMMA Framework
Researchers from MaiNLP at LMU Munich developed a five-step pipeline to systematically map dialectal variants to standard language lemmas.
The process begins with lemmatizing a majority language corpus ($L_1$) and extracting unique word forms from a dialect corpus ($L_2$). After filtering out words already present in the standard vocabulary, the system uses Levenshtein distance to identify the $k$-nearest neighbors for each standard lemma. Finally, native speakers annotate these candidates to determine if they represent a direct translation, an inflected variant, or an unrelated term. This approach specifically targets "cognates"—words with shared ancestry that account for the bulk of dialectal spelling variation.
The German-Bavarian Dataset
Using Wikipedia editions for both High German and Bavarian, the authors produced the DIALEMMA Dataset, comprising 100,000 human-annotated word pairs. This resource includes 11,000 direct translation pairs and 7,000 pairs exhibiting inflectional differences, making it significantly larger than previous dialectal spelling resources.
As shown in the examples, the dataset captures the nuance between a direct translation (e.g., zwaasprochig) and an inflected form (e.g., zwoasprachign), a distinction that proves challenging for automated systems.
Experimental Insights
The study evaluated nine state-of-the-art models, including Llama 3.3, Mistral-123b, and Gemma 3, uncovering several key behaviors:
- Inflection Confusion: Models frequently misclassify grammatical inflections as direct translations. Distinguishing between a spelling variant and a case/plural ending remains a significant hurdle.
- The Context Paradox: While providing usage examples helps models perform translations, it paradoxically degrades their ability to judge whether a word is a valid dialectal variant in classification tasks.
- Language Bias: Despite the task involving German and Bavarian, models performed better with English prompts. German prompts often led to higher "Instruction Following" (IF) errors.
- Scale and POS Sensitivity: Larger models consistently outperformed smaller ones. Performance was highest for nouns and verbs but dropped for adverbs and proper nouns, which often exhibit more irregular variation.
Results and Conclusion
In the judgment task, Mistral-123b achieved the highest overall Macro-F1 (0.567). For translation, Gemma3-27b led the pack with an accuracy of 0.586, followed by Llama 4-17b. While LLMs significantly outperformed simple string-similarity heuristics, they still face limitations. The DIALEMMA framework's reliance on Levenshtein distance means it primarily captures cognates, missing lexical differences where the dialect uses a completely different root.
Future work will explore extending DIALEMMA to other low-resource language varieties to test the generalizability of the string-similarity approach. The code and dataset have been made publicly available to foster more inclusive NLP research.
Summary updated