Read the paper
LipiMix: Transliteration of Code-Mixed Romanized Nepali-English Text to Devanagari Script
on GitHub
A data-engineering pipeline and byte-level model for converting code-mixed Romanized Nepali–English social-media text into Devanagari, reaching 5.96% character error rate on 500 test sentences and beating existing public tools.
| System | CER | WER |
| ByT5 Norm. (Ours) | 5.96 | 21.85 |
| ByT5 Raw (Ours) | 7.24 | 24.39 |
| NepaliXlit Patel et al. (2026) | 9.22 | 43.68 |
| Google Transliteration Google (2026) | 20.76 | 60.88 |
| Easy Nepali Typing (2026) | 21.22 | 61.56 |
| Ashesh Unicode Ashesh (2026) | 21.93 | 69.07 |
| Kokil Unicode Kokil (2026) | 27.51 | 78.45 |
| Nepali Unicode (2026) | 30.87 | 82.71 |
| Model | Data | CER | WER | Char. Acc. | Word Acc. |
| ByT5 | Aug. | 5.96 | 21.85 | 94.04 | 78.15 |
| Orig. | 6.03 | 23.23 | 93.97 | 76.77 | |
| mT5 | Aug. | 13.50 | 31.52 | 86.50 | 68.48 |
| Orig. | 17.45 | 37.20 | 82.55 | 62.80 |
Going deeper
| Base Word | Variants |
| baachna | bachna, bachnaaa, bachnah, bachanah, bachhanah, baachnah |
| bachaauna | bachauna, bchaauna, bchauna, bhachauna, bachhauna |
| milaaideu | melaideu, milaedeuu, milaideu |
| khuwaayera | khuwayera, khwayera, khuwayra, kwayara, khwwayara |
Imagine a country where everyone texts in a loose phonetic version of their own alphabet—like spelling English words however they sound to you. One word for "it will happen" gets typed huncha, hunchha, hunxa, and many other ways. On top of that, people freely mix in English words mid-sentence. No spell-checker or translator knows what to do with this.
The authors built a pronunciation-based filing cabinet. Every wild spelling gets a short code based on how it sounds, and all spellings with the same code go in the same drawer. Each drawer gets one official spelling. They used this cabinet two ways: to generate more training examples by swapping spellings around, and to tidy up each message before the AI model sees it.
They then trained a small AI model that reads raw bytes instead of chopping words into pieces. On 500 real social-media comments it gets about 94 out of 100 characters right—better than every other public tool. But it still stumbles when two words sound alike but mean different things, and it only saw "small" model sizes because of a limited computing budget.
The abstract, word for word, with the seven densest phrases unpacked.
Informal Nepali digital communication heavily relies on code-mixed text, interleaving Romanized Nepali with English within the same utterance1. These highly inconsistent and non-standardized writing styles remain challenging for NLP systems trained on formal Devanagari corpora. We present LipiMix, a low-resource system for transliterating code-mixed Romanized Nepali-English text into Devanagari script. Our contributions are threefold. First, we build a large-scale corpus by collecting 2.77M+ YouTube and Facebook comments, retaining 444K+ usable Romanized sentences after cleaning, and constructing a Phonetic Variant Dictionary (PVD) that maps 92.7K+ spelling variants to 15.6K+ canonical forms2. Second, we create a manually annotated parallel corpus of 20.5K sentence pairs, expanded to 85.8K+ via PVD-based augmentation3. Third, we fine-tune ByT5 and mT5 seq2seq models4 on this corpus. Our best model, ByT5 fine-tuned on augmented data, achieves CER of 5.96% and WER of 21.85%5, outperforming several publicly available Nepali transliteration systems6. Homophonic ambiguity and diacritic errors remain key limitations7. All the datasets, model checkpoints, and code are publicly released at https://github.com/oceangiri23/Transliteration.
Two lines of prior work converge here: Indic transliteration resources and code-mixed NLP.
Read five parts, in this order.
Skip Appendices A–B unless you need collection stats or Nepali phoneme details. Skip Appendix C unless you care about English-token post-processing.
If the gains are smaller than they look, these places show why.
Data augmentation consistently reduced error rates across both architectures, with ByT5 on augmented data performing best (5.96% CER, 21.85% WER). The gain differs by architecture: mT5 improves by 3.95 CER and 5.68 WER points, whereas ByT5 improves by only 0.07 CER (6.03% → 5.96%) and 1.38 WER points (23.23% → 21.85%). The ByT5 CER difference is small enough to fall within run-to-run variation; we report no variance or significance tests. Appendix E (Table 11) suggests that inference-time normalization and augmentation draw on the same PVD and thus address overlapping spelling variation, leaving little headroom for ByT5. Example outputs from all four model variants are shown in Appendix F (Table 12).
We evaluate all models on a raw social media test set of 500 sentences, annotated separately from the original 20.5k parallel dataset, covering diverse homophones and orthographies. This single test set is used for all results reported in Tables 3–5 and Table 11; the 1,000 held-out pairs of the parallel corpus are used for validation.
Romanized strings mapping to multiple Devanagari words cause semantic errors: kala → कला (art) vs. काला (black); bal → बल (strength) vs. बाल (hair); tato → तातो (hot) vs. टाटो (mark). Resolving these requires discourse context beyond the sentence level, a known challenge in low-resource transliteration Roark et al. (2020).
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all