WorksComputer Science
Open-Source FUTO Keyboard Layouts and Predictive Text for a Few Endangered Languages
Abstract
We present open-source FUTO Keyboard layouts and predictive text dictionaries for five endangered Uralic languages: Erzya, Moksha, Komi-Zyrian, Livonian, and Skolt Sami. Existing Divvun Android keyboard layouts are converted automatically into the YAML format used by FUTO Keyboard. For predictive text, we construct weighted AOSP dictionaries using translated Finnish lemma frequencies together with morphological frequencies extracted from small target-language corpora using finite-state transducers. This combination provides a practical way to rank inflected word forms when large monolingual corpora are unavailable. The resulting resources offer reusable mobile keyboard support for endangered Uralic languages.
Introduction
For many endangered and minority languages, digital language support remains limited (see Joshi et al. [8]). Even when a language has an established orthography and linguistic resources such as dictionaries or morphological analyzers, basic tools for everyday communication may still be missing. A keyboard that provides the correct characters makes it possible to write a language on a phone, but modern users also expect features such as word completion and predictive text.
The Divvun project1 has made an important contribution to mobile support for many Uralic and other minority languages by providing keyboard layouts and language technology resources. In this work, we build on these existing resources by converting Divvun keyboard layouts for use with FUTO Keyboard2, an open-source Android keyboard. Our focus is not only on reproducing the keyboard layouts, but also on adding predictive text resources that can be distributed and used together with them.
Predictive text presents a more difficult problem than keyboard layout conversion. A useful prediction system normally depends on frequency information: common words should be suggested more readily than rare ones, and common inflected forms should be preferred over forms that are grammatically possible but unlikely in actual use [1, 3]. For well-resourced languages, such frequencies can be estimated from large corpora. This is not straightforward for endangered Uralic languages. Their available corpora may contain enough material to illustrate vocabulary and morphology, but they are often too small to provide reliable frequency estimates for a large predictive dictionary. At the same time, purely rule-based generation does not by itself provide a good way of ranking the many word forms that a morphologically rich language can produce.
We address this problem by combining information from two different sources3. First, we use lemma frequencies from a large Finnish dataset as a proxy for general lexical frequency. Rather than transferring Finnish word forms directly, we translate frequent Finnish lemmas into the target languages using dictionaries. This provides an approximate ranking of target-language lemmas even where large target-language corpora are unavailable.
Second, we estimate the frequencies of morphological forms from the target languages themselves. Small corpora in each language are analyzed using finite-state transducers (FSTs), allowing us to observe how frequently different morphological analyses and inflectional patterns occur in actual text. We then combine the translated lemma-frequency information with the target-language morphological frequencies to construct weighted predictive text dictionaries. The method is applied to five endangered or minority Uralic languages: Erzya (myv), Moksha (mdf), Komi-Zyrian (kpv), Livonian (liv), and Skolt Sami (sms).
Related Work
Mobile interfaces are typically designed around larger languages, which also receive features such as autocorrection, word completion, and predictive text. Lackaff and Moner [10] show how this difference can influence language choice in practice: in their study of Irish language users, participants reported difficulties with accented characters as well as frustration caused by autocorrection and predictive features designed for English. Thus, even when the orthography of a minority language can technically be entered using a general-purpose keyboard, the additional effort involved may still favour use of the majority language.
Hämäläinen and Alnajjar [6] developed Livonian keyboard layouts for desktop operating systems as well as mobile keyboards for Android and iOS. Because Livonian contains a relatively large number of accented characters, the mobile layout placed many of these characters under their unaccented counterparts rather than assigning each one a dedicated key. Their mobile keyboards also included predictive text based on words from a Finnish–Livonian dictionary. This solution provided lexical coverage despite the scarcity of Livonian data, but prediction was restricted to dictionary lemmas.
Related problems have been addressed for Indigenous languages outside the Uralic family. Santos and Harrigan [17] developed and evaluated a smartphone keyboard for Plains Cree syllabics, combining ergonomic considerations with corpus statistics when designing the layout. More recently, Shames [18] developed a mobile keyboard for Itunyoso Triqui, where lexical tone and multigraphs make ordinary QWERTY input inconvenient. The resulting layout includes dedicated support for multigraphs and several methods for entering tone. Kakolu Ramarao [9] describes mobile and desktop keyboards for Idu Mishmi, designed to support an orthography containing characters and multi-codepoint Unicode sequences that are difficult to enter with standard keyboards.
Early mobile prediction systems relied primarily on lexicons and word-frequency information. For example, Dunlop and Crossan [2] studied
dictionary-based disambiguation and word completion for mobile-phone input, demonstrating the importance of the lexicon and the ranking of candidate words. More recent systems have employed statistical and neural language models. Yu et al. [19], for example, developed a neural word-prediction model specifically designed to operate under the memory and latency constraints of a mobile device. Such approaches work well when sufficiently large and representative training data are available, but this assumption is problematic for endangered languages, where even the total available corpus may be small.
Morphologically rich languages pose an additional difficulty because prediction cannot be reduced to selecting among a moderate number of independent word types. A single lemma may occur in many inflected forms, while many theoretically possible forms may be rare or absent in ordinary language use. Lane and Bird [11] address this problem for Kunwinjku by using a finite-state morphological model for interactive word completion. Instead of enumerating every possible complete word, their method maps partially entered forms to possible completions up to morphological boundaries. The approach was subsequently applied to Plains Cree by Lane et al. [12], who used an existing FST and investigated different strategies for ranking the resulting morphological completions.
Building FUTO keyboards
Layout conversion
Both Divvun and FUTO Keyboard define keyboard layouts using YAML files, but the structure and expected fields of the two formats differ. Because of this, Divvun keyboard layouts cannot be used directly in FUTO Keyboard.
Divvun layout files may contain separate configurations for several device and operating system targets, including Android, iPhone, iPad and macOS. Since FUTO Keyboard is an Android keyboard, we use the Android layout definitions as the source for conversion.
To avoid manually rewriting each layout, we implemented a conversion script that reads the Android section of a Divvun YAML file and produces the corresponding FUTO Keyboard YAML format. The script converts the key rows and relevant layout information while adapting the representation to the structure expected by FUTO Keyboard.
This makes it possible to reuse existing Divvun keyboard layouts with relatively little manual work. In this study, the same conversion process was used for the Erzya, Moksha, Komi-Zyrian, Livonian, and Skolt Sami layouts.
Building predictive dictionaries
FUTO Keyboard uses the AOSP dictionary format adopted from HeliBoard for predictive text4. These dictionaries can associate words with numerical weights, allowing more frequent or more likely words to be ranked higher in the suggestion list. The format can also encode next-word information for context-sensitive prediction.
In this work, we only make use of unigram entries, i.e. individual words together with their weights. We do not include next-word prediction. This keeps the dictionary construction process independent of large target-language corpora, which would be needed to estimate reliable word-to-word transition frequencies. The main task is therefore to generate a sufficiently broad set of word forms and assign useful relative weights to them.
We start by obtaining frequencies for Finnish lemmas in a large online corpus, for this, we use the frequencies provided in SemFi (Hämäläinen, [4]). These frequencies are later mapped to endangered language lemmas using the FST dictionaries in UralicNLP (Hämäläinen, [5]).
Next, we need to know what words there are in each language. We take the FSTs for Erzya, Moksha (Rueter et al., [15]), Skolt Sami (Rueter and Hämäläinen, [14]), Komi-Zyrian (Rueter et al., [16]) and Livonian (Rueter, [13]) and get lemma lists from their LEXC stem files. Then we proceed to inflect these lemmas to most of their possible inflections using the method and inflection limits described in Hämäläinen et al. [7]. This way, we end up with large datasets of words and their inflectional forms.
In order to gather language specific understanding of frequencies of word forms, we build a small corpus for each language5. We then analyze the words of these corpora using the FST analyzers, the analyzers output morphological readings for each word such as +N+Pl+Par and +V+Act+Imprt+Prs+ConNeg+Sg2. We discard the actual words and only count the frequencies of these morphological readings.
Estimating frequencies for inflected word forms
In this section, we describe how we combine Finnish lemma frequencies with endangered language morphological frequencies. For a word form with lemma , part of speech , and morphological analysis , we estimate its probability as
Here, describes how frequent the relevant part of speech is in the target-language corpus, estimates the frequency of the lemma, and estimates how likely the particular inflection is for that lemma. This decomposition allows lexical frequency to be transferred from Finnish while the distribution of morphological forms remains language-specific.
Finnish frequencies are not used as raw counts in the target-language model. This distinction is important because the Finnish corpus is several orders of magnitude larger than the target-language corpora. Instead, the Finnish counts are converted into a probability distribution over target-language lemmas. If a Finnish lemma has several possible translations, its frequency mass is divided between the corresponding target lemmas rather than being copied in full to every translation. Conversely, if several Finnish lemmas map to the same target-language lemma, their contributions are combined.
We additionally flatten the Finnish frequency distribution using a temperature parameter. If is the Finnish-derived frequency assigned to target lemma , its normalized weight is calculated as
where the sum is taken over lemmas belonging to the same part of speech. The small constant prevents unmapped words from receiving zero probability, while controls how strongly Finnish frequency differences are preserved. Values below one reduce the influence of very large frequency differences in Finnish. This is desirable because frequency in Finnish is informative about general lexical commonness, but it should not be assumed to reproduce the lexical distribution of another language exactly.
When the target-language corpus itself contains occurrences of a lemma, these observations are combined with the Finnish-derived distribution. Finnish frequencies are treated as a prior than as additional corpus tokens. In practice, a configurable pseudo-count parameter determines how much influence the Finnish distribution has relative to observed target-language data. Consequently, frequent target-language lemmas can override the Finnish prior, while rare or unattested lemmas can still benefit from the much larger Finnish corpus.
Morphological frequencies are estimated entirely from the target-language corpus. After finite-state analysis, counts are collected for morphological feature combinations such as , .
Because the corpora are small, many valid forms are not observed. Direct relative frequencies would therefore assign probability zero to forms that are grammatically possible but happen not to occur in the available texts. To avoid this, the observed counts are smoothed. An unobserved form receives probability from the broader distribution of morphological categories for the same part of speech, or, where available, for the same inflectional class.
Where sufficient evidence exists for an individual lemma, its own morphological distribution is used. For rare lemmas, the estimate is gradually backed off toward the general morphological distribution of the corresponding part of speech. Thus, a frequently occurring noun can develop a lemma-specific case and number distribution, whereas an unattested noun inherits the general noun inflection distribution.
Only analyses output by the FSTs are considered. If a lemma cannot occur in some morphological category, probability mass is redistributed among its legal forms. This prevents lemmas with restricted paradigms from being penalized simply because they have fewer possible inflected forms.
A surface form may have more than one valid morphological analysis. During corpus counting, such a token should not contribute a full count to every possible analysis, since this would artificially increase the size of the corpus. In the initial implementation, the contribution of an ambiguous token is divided equally among its analyses. Thus, a token with two analyses contributes 0.5 to each.
At prediction time, the situation is reversed: if several analyses generate the same surface word, their probabilities are added together. The resulting probability therefore represents the probability of the surface form irrespective of which morphological analysis produced it.
The final probability of a surface word combines the target-language part-of-speech distribution, the Finnish-informed lemma probability, and the target-language morphological probability. For efficient ranking in the predictive keyboard, probabilities can equivalently be represented as negative log-probabilities,
so that more probable words receive lower costs. This approach has two main advantages for severely under-resourced languages. First, the very large Finnish corpus contributes information about the relative commonness of lexical meanings without numerically overwhelming the much smaller target-language corpus. Second, morphological behaviour is learned from the target language itself rather than transferred from Finnish. The model therefore makes use of large-scale lexical evidence while preserving language-specific inflectional patterns.
For deployment in the predictive keyboard, the resulting probabilities are converted into the integer weight representation required by HeliBoard. This transformation preserves the relative ranking of the estimated word-form probabilities while adapting them to the input format expected by the keyboard.
Conclusions
In this work, we presented open-source FUTO Keyboard layouts and predictive text dictionaries for Erzya, Moksha, Komi-Zyrian, Livonian, and Skolt Sami. By converting existing Divvun Android layouts, we were able to reuse established keyboard designs rather than create new ones from scratch. We then extended these layouts with weighted predictive dictionaries compatible with the AOSP dictionary format used by FUTO Keyboard.
The main challenge was the lack of large corpora for the target languages. To address this, we combined lexical frequency information transferred from Finnish through bilingual dictionaries with morphological frequency information extracted from small target-language corpora using finite-state transducers. This provides a practical compromise between purely rule-based generation and data-intensive statistical prediction.
The resulting workflow is simple, reproducible and applicable beyond the five languages considered here. More broadly, it shows how existing rule-based resources can be combined to improve everyday digital support for low-resource and endangered languages. Our code is open source and publicly available.
References
- [1]John J. Darragh and Ian H. Witten. 1991. Adaptive predictive text generation and the reactive keyboard. Interacting with Computers, 3(1):27–50.
- [2]Mark D. Dunlop and Andrew Crossan. 2000. Predictive text entry methods for mobile phones. Personal Technologies, 4(2–3):134–143.DOI
- [3]Daniela Gerz, Ivan Vulić, Edoardo Ponti, Jason Naradowsky, Roi Reichart, and Anna Korhonen. 2018. Language modeling for morphologically rich languages: Character-aware modeling for word-level prediction. Transactions of the Association for Computational Linguistics, 6:451–465.DOI
- [4]Mika Hämäläinen. 2018. Extracting a semantic database with syntactic relations for finnish to boost resources for endangered uralic languages. The Proceedings of Logic and Engineering of Natural Language Semantics, 15(9).
- [5]Mika Hämäläinen. 2019. Uralicnlp: An nlp library for uralic languages. Journal of open source software, 4(37):1345.DOI
- [6]Mika Hämäläinen and Khalid Alnajjar. 2021. Developing keyboards for the endangered Livonian language. In Proceedings of the Fifth Workshop on Widening Natural Language Processing, pages 18–20, Punta Cana, Dominican Republic. Association for Computational Linguistics.
- [7]Mika Hämäläinen, Niko Partanen, Jack Rueter, and Khalid Alnajjar. 2021. Neural morphology dataset and models for multiple languages, from the large to the endangered. In Proceedings of the 23rd Nordic Conference on Computational Linguistics (NoDaLiDa), pages 166–177.arxiv.org/abs/2105.12428
- [8]Pratik Joshi, Sebastian Santy, Amar Budhiraja, Kalika Bali, and Monojit Choudhury. 2020. The state and fate of linguistic diversity and inclusion in the NLP world. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 6282–6293, Online. Association for Computational Linguistics.arxiv.org/abs/2004.09095
- [9]Akhilesh Kakolu Ramarao. 2026. Keyboards for the endangered Idu Mishmi language. In Proceedings of the SIGUL 2026 Joint Workshop with ELE, EU-RALI, and DLCRL: Towards Inclusivity and Equality: Language Resources and Technologies for Under-Resourced and Endangered Languages, pages 49–53, Palma, Mallorca, Spain. ELRA Language Resources Association (ELRA).
- [10]Derek Lackaff and William J. Moner. 2016. Local languages, global networks: Mobile design for minority language users. In Proceedings of the 34th Annual International Conference on the Design of Communication, New York, NY, USA. Association for Computing Machinery.DOI
- [11]William Lane and Steven Bird. 2020. Interactive word completion for morphologically complex languages. In Proceedings of the 28th International Conference on Computational Linguistics, pages 4600–4611, Barcelona, Spain (Online). International Committee on Computational Linguistics.
- [12]William Lane, Atticus Harrigan, and Antti Arppe. 2022. Interactive word completion for Plains Cree. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3284–3294, Dublin, Ireland. Association for Computational Linguistics.
- [13]Jack Rueter. 2014. The livonian-estonian-latvian dictionary as a threshold to the era of language technological applications. Eesti ja soome-ugri keeleteaduse ajakiri. Journal of Estonian and Finno-Ugric Linguistics, 5(1):251–259.DOI
- [14]Jack Rueter and Mika Hämäläinen. 2020. Fst morphology for the endangered skol’t sami language. In Proceedings of the 1st Joint Workshop on Spoken Language Technology for Under-resourced languages (SLTU) and Collaboration and Computing for Under-Resourced Languages (CCURL), pages 250–257.arxiv.org/abs/2004.04803
- [15]Jack Rueter, Mika Hämäläinen, and Niko Partanen. 2020. Open-source morphology for endangered mordvinic languages. In Proceedings of Second Workshop for NLP Open Source Software (NLP-OSS), pages 94–100.DOI
- [16]Jack Rueter, Niko Partanen, Mika Hämäläinen, and Trond Trosterud. 2021. Overview of open-source morphology development for the komi-zyrian language: Past and future. In Proceedings of the Seventh International Workshop on Computational Linguistics of Uralic Languages, pages 29–39.DOI
- [17]Eddie Antonio Santos and Atticus Harrigan. 2020. Design and evaluation of a smartphone keyboard for Plains Cree syllabics. In Proceedings of the 1st Joint Workshop on Spoken Language Technologies for Under-Resourced Languages (SLTU) and Collaboration and Computing for Under-Resourced Languages (CCURL), pages 88–96, Marseille, France. European Language Resources Association.
- [18]Kayla Shames. 2025. Designing a digital keyboard for itunyoso triqui. In Proceedings of the Society for Computation in Linguistics 2025, pages 356–358, Eugene, Oregon. Association for Computational Linguistics.DOI
- [19]Seunghak Yu, Nilesh Kulkarni, Haejun Lee, and Jihie Kim. 2018. On-device neural language model based word prediction. In Proceedings of the 27th International Conference on Computational Linguistics: System Demonstrations, pages 128–131, Santa Fe, New Mexico. Association for Computational Linguistics.