Automatic Romanization of Arabic Bibliographic Records

Fadhl Eryani, Nizar Habash

Abstract

International library standards require cataloguers to tediously input Romanization of their catalogue records for the benefit of library users without specific language expertise. In this paper, we present the first reported results on the task of automatic Romanization of undiacritized Arabic bibliographic entries. This complex task requires the modeling of Arabic phonology, morphology, and even semantics. We collected a 2.5M word corpus of parallel Arabic and Romanized bibliographic entries, and benchmarked a number of models that vary in terms of complexity and resource dependence. Our best system reaches 89.3% exact word Romanization on a blind test set. We make our data and code publicly available.

Introduction

International library standards, such as the ALA-LC, mandate that records for non-Latin scripts be Romanized. This allows researchers and library users who lack specific language expertise to search for and identify materials. For Arabic, this task is particularly challenging because written Arabic is an "Abjad," typically omitting short vowels (diacritics).

Example of Arabic bibliographic entries and their Romanized counterparts across various MARC tags.

To Romanize a word like ktb, a system must disambiguate between kataba (he wrote), kutub (books), or katib (writer). This requires sophisticated modeling of phonology, morphology, and semantics—for instance, identifying proper nouns to apply correct capitalization. Historically, this has been a manual, expensive, and error-prone process performed by specialist librarians.

Methodology

The researchers benchmarked several approaches to automate this process:

  1. Rule-Based Models: These baselines utilize regular expressions and the MADAMIRA morphological analyzer. MADAMIRA helps recover "hidden" diacritics and provides English glosses, which are crucial for deciding on capitalization and hyphenation for clitics like the definite article "al-".
  2. Statistical Models (MLE Simple): A Maximum Likelihood Estimate model that learns the most frequent Romanization for a given Arabic string from the training data.
  3. Neural Models (Seq2Seq): A character-level encoder-decoder model using Gated Recurrent Units (GRUs) with attention, treating Romanization as a translation task.
  4. Hybrid Systems (Seq2Seq + MLE Morph): To address "hallucinations" or dropped words in neural outputs, the authors developed a hybrid system. It aligns Seq2Seq output with the Arabic input and uses statistical or morphological models to "patch" any missing tokens.

Dataset

The study utilized a massive new corpus of parallel Arabic and Romanized entries compiled from MARC (Machine-Readable Cataloging) records from the Library of Congress, the University of Michigan, and NYU Abu Dhabi. The dataset comprises approximately 2.5 million words across 600,000 entries. To ensure high quality, the researchers focused on "safe tags"—bibliographic fields like authors, titles, and subjects that are consistently Romanized.

Results and Discussion

The performance of the models was evaluated using Exact Match accuracy. The results demonstrate that morphology-aware rules significantly outperform simple character rules, jumping from 16.1% to 67.4% accuracy. This highlights the necessity of solving internal grammar for successful Romanization.

Performance comparison of various models on Dev and Test sets, showing the superiority of the hybrid Seq2Seq + MLE Morph approach.

While the neural Seq2Seq model was powerful, the hybrid Seq2Seq + MLE Morph system achieved the best performance with 89.3% exact word accuracy on the test set. Interestingly, the statistical MLE model performed remarkably well when provided with sufficient data, even outperforming the neural model in low-resource scenarios.

An error analysis revealed that 52% of the "errors" made by the best model were actually due to inconsistencies or mistakes in the human-written "Gold" standard. This suggests the system is approaching the ceiling of human performance in this specialized domain.

Conclusion

This work presents the first successful system for the automatic Romanization of Arabic bibliographic records. While the 89.3% accuracy is a significant milestone, the remaining errors—often involving vowel predictions or consonant doubling—still necessitate human oversight. Future research will focus on developing real-time interfaces for librarians and leveraging bibliographic data to improve other Arabic NLP tasks like Named Entity Recognition and automatic diacritization.

Summary updated

Abstract

International library standards require cataloguers to tediously input Romanization of their catalogue records for the benefit of library users without specific language expertise. In this paper, we present the first reported results on the task of automatic Romanization of undiacritized Arabic bibliographic entries. This complex task requires the modeling of Arabic phonology, morphology, and even semantics. We collected a 2.5M word corpus of parallel Arabic and Romanized bibliographic entries, and benchmarked a number of models that vary in terms of complexity and resource dependence. Our best system reaches 89.3% exact word Romanization on a blind test set. We make our data and code publicly available.
BibTeX
@inproceedings{eryani2021automatic,
  author = {Fadhl Eryani and Nizar Habash},
  title = {{Automatic Romanization of Arabic Bibliographic Records}},
  booktitle = {EACL},
  year = {2021},
}
Figure