Transliteration

On this page 7

Transliteration is the conversion of text from one writing system (script) into another, so that the same words are represented with different characters while their language and meaning stay unchanged. In Speech & language AI, part of artificial intelligence, transliteration models turn names, addresses and queries between scripts such as Cyrillic, Arabic, Devanagari and Latin, which makes multilingual search, input methods and entity matching possible.

Transliteration is distinct from translation, which changes the language, and from transcription, which records pronunciation. Modern systems combine rule-based romanization standards with neural sequence-to-sequence models that learn the many-to-many mappings between characters that real users produce.

How transliteration differs from translation and transcription

Transliteration answers the question how a word is written in another script, not what it means. The Russian name Чайковский becomes Chaikovsky or Tchaikovsky in Latin letters, but it remains a Russian name. Translation would replace a word with a different word, and phonetic transcription would describe sounds with a notation such as the International Phonetic Alphabet.

Practitioners also separate strict transliteration, which is reversible letter by letter, from practical romanization, which favors readability and accepts information loss. The table below contrasts the related operations that language systems often confuse.

OperationWhat changesExample
TransliterationScript onlyМосква to Moskva
TranslationLanguage and wordsМосква to Moscow
Phonetic transcriptionSpelling to sound notationMoskva to /mɐˈskva/
Back-transliterationScript, back to the originalMoskva to Москва
Grapheme-to-phoneme conversionLetters to phoneme sequenceText to speech input
Transliteration and related text conversions

Standards and the many-to-many mapping problem

Formal transliteration relies on published schemes. Examples include ISO 9 for Cyrillic, ISO 233 for Arabic, Hepburn and Kunrei-shiki for Japanese kana, Pinyin for Mandarin, and IAST or ISO 15919 for Indic scripts. Each scheme defines a mapping table and conventions for diacritics, and several are designed to be fully reversible.

Real text rarely follows a single standard. One source character can map to several target sequences, and several sources can collapse into one target. Users typing Hindi on a Latin keyboard may write the same word in five spellings, so systems must handle informal or ad hoc romanization. The table below lists typical sources of ambiguity.

Source of ambiguityExampleConsequence for models
Missing vowelsArabic and Hebrew abjads omit short vowelsModel must infer vowels from context
Competing standardsTchaikovsky, Chaikovsky, ČajkovskijSeveral correct outputs exist
Inherent vowel rulesDevanagari schwa deletionOutput depends on word structure
Logographic scriptsChinese characters with many readingsRequires word-level reading choice
Loanwords and namesEnglish names in Japanese katakanaMapping follows sound, not spelling
Why transliteration is ambiguous

Because of this ambiguity, evaluation uses top-k accuracy and character error rate rather than exact-match accuracy alone, and test sets often accept several valid references.

How transliteration models work

Early systems used hand-written rules and finite-state transducers, which are fast and predictable but cover informal spellings poorly. Statistical approaches then learned character alignments with joint source-channel models and weighted transducers, scored by character n-gram language models.

Current systems treat transliteration as character-level sequence-to-sequence learning. Encoder-decoder models with attention, and later Transformer models, read the source characters and generate target characters one by one. Large multilingual language models can also transliterate with prompting, although they sometimes translate instead of transliterating or invent spellings for rare names.

ApproachStrengthsWeaknesses
Rule-based tablesDeterministic, reversible, no data neededFails on informal input
Finite-state transducersFast, easy to constrainRules grow complex quickly
Statistical alignment modelsLearn from name pairsLimited context window
Neural seq2seq and TransformersHandle context and variantsNeed parallel data, may hallucinate
Large language modelsBroad script coverageInconsistent, can translate by mistake
Approaches to automatic transliteration

Training data usually comes from parallel name lists, Wikipedia title pairs and logs of romanized typing. For low-resource languages, data augmentation through rule-based synthesis and transfer from related scripts is common practice.

Decoding strategy matters as much as architecture. Beam search returns a ranked list of candidates, which suits input methods and search, while constrained decoding against a dictionary of known names reduces invented spellings. Many deployed systems combine a neural model with a rule-based fallback for scripts or characters the model has rarely seen.

Where transliteration is used in language systems

Transliteration is rarely a product by itself; it is a component inside larger pipelines. Its typical uses are listed below, together with the design choice that matters most in each case.

ApplicationDirectionKey design choice
Input method editorsRomanized to native scriptRank candidates by context
Cross-script searchBoth directionsNormalize to one canonical form
Named entity matchingNative to LatinAccept many spelling variants
Machine translation of namesSource to target scriptTransliterate instead of translating names
Speech pipelines with code-switchingMixed scripts to one scriptConsistent output for downstream models
Applications and key design choices

In speech recognition for languages such as Hindi, transcripts often mix Devanagari with English words in Latin script. Normalizing everything to one script before computing word error rate prevents inflated error figures caused only by spelling choices.

Limitations and common mistakes

Most failures come from treating transliteration as a solved one-to-one lookup. The following issues appear repeatedly in production systems.

  • Ignoring the target audience: a German reader expects Tschaikowski, an English reader expects Tchaikovsky.
  • Losing reversibility: dropping diacritics makes back-transliteration ambiguous and can merge distinct names.
  • Mixing standards in one database: inconsistent romanization breaks deduplication and search.
  • Trusting language models blindly: they may substitute a known translation, such as Moscow for Moskva.
  • Skipping Unicode normalization: composed and decomposed characters look identical but compare as different strings.

A sound engineering practice is to store the original script as the source of truth and generate transliterations on demand, recording which scheme produced each form. This keeps records auditable, allows a later switch of standards without data loss, and lets search systems index several variants of the same name while displaying the one that suits each reader. Regular evaluation on fresh user data is also essential, because informal spelling habits drift over time.

Put simply

Transliteration means writing the same word with a different alphabet. The word itself does not change. Only the letters change.

Think of a Greek street sign rewritten in Latin letters so that a visitor can read it aloud. The visitor still sees a Greek name, not an English one. Computers do the same thing when they turn Russian, Arabic or Hindi names into Latin letters, or the other way around. The hard part is that people spell things in many ways. A good system guesses the most likely spelling and accepts the others.

In practice

An online retailer in India receives many product searches typed in romanized Hindi, such as “kurta” spelled as “kurtaa” or “kurtha”, while its catalog lists items in both Devanagari and English. Exact keyword matching misses a large share of these queries, and customers see empty result pages.

The search team adds a Transformer-based transliteration model trained on query logs and catalog title pairs. Each query is converted into its top three Devanagari candidates, and all variants are mapped to a canonical form in the index. After launch, the share of queries with zero results drops noticeably, and the team monitors top-3 accuracy on a held-out name list to catch regressions before each model update.