Phonetic and Visual Priors for Decipherment of Informal Romanization

Maria Ryskina, Matthew R. Gormley, Taylor Berg-Kirkpatrick

Abstract

Informal romanization is an idiosyncratic process used by humans in informal digital communication to encode non-Latin script languages into Latin character sets found on common keyboards. Character substitution choices differ between users but have been shown to be governed by the same main principles observed across a variety of languages—namely, character pairs are often associated through phonetic or visual similarity. We propose a noisy-channel WFST cascade model for deciphering the original non-Latin script from observed romanized text in an unsupervised fashion. We train our model directly on romanized data from two languages: Egyptian Arabic and Russian. We demonstrate that adding inductive bias through phonetic and visual priors on character mappings substantially improves the model's performance on both languages, yielding results much closer to the supervised skyline. Finally, we introduce a new dataset of romanized Russian, collected from a Russian social network website and partially annotated for our experiments.

Introduction

In digital communication, speakers of languages with non-Latin scripts, such as Arabic or Russian, frequently employ "informal romanization" (e.g., Arabizi or Translit) for convenience. This practice is highly idiosyncratic and lacks standardized rules, as users creatively substitute characters based on phonetic or visual similarities. For example, a Russian speaker might represent the character ш as sh (phonetic) or w (visual).

Comparison of phonetic and visual romanization for the Russian word 'хорошо'.

For Natural Language Processing (NLP) systems, this variability presents a significant challenge. The lack of parallel corpora—paired examples of romanized and original text—makes supervised learning difficult. This research treats the problem as a decipherment task, aiming to automatically back-translate romanized text into its native script without explicit supervision.

Methodology

The proposed solution utilizes a noisy-channel model implemented as a cascade of Weighted Finite-State Transducers (WFSTs). The model architecture comprises two primary components:

  1. Transition Model: A character-level n-gram language model trained on native script text, defining the structure of "well-formed" Russian or Arabic.
  2. Emission Model: This component maps native characters to Latin characters. To overcome the absence of parallel data, the authors incorporate human-inspired inductive biases, or priors:
  3. Phonetic Priors: Based on common phonetic keyboard layouts.
  4. Visual Priors: Derived from "Unicode confusables"—characters that appear similar to the human eye.
Examples of phonetic and visual character mappings used as priors for Arabic and Russian.

The model is trained using a stepwise Expectation-Maximization (EM) algorithm. It begins with these priors and refines character mappings by analyzing large volumes of unpaired romanized text, seeking the transformations that produce the most natural-looking native text according to the language model.

Data and Experimental Results

The model was evaluated on two languages:

  • Egyptian Arabic: Utilizing the Arabizi portion of the LDC BOLT Phase 2 SMS/Chat dataset.
  • Russian: A new dataset scraped from the social network vk.com, with a portion manually annotated for evaluation.

Performance was measured using Character Error Rate (CER), where lower values indicate better performance.

Model Setup Arabic CER Russian CER
Unsupervised (Uniform Prior) 0.735 0.660
Unsupervised (With Priors) 0.377 0.212
Unsupervised Neural (UNMT) 0.791 0.242
Supervised "Skyline" 0.225 0.140

The results demonstrate that adding phonetic and visual priors provides a critical signal for the EM algorithm. In Russian, the unsupervised model with priors performed remarkably close to the supervised skyline. In Arabic, while the gap remains larger, the improvement over the uniform baseline is substantial. Notably, the WFST approach outperformed a state-of-the-art Unsupervised Neural Machine Translation (UNMT) baseline, suggesting that strict character-level constraints are highly effective for this task.

Discussion and Future Work

Analysis reveals that phonetic similarity is generally a stronger driver of user behavior than visual similarity in both languages. However, for Russian, the combination of both priors yielded optimal results.

Current limitations include the model's difficulty with complex many-to-many mappings (e.g., digraphs like ш → sh) and its assumption of a "global" set of rules, whereas informal romanization is often highly personalized. Future research could focus on user-specific adaptation and more nuanced visual similarity models beyond simple Unicode homoglyphs to further enhance decipherment accuracy.

Summary updated

BibTeX
@inproceedings{ryskina2020phonetic,
  author = {Maria Ryskina and Matthew R. Gormley and Taylor Berg-Kirkpatrick},
  title = {{Phonetic and Visual Priors for Decipherment of Informal Romanization}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.737},
}
Figure