TL;DR
How do you build smartphone predictive text for endangered languages when you don't have massive text datasets to train on, and each root word can morph into dozens of grammatical forms? The authors solve this for five endangered Uralic languages by borrowing general concept frequencies from a well-resourced cousin language (Finnish) and combining them with grammatical patterns extracted from tiny native datasets. They package this into open-source layouts and dictionaries for the Android FUTO Keyboard, giving minority languages the modern typing experience users expect.
What Problem Does This Paper Address?
Imagine trying to text a friend in your native language, only to have your phone’s English autocorrect fight every single word you type, while forcing you to hunt through sub-menus for accented characters. Studies show that this friction actually pushes bilingual speakers to abandon their minority language in favor of the majority one when texting.
Giving a language a custom character layout is a good start, and projects like Divvun have already built many. However, modern users expect predictive text and word completion. For major languages, we build predictive keyboards by feeding massive text corpora into neural networks or statistical models to see which words appear most often.
For endangered Uralic languages—like Erzya, Moksha, Komi-Zyrian, Livonian, and Skolt Sami—we hit two walls:
- Data scarcity: The available digital text is far too small to reliably count which words are common and which are rare.
- Morphological richness: Uralic languages heavily inflect their words—attaching suffixes for cases, numbers, and tenses. A single dictionary root word (a lemma) can generate a massive number of valid surface words, many of which are grammatically legal but almost never used in everyday life. Purely rule-based word generators can't tell you which inflections normal people actually type.
Methods
The authors tackle both the layout and prediction problems to support the open-source Android FUTO Keyboard:
- Automated Layout Conversion: Rather than designing keyboards from scratch, they wrote a script to automatically convert existing Android YAML layout configurations from the Divvun project into the specific YAML structure expected by FUTO Keyboard.
- Hybrid Probability Estimation: To build weighted predictive dictionaries (in AOSP format), they estimate the probability of any given inflected word form $w$ by decomposing it into three parts:
- Part-of-Speech Probability: How often nouns, verbs, etc., appear in the target language.
- Cross-Lingual Lemma Frequency: Since they don't know if the word for "dog" is more common than "anvil" in a tiny Livonian dataset, they look at a massive Finnish dataset as a proxy for general human lexical commonness. Using bilingual dictionaries, they map Finnish root frequencies to the target language, flattening the distribution with a temperature parameter so massive Finnish quirks don't completely steamroll the target language. If a word actually appears in the small native corpus, those real observations can override this Finnish "prior."
- Native Morphological Frequency: They take existing Finite-State Transducers (FSTs)—rule-based engines that know how to conjugate and decline words—to generate valid word forms. To rank them, they run the FSTs over small native corpora, stripping away the words themselves and counting only the grammatical tags (like
Noun + Plural + Partitive). With some statistical smoothing for rare words, this teaches the model how the target language prefers to inflect its words.
Finally, these probabilities are converted into negative log-probabilities (costs) and mapped to integer weights for the keyboard.
Datasets
Instead of introducing new benchmarks, the authors assemble existing open-source linguistic tools and small text collections:
- SemFi: A large online Finnish database used to extract base lemma frequencies.
- UralicNLP & GiellaLT/Divvun FSTs: Open-source bilingual dictionaries and finite-state morphological analyzers/generators for the five languages.
- Target-Language Corpora: Small monolingual datasets compiled to count grammatical pattern frequencies. Their token sizes illustrate the extreme low-resource challenge: Komi-Zyrian (5M), Erzya (1.2M), Moksha (584k), Skolt Sami (69k), and Livonian (just 3k tokens!).
Key Insights and Ideas
- Decoupling meaning from grammar: The paper's cleverest move is realizing you can transfer lexical commonness across languages ("water" is a common concept everywhere) while keeping morphological habits strictly local.
- Graceful handling of ambiguity: A single typed word might have two valid grammatical readings (like how "run" in English can be a noun or a verb). When counting grammar patterns in the corpus, an ambiguous word splits its vote (e.g., 0.5 to each reading) so it doesn't artificially inflate corpus counts. At prediction time, the math reverses: if two grammatical paths produce the exact same spelling, their probabilities are added together so the surface word gets ranked accurately.
- Rule-based + Statistical sweet spot: Neural models starve on 3,000 tokens of Livonian, and pure FSTs over-generate bizarrely complex words. Combining FSTs with lightweight Bayesian-style priors hits a practical sweet spot that runs effortlessly offline on a phone.
Key Results
The paper focuses on system architecture and resource creation rather than quantitative benchmarking (such as keystroke savings or user studies). The primary concrete outputs are the open-source conversion pipeline, the five converted FUTO keyboard layouts, and the five weighted unigram predictive AOSP dictionaries ready for mobile deployment.
Limitations and Future Work
- No Context/Next-Word Prediction: Although the AOSP dictionary format supports bigram/context-sensitive suggestions (predicting what word comes after the current one), this system only builds unigram dictionaries (completing the word currently being typed). Estimating reliable word-to-word transitions remains out of reach without larger target-language corpora.
- Expanding to Other Languages: While no formal future work section is laid out, the authors note that their reproducible workflow can easily be applied beyond these five languages to other low-resource languages that have basic dictionaries and FSTs.
Summary updated