1. Introduction
Transliterating the Tatar language from Cyrillic to Latin scripts presents a unique challenge due to its status as a low-resource language with significant "intra-word code-switching." Modern Tatar heavily incorporates Russian loanwords, often mixing a Russian root with a Tatar grammatical suffix. Because Tatar and Russian follow distinct phonetic and orthographic rules, a simple character-for-character swap is insufficient. Applying Tatar rules to Russian loanwords often results in Latin text that appears incorrect to native speakers. This research presents a high-accuracy Cyrillic-to-Latin transliterator that utilizes subword-level language identification to intelligently apply the appropriate rules.
2. Methodology
The proposed system employs a "hybrid" approach, combining linguistic rules with a machine-learning classifier. The pipeline consists of three primary stages:
- Subword Segmentation: Words are decomposed into smaller units using Byte Pair Encoding (BPE). This allows for the independent analysis of roots and suffixes, which is crucial for handling mixed-language words.
- Language Identification (LID): A supervised fastText classifier is trained to label each subword as either Tatar or Russian. Training data was sourced from Tatar and Russian translations of the Qur'an to ensure high linguistic purity.
- Rule-Based Transliteration: Based on the LID label, the system applies language-specific transliteration rules to each subword. The units are then reassembled into a complete Latin-script word.
This language-agnostic approach avoids the need for complex morphological analysis or massive dictionaries, making it highly adaptable for low-resource contexts.
3. Experimental Setup
The model was trained on monolingual Tatar and Russian texts (approximately 20,000 words each). Evaluation was conducted using a set of 700 sentences (8,466 words) from the Corpus of Written Tatar. A "gold standard" Latin version of these sentences, verified by a native speaker, served as the ground truth for performance testing.
4. Results
The "tt-ru hybrid" model significantly outperformed existing rule-based tools across all evaluated metrics. It achieved a word accuracy (ACC) of 99.3% and a Character Error Rate (CER) of 0.007, indicating that only 7 out of every 1,000 characters were incorrectly transliterated.
In specific tests targeting Russian morphemes, the hybrid model correctly transliterated 78.1% of words, a substantial improvement over the 46.7% achieved by a Tatar-only baseline.
5. Qualitative Analysis
The hybrid model's strength lies in its ability to recognize the "flavor" of subwords. For instance, it correctly identifies Russian words like zakon (law) and sovet (council) and applies Russian phonetics, whereas simpler tools produce "Tatar-ized" versions (e.g., zaqon or sowetı) that are orthographically incorrect.
However, the system is not without limitations. The classifier occasionally misidentifies Tatar subwords as Russian, leading to errors such as transliterating soqlanıp as soklanıp.
6. Conclusion
This research demonstrates that subword-level language identification is a powerful tool for transliterating code-switched texts in low-resource settings. By using a lightweight classifier like fastText, the system achieves high accuracy without the need for massive datasets. Future work will focus on incorporating contextual information to improve LID accuracy and exploring the standardization of Latin orthography for Tatar.
Summary updated