Skip to main content
QUICK REVIEW

[Paper Review] Arabizi Detection and Conversion to Arabic

Kareem Darwish|arXiv (Cornell University)|Jun 28, 2013
Natural Language Processing TechniquesComputer Science16 references6 citations
TL;DR

This paper presents a sequence labeling approach using Conditional Random Fields (CRF) with word and sequence-level features to detect Arabizi—Arabic text written in Latin script—within mixed English-Arabizi text, achieving 98.5% detection accuracy. For conversion, it combines transliteration mining with a large Arabic language model, attaining 88.7% accuracy in mapping Arabizi to correct Arabic script, with most errors stemming from spelling and morphological variants of ground truth forms.

ABSTRACT

Arabizi is Arabic text that is written using Latin characters. Arabizi is used to present both Modern Standard Arabic (MSA) or Arabic dialects. It is commonly used in informal settings such as social networking sites and is often with mixed with English. In this paper we address the problems of: identifying Arabizi in text and converting it to Arabic characters. We used word and sequence-level features to identify Arabizi that is mixed with English. We achieved an identification accuracy of 98.5%. As for conversion, we used transliteration mining with language modeling to generate equivalent Arabic text. We achieved 88.7% conversion accuracy, with roughly a third of errors being spelling and morphological variants of the forms in ground truth.

Motivation & Objective

  • To address the challenge of detecting Arabizi in mixed English-Arabizi text, especially in informal social media contexts where code-switching is common.
  • To develop a robust method for converting Arabizi to proper Arabic script, regardless of whether it encodes Modern Standard Arabic or Arabic dialects.
  • To overcome the lack of standardized spelling in Arabizi and dialectal Arabic by leveraging language modeling and transliteration mining.
  • To create a system that enables downstream NLP processing and improves readability and searchability of informal Arabic text.

Proposed method

  • Employed Conditional Random Fields (CRF) for sequence labeling, using word-level and sequence-level features to detect Arabizi in context.
  • Integrated character n-gram and sub-word features to improve discrimination between English and Arabizi words, especially for ambiguous cases.
  • Used transliteration mining to generate candidate Arabic equivalents for each Arabizi word based on phonetic and orthographic similarity.
  • Combined character-level transliteration probabilities with a trigram language model to rank and select the most contextually appropriate Arabic translation.
  • Trained and evaluated the system on a dataset of 1,385 Arabizi words from 127 tweets, using both out-of-context and in-context evaluation strategies.
  • Applied Mean Reciprocal Rank (MRR) for candidate ranking evaluation and reported accuracy with respect to the correct transliteration in context.

Experimental results

Research questions

  • RQ1Can a sequence labeling model effectively detect Arabizi in mixed English-Arabizi text where word boundaries and language shifts are ambiguous?
  • RQ2How accurately can Arabizi be converted to Arabic script when there is no standardized spelling for dialectal forms or transliteration variants?
  • RQ3To what extent does incorporating a language model improve the accuracy of transliteration selection in context compared to isolated word-level mapping?
  • RQ4What proportion of errors in Arabizi-to-Arabic conversion are due to spelling variants, morphological differences, or incorrect language identification?
  • RQ5Can transliteration mining combined with language modeling outperform dictionary-based or rule-based approaches in handling the morphological and phonetic complexity of Arabizi?

Key findings

  • The CRF-based detection model achieved 98.5% accuracy in identifying Arabizi within mixed-language text, demonstrating strong performance on real-world social media data.
  • The out-of-context evaluation achieved a Mean Reciprocal Rank (MRR) of 0.84, indicating that the correct Arabic transliteration was ranked first in 77.1% of cases.
  • The in-context evaluation showed that incorporating a trigram language model improved transliteration accuracy to 88.7%, reducing errors from 157 to 157 out of 1,385 words.
  • Of the 157 incorrect predictions, 91 were unrelated words, and 46 were spelling or morphological variants of the correct form, suggesting room for improvement in handling dialectal variation.
  • The system failed to generate any candidate for 68 words (4.9% of test set), primarily due to spelling variants, morphological mismatches, or rare/infrequent forms not present in the training data.
  • The authors plan to publicly release their training and test data to support further research in Arabizi processing and Arabic NLP.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.