Script Normalization for Unconventional Writing of Under-Resourced Languages in Bilingual Communities

Sina Ahmadi, Antonios AnastasopoulosACL 2023

Introduction

In many bilingual communities, speakers of under-resourced languages often lack digital support for their native scripts or find it more convenient to use the script of an administratively dominant neighbor. For instance, a Kashmiri speaker might use an Urdu script, or a Sorani Kurdish speaker might employ Persian orthography. This phenomenon leads to "unconventional writing"—text that is phonetically native but orthographically "noisy."

Standard NLP tools, typically trained on clean, conventional data, often fail on such inputs. This paper introduces a transformer-based approach to script normalization: the process of automatically converting unconventional, noisy text back into its standard, conventional form. By training on synthetically generated noisy data, the authors demonstrate significant performance gains in downstream tasks like language identification and machine translation.

Venn diagram of character overlaps across various Perso-Arabic scripts.

Methodology

The authors frame script normalization as a character-level machine translation task. Due to the scarcity of real-world parallel data (unconventional vs. conventional), they developed a pipeline to generate synthetic training data:

  1. Script Mapping: Rule-based mappings were created between the conventional script of the source language and the dominant unconventional script.
  2. Character-Alignment Matrix: Using the Needleman-Wunsch algorithm, the authors identified spelling pairs between languages to capture practical character substitutions.
  3. Noise Injection: Clean sentences from Wikipedia and news crawls were modified by replacing characters based on the alignment matrix at varying noise levels (20% to 100%).
  4. Transformer Model: A character-level encoder-decoder model (using the JoeyNMT framework) was trained to "translate" the noisy synthetic text back into its clean form.

Experimental Setup

The study covers 12 language pairs involving variants of the Perso-Arabic script. Source languages include Azeri Turkish, Mazanderani, Gilaki, Sorani Kurdish (CKB), Kurmanji Kurdish (KMR), Gorani, Kashmiri (KAS), and Sindhi (SND). Dominant scripts used for unconventional writing include Persian (FAS), Arabic (ARB), and Urdu (URD).

Evaluation was conducted on synthetic test sets, a real-world set of 100 manually normalized Sorani Kurdish social media sentences, and downstream tasks including language identification (Tatoeba dataset) and neural machine translation (FLORES-200).

Analysis of Script Similarity

A key contribution of this work is the introduction of the "script ratio" metric, which quantifies the similarity between two scripts. The authors found that for scripts with high similarity (high ratio), simple "copy" baselines perform adequately. However, as scripts diverge (low ratio), the normalization model provides a substantial advantage.

Relationship between Script Ratio and BLEU scores across different language pairs.

The results suggest that synthetic noise is a high-fidelity proxy for actual human behavior. Even models trained solely on synthetic data performed remarkably well on real social media text, indicating that rule-based character substitution captures the essence of unconventional writing.

Key Results

  • Script Normalization: On real-world Sorani Kurdish data, the model boosted BLEU scores from 1.2 to 20.1 (for Persian script) and 0.4 to 12.7 (for Arabic script) compared to unnormalized text.
  • Language Identification: The model significantly outperformed the standard fastText baseline in noisy settings. At 100% noise, the proposed model maintained an F1 score of 0.89, while fastText dropped to 0.37.
  • Machine Translation: Normalization proved to be a critical pre-processing step. In NMT tasks (e.g., Sorani to English), the model recovered nearly 20 BLEU points that were otherwise lost due to script noise, allowing models like NLLB to function effectively on unconventional input.

Limitations and Future Work

While successful, the approach faces several challenges. The reliance on synthetic data may miss complex human errors beyond character replacement, such as typos or the omission of zero-width non-joiners (ZWNJ). Additionally, the character-level approach might struggle with word-boundary issues in morphologically rich languages. Future research aims to expand this methodology to other scripts (e.g., Brahmic) and evaluate performance on tasks like named-entity recognition (NER) and part-of-speech tagging.

Summary updated

BibTeX
@inproceedings{ahmadi2023script,
  author = {Sina Ahmadi and Antonios Anastasopoulos},
  title = {{Script Normalization for Unconventional Writing of Under-Resourced Languages in Bilingual Communities}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.809},
}
Figure