Do Rule-Based Tools Help LLMs Translate Endangered Uralic Languages in the Prompt or over MCP?

Iaroslav Chelombitko, Mika HämäläinenarXiv 2026 · arXiv

Large Language Models (LLMs) are famously "data-hungry," which leaves endangered languages in a difficult position. While languages like Komi-Zyrian or Erzya lack the massive web-scale corpora needed to train a GPT-4, they often possess decades of high-quality, rule-based linguistic resources—morphological analyzers and bilingual dictionaries.

A recent paper titled "Do Rule-Based Tools Help LLMs Translate Endangered Uralic Languages in the Prompt or over MCP?" investigates whether we can "plug" this old-school linguistic knowledge into modern LLMs to improve translation.

TL;DR

By providing LLMs with access to rule-based morphological analyzers and dictionaries, researchers significantly improved translation from four endangered Uralic languages into English. While "injecting" linguistic data directly into the prompt is the easiest win, allowing a capable model to dynamically call tools via the Model Context Protocol (MCP) yielded the best results, though many smaller models still struggle with the mechanics of tool-calling.

What Problem Does This Paper Address?

Current LLMs perform poorly on "low-resource" languages because they haven't seen enough training data to learn their grammar or vocabulary. However, the authors argue these languages are actually "low-description" in the eyes of an LLM, but "high-description" in the world of linguistics.

Languages like Komi-Zyrian, Moksha, Erzya, and Udmurt have mature finite-state transducers (FSTs) and constraint grammars. The challenge is that LLMs don't naturally "know" how to use these external rule-based systems. The researchers set out to determine if providing this linguistic "cheat sheet" helps, and whether it’s better to pre-calculate the analysis (Prompt Injection) or let the model decide what to look up on the fly (Tool Calling).

Methods

The researchers tested 31 open-weight instruction-tuned models (up to 27B parameters) under several conditions:

  1. Zero-shot: The model translates with no extra help.
  2. Inject: The prompt is pre-filled with the lemma (root word), morphological analysis, and dictionary definitions for every word in the source sentence.
  3. MCP (Model Context Protocol): The model is given "tools" it can call to look up words or analyze grammar as it sees fit.

Crucially, they moved beyond automatic metrics like BLEU or chrF++, which struggle with the "free" literary style of their reference translations. Instead, an expert linguist manually evaluated 816 translations from the strongest model (Qwen3.8-27B), categorizing errors and deciding if a translation was "accepted" or "rejected."

Datasets

The study utilized a 68-sentence parallel test set of literary prose. This dataset is unique because it provides identical English sources translated into Finnish, Komi-Zyrian, Moksha, Erzya, and Udmurt. While small, it is one of the few high-quality parallel sets available for these specific language pairs.

Key Insights and Ideas

  • The Dictionary is the "Killer App": The biggest performance gains came from bilingual dictionary glosses. For Udmurt—the only language in the set whose dictionary lacked an English side—prompt injection provided zero improvement. This suggests that LLMs use these tools primarily as a vocabulary bridge rather than a grammatical guide.
  • Error Transformation: The tools didn't just make the models "smarter"; they changed the nature of their mistakes. Without tools, models often engaged in "wholesale replacement" (hallucinating an entirely different sentence). With tools, the errors shifted to "lexical substitutions"—getting the sentence structure right but picking the wrong synonym from a dictionary entry.
  • The Tool-Calling Tax: Dynamic tool calling (MCP) is "agentic" and scales better, but it's fragile. Many models failed because they couldn't produce valid JSON, or they hallucinated ISO language codes (e.g., calling for kv or kom instead of the supported kpv for Komi-Zyrian).
  • One-Way Street: While tools helped translate from Uralic languages into English, they did almost nothing for the reverse direction. Translating into an endangered language requires a deep generative model of that language's syntax, which a simple dictionary lookup cannot provide.

Key Results

The manual evaluation of the Qwen3.8-27B model showed a dramatic climb in quality:

  • Zero-shot: Only 13 out of 272 translations were accepted.
  • Inject (Static): Accepted translations rose to 43.
  • MCP (Dynamic Tool Use): Accepted translations hit 55.

Despite the success of the top model, the "roster-wide" results were sobering. Out of 31 models, 14 never successfully called a tool, and half of the calls that were made used unsupported language codes.

Limitations and Future Work

The authors acknowledge several hurdles:

  • Scaling Manual Eval: Manual evaluation by an expert is the gold standard but doesn't scale. Developing better automated metrics for these languages is a priority.
  • Tokenization: Uralic languages tokenize poorly in standard LLMs (often 3-5 subword tokens per word), meaning the "context window" for these languages is effectively 3x smaller than for English.
  • Quantization Sensitivity: The study used high-precision weights (bf16). The authors warn that the 4-bit or 8-bit quantization used in local deployments often breaks the precise formatting required for tool calling.

Future work may involve "fine-tuning for the toolkit"—teaching models specifically how to interact with the UralicNLP library to minimize the formatting errors seen in this study.

Summary updated

Abstract

Komi-Zyrian, Moksha, Erzya and Udmurt have mature rule-based resources, among them finite-state analysers, constraint grammars and bilingual dictionaries, which language models do not use. We ask whether giving a model access to these resources improves machine translation from the four languages into English, and whether it matters how the access is provided: as analyses computed in advance and written into the prompt, or as tools that the model calls itself through the Model Context Protocol (MCP). We evaluate manually: an expert linguist read every English output of the strongest model under three conditions, 816 sentences in all, accepted or rejected each one, and named the main error in every rejected translation. With the analyses in the prompt, the number of accepted translations rises from 13 to 43 out of 272; with the tools attached it rises to 55. The gain comes from the bilingual dictionary. For Udmurt, whose dictionary has no English side, the prompt-based condition brings no gain at all, while for the other three languages an English gloss reaches the prompt for 74 to 80% of the source words. Tool calling is also much harder to get working than prompt injection. Of 31 open-weight models, 14 never call a tool, 11 of them because they cannot produce a usable call, and half of the calls that are made name a language the toolkit does not support. We release the data set, every model output and all tool-call logs.
BibTeX
@misc{chelombitko2026do,
  author = {Iaroslav Chelombitko and Mika Hämäläinen},
  title = {{Do Rule-Based Tools Help LLMs Translate Endangered Uralic Languages in the Prompt or over MCP?}},
  year = {2026},
  eprint = {2611.19439},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19439},
}
Figure