Fast and Robust Arabic Error Correction System
Paper · 2014 · Michael Nawar and Moheb Ragheb
Summary
The paper presents a system built for the EMNLP 2014 shared task on automatic correction of Arabic text, using the QALB corpus. The authors argue that classic spellers are slow because they enumerate many candidate variants for each faulty word and then rank them, and that such spellers ignore the score of the system as a whole. Their alternative treats whole correction rules as the units to rank. They hand-design families of rules and estimate each rule's reliability on the training data as the share of its edits that turn out correct. The rule families cover morphological normalisation with BAMA-v2.0, colloquial-to-standard replacements, single-character typos, split and merged words, punctuation, a genitive agreement fix, and formatting clean-up. At test time, rules are applied in order of reliability. A running estimate of precision, recall and F-score, computed without gold labels, decides when to stop. The system scored F = 0.6817 on development data and 0.6573 on test data under the M2 scorer. It is presented as a fast, transparent alternative to candidate-generation correctors.
Key points
- Data is the QALB corpus from the shared task. The organisers did not release the tools behind the supplied features, so the authors computed their own features.
- Each rule's probability is its training-set precision: correct edits divided by performed edits. Pure formatting rules (removing kashida, collapsing repeated letters, putting commas between numbers) were manually given probability 1.
- Expected gold edits on the test set are estimated as the training error rate multiplied by the number of test words. Each applied rule adds N performed edits and p·N expected correct edits. The loop halts once the estimated F-score falls.
- BAMA-v2.0 drives several rule families:
- It normalises alef/hamza, taa marbouta/haa and yaa/alef maqsura confusions, changing a word only when all of its analyses share one form.
- It validates single-character replace, insert, delete and transpose edits.
- It validates word splits.
- Evaluation used the M2 scorer, giving F = 0.6817 on development data and 0.6573 on test data. Punctuation is acknowledged as the weakest area.
Interesting ideas
- I1. Rank rules by their measured precision and apply them greedily, stopping when a label-free estimate of F-score (prior error rate plus per-rule precision) stops improving; this gives a principled cutoff without test annotations.
- I2. Generate one candidate edit at a time and accept it only if a morphological analyzer or lexicon recognises the result, skipping words known to be correct; this avoids full candidate enumeration.
- I3. Change a token only when every analysis returned by the analyzer agrees on the same surface form, and otherwise leave it untouched; this is a cheap unanimity guard against harmful edits.
- I4. Estimate reliability per concrete instance of a rule, such as a specific character pair, rather than per rule type, since identical mechanics can differ widely in accuracy.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (learn): self-induced repair rules could be ordered by precision measured on silver data, and adding further rules would stop once the projected F on unlabelled text begins to decline.
- I2 (tokens): a typo-normalisation pass before tagging could try edits one by one and keep only forms the en lexicon or morphology accepts, with a protected list of known-good words.
- I3 (tokens): the lemmatizer could commit to a normalised form only when all readings agree, passing genuine ambiguity to the parser instead of guessing.
- I4 (learn): confidence for repair rules or UD dialect conversions could be stored for each specific pattern, so that a weak instance can be dropped without discarding the whole rule.
Institutions
Fields, topics and concepts
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 16,667 worksArtificial Intelligence · 16,194 worksArts and Humanities · 16,039 worksLanguage and Linguistics · 15,891 works
🧭 Topics 1Research subjects and languages the work is about.Semitic languages · 2,908 works
Cite
Cite as Michael Nawar and Moheb Ragheb. 2014. Fast and Robust Arabic Error Correction System. Proceedings of the EMNLP 2014 Workshop on Arabic Natural Language Processing (ANLP).
@inproceedings{nawar2014fast,
title = {{Fast and Robust Arabic Error Correction System}},
author = {Michael Nawar and Moheb Ragheb},
booktitle = {Proceedings of the EMNLP 2014 Workshop on Arabic Natural Language Processing (ANLP)},
year = {2014},
doi = {10.3115/v1/w14-3619},
url = {https://doi.org/10.3115/v1/w14-3619}
}References
- Mohamed I. Alkanhal, Mohammed A. Al-Badrashiny, Mansour M. Alghamdi, and Abdulaziz O. AlQabbany. 2012. Automatic Stochastic Arabic Spelling Correction with Emphasis on Space Insertions and Deletions. IEEE Transactions on Audio, Speech & Language Processing , 20:2111–2122. ↗
- Michele Banko and Eric Brill, 2001. Scaling to very very large corpora for natural language disambiguation. In Proceedings of 39th Annual Meeting of the Association for Computational Linguistics . Toulouse, France.
- Chiraz Ben Othmane Zribi and Mohammed Ben Ahmed. 2003. Efficient Automatic Correction of Misspelled Arabic Words Based on Contextual Information. In Proceedings of the Knowledge-Based Intelligent Information and Engineering Systems Conference , Oxford, UK. find
- Tim Buckwalter. 2010. Buckwalter Arabic Morphological Analyzer Version 2.0. Linguistic Data Consortium, University of Pennsylvania, 2002. LDC Catalog No.: LDC2004L02. ISBN 1-58563-324-0. find
- Andrew Carlson and Ian Fette. 2007. Memory-based context-sensitive spelling correction at web scale. In Proceedings of the IEEE International Conference on Machine Learning and Applications (ICMLA). find
- Daniel Dahlmeier and Hwee Tou Ng. 2012. Better evaluation for grammatical error correction. In Proceeding of the 2012 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. find
- Andrew R. Golding and Dan Roth. 1999. A Winnow based approach to context-sensitive spelling correction. Machine Learning , 34(1-3):107–130. ↗
- Bassam Haddad and Mustafa Yaseen. 2007. Detection and Correction of Non-Words in Arabic: A Hybrid Approach. International Journal of Computer Processing Of Languages (IJCPOL). ↗
- Ahmed Hassan, Sara Noeman, and Hany Hassan. 2008. Language Independent Text Correction using Finite State Automata. In Proceedings of the International Joint Conference on Natural Language Processing (IJCNLP 2008). find
- Karen Kukich. 1992. Techniques for Automatically Correcting Words in Text. ACM Computing Surveys , 24(4). ↗
- Behrang Mohit, Alla Rozovskaya, Nizar Habash, Wajdi Zaghouani, and Ossama Obeid, 2014. The First shared Task on Automatic Text Correction for Arabic. In Proceedings of EMNLP workshop on Arabic Natural Language Processing . Doha, Qatar. find
- Khaled Shaalan, Rana Aref, and Aly Fahmy. 2010. An approach for analyzing and correcting spelling errors for non-native Arabic learners. In Proceedings of Informatics and Systems (INFOS). find
- Wajdi Zaghouani, Behrang Mohit, Nizar Habash, Ossama Obeid, Nadi Tomeh, Alla Rozovskaya, Noura Farra, Sarah Alkuhlani, and Kemal Oflazer. 2014. Large Scale Arabic Error Annotation: Guidelines and Framework. In Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC’14) , Reykjavik, Iceland. ↗
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/nawar-2014-fast-robust-arabic-error-correction/