MADARi: A Web Interface for Joint Arabic Morphological Annotation and Spelling Correction
Paper · 2018 · Ossama Obeid, Salam Khalifa, Nizar Habash et al.
Summary
MADARi is a web-based tool for annotating social-media Arabic, which is heavily dialectal and full of spelling errors. Earlier Arabic annotation tools handled spelling correction, POS tagging and diacritization separately. Chaining those tools lets mistakes from one layer leak into the next. MADARi instead lets annotators fix spelling and annotate morphology in one interface, switching freely between the two. The morphology layer covers proclitics, baseword and enclitics, plus POS tags, features, lemma, English gloss and dialect label. Spelling is normalized to the CODA conventions. MADAMIRA pre-fills every field so annotators mostly confirm or adjust its suggestions. The tool can also query a multi-dialect analyzer and show previously submitted analyses. A separate management interface lets a lead annotator assign, track and grade documents remotely across many annotators. The architecture reuses MANDIAC's client-server design and hybrid SQL/JSON storage, but stores data per sentence so that large files stay fast. The authors also report a user study with the system. The work matters because it supports building dialectal Arabic morphological corpora for the MADAR project.
Key points
- The tool is named after the MADAR project (Multi-Arabic Dialect Annotations and Resources). It annotates tokenization, POS, lemma, gloss and dialect, using the CAMEL POS tag set and features.
- Spelling correction means conventionalizing dialectal text to the CODA standard. Edits are token-based, an approach inherited from QAWI: arrow buttons merge a token with its neighbour, and inserting spaces in a pop-up splits it.
- Its design borrows from three earlier tools:
- DIWAN contributed pre-computed analyses and applying one analysis to many occurrences.
- QAWI contributed exact recording of every edit.
- MANDIAC contributed the extensible SQL/JSON storage.
- Documents are stored one sentence per row rather than one document per row. Saving therefore rewrites only the JSON of the sentences that changed.
- MADAMIRA pre-computes the analyses. Built-in rewrite rules handle simple detokenization, and annotators can override the surface form by hand (e.g., w+ jAbwA +hA → wjAbwhA).
Interesting ideas
- I1. Doing spelling correction and morphological disambiguation in one place, with free back-and-forth, keeps a wrong early decision from silently corrupting later layers.
- I2. Splitting a word into clitics is not simply the reverse of joining them, because orthographic rewrite rules apply at the boundaries; MADARi keeps both the segmented form and an explicit detokenized form, auto-generated by rules but editable.
- I3. Pre-filling every field with an automatic analyzer's output turns annotation into verification, and a per-word "validated" flag separates confirmed items from untouched suggestions.
- I4. Showing all occurrences of the same written form in the document and letting one analysis apply to many speeds up annotation and enforces consistency.
- I5. Storing data per sentence with a flexible JSON payload lets new annotation layers be added with almost no back-end change and keeps saves cheap.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (tokens): Let the tokenizer, spelling-normalizer and tagger revise each other on noisy input instead of running as a fixed pipeline, and record which joint decision was made so it stays explainable.
- I2 (back): When generating text from the graph, store contraction and boundary rules explicitly (e.g., "do + n't", "a/an") as a reversible rule table rather than plain concatenation.
- I3 (learn): In silver data, carry a per-token flag distinguishing witness-parser defaults from LLM-teacher or human-confirmed labels, so training and evaluation can weight or exclude unverified items.
- I4 (learn): Group repeated word forms or constructions across silver data and review them as a batch, so a single repair rule fixes every instance consistently.
- I5 (world): Store per-sentence analyses (tree, frames, world deltas) as independent extensible records, so new layers can be added and single sentences re-analysed without rewriting the whole document.
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 3Research subjects and languages the work is about.Semitic languages · 2,908 worksMorphology · 405 worksGrammatical error correction & learner language · 156 works
Cite
Cite as Ossama Obeid, Salam Khalifa, Nizar Habash, Houda Bouamor, Wajdi Zaghouani and Kemal Oflazer. 2018. MADARi: A Web Interface for Joint Arabic Morphological Annotation and Spelling Correction. Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018).
@inproceedings{obeid2018madari,
title = {{MADARi: A Web Interface for Joint Arabic Morphological Annotation and Spelling Correction}},
author = {Ossama Obeid, Salam Khalifa, Nizar Habash, Houda Bouamor, Wajdi Zaghouani and Kemal Oflazer},
booktitle = {Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018)},
year = {2018},
doi = {10.63317/5nejcfwotfzc},
url = {https://doi.org/10.63317/5nejcfwotfzc}
}References
- Al-Shargi, F. and Rambow, O. (2015). DIWAN: A Dialectal Word Annotation Tool for Arabic. In Proceedings of the Second Workshop on Arabic Natural Language Processing, page 49.
- Al-Twairesh, N., Al-Dayel, A., Al-Khalifa, H., Al-Yahya, M., Alageel, S., Abanmy, N., and Al-Shenaifi, N. (2016). Madad: A readability annotation tool for arabic text. In Nicoletta Calzolari (Conference Chair), et al., editors, Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC 2016), Paris, France, may. European Language Resources Association (ELRA).
- Attia, M., Rashwan, M. A., and Al-Badrashiny, M. A. (2009). Fassieh, a Semi-automatic Visual Interactive Tool for Morphological, PoS-Tags, Phonetic, and Semantic Annotation of Arabic Text Corpora. IEEE Transactions on Audio, Speech, and Language Processing, 17(5):916–925. ↗
- Aziz, W., de Sousa, S. C. M., and Specia, L. (2012). PET: a tool for post-editing and assessing machine translation. In Proceedings of the LREC’2012.
- Benajiba, Y. and Diab, M. (2010). A Web Application for Dialectal Arabic Text Annotation. In Proceedings of the LREC Workshop for Language Resources (LRS) and Human Language Technologies (HLT) for Semitic Languages: Status, Updates, and Prospects. find
- Bouamor, H., Habash, N., Salameh, M., Zaghouani, W., Rambow, O., Abdulrahim, D., Obeid, O., Khalifa, S., Eryani, F., Erdmann, A., and Oflazer, K. (2018). The MADAR Arabic Dialect Corpus and Lexicon. In Proceedings of the International Conference on Language Resources and Evaluation (LREC 2018). find
- Diab, M., Habash, N., Rambow, O., Altantawy, M., and Benajiba, Y. (2010). Colaba: Arabic dialect annotation and processing. In LREC Workshop on Semitic Language Processing. find
- Dickinson, M. and Ledbetter, S. (2012). Annotating Errors in a Hungarian Learner Corpus. In Proceedings of the International Conference on Language Resources and Evaluation (LREC 2012). find
- El-ghobashy, A. N., Attiya, G. M., and Kelash, H. M. (2014). A Proposed Framework for Arabic Semantic Annotation Tool. 3(1). ↗
- Habash, N., Soudi, A., and Buckwalter, T. (2007). On Arabic transliteration. In Abdelhadi Soudi, et al., editors, Arabic Computational Morphology, volume 38 of Text, Speech and Language Technology, chapter 2, pages 15– 22. Springer. ↗
- Habash, N., Khalifa, S., Eryani, F., Rambow, O., Abdulrahim, D., Erdmann, A., Faraj, R., Zaghouani, W., Bouamor, H., Zalmout, N., Hassan, S., shargi, F. A., Alkhereyf, S., Abdulkareem, B., Eskander, R., Salameh, M., and Saddiki, H. (2018). Unified Guidelines and Resources for Arabic Dialect Orthography. In Proceedings of the International Conference on Language Resources and Evaluation (LREC 2018), Miyazaki, Japan.
- Habash, N. (2010). Introduction to Arabic Natural Language Processing. Morgan & Claypool Publishers. ↗
- Javed, T., Habash, N., and Taji, D. (2018). Palmyra: A platform independent dependency annotation tool for morphologically rich languages. In Proceedings of the International Conference on Language Resources and Evaluation (LREC 2018), may. find
- Khalifa, S., Habash, N., Eryani, F., Obeid, O., Abdulrahim, D., and Kaabi, M. A. (2018). A Morphologically Annotated Corpus of Emirati Arabic. In Proceedings of the International Conference on Language Resources and Evaluation (LREC 2018), Miyazaki, Japan.
- Llitjós, A. F. and Carbonell, J. G. (2004). The Translation Correction Tool: English-Spanish User Studies. In Proceedings of the 4th International Conference on Language Resources and Evaluation (LREC’04). find
- Maamouri, M., Bies, A., Kulick, S., Ciul, M., Habash, N., and Eskander, R. (2014). Developing an Egyptian Arabic Treebank: Impact of Dialectal Morphology on Annotation and Tool Development. In Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC-2014), Reykjavik, Iceland. European Language Resources Association (ELRA). find
- Obeid, O., Zaghouani, W., Mohit, B., Habash, N., Oflazer, K., and Tomeh, N. (2013). A Web-based Annotation Framework For Large-Scale Text Correction. In The Companion Volume of the Proceedings of IJCNLP 2013: System Demonstrations, pages 1–4, Nagoya, Japan. find
- Obeid, O., Bouamor, H., Zaghouani, W., Ghoneim, M., Hawwari, A., Alqahtani, S., Diab, M., and Oflazer, K. (2016). MANDIAC: A Web-based Annotation System For Manual Arabic Diacritization. In The 2nd Workshop on Arabic Corpora and Processing Tools 2016 Theme: Social Media, page 16. find
- Pasha, A., Al-Badrashiny, M., Kholy, A. E., Eskander, R., Diab, M., Habash, N., Pooleery, M., Rambow, O., and Roth, R. (2014). MADAMIRA: A Fast, Comprehensive Tool for Morphological Analysis and Disambiguation of Arabic. In In Proceedings of LREC, Reykjavik, Iceland.
- Saleh, L. M. B. and Al-Khalifa, H. S. (2009). AraTation: an Arabic Semantic Annotation Tool. In Proceedings of the 11th International Conference on Information Integration and Web-based Applications & Services, pages 447–451. ACM. find
- Stenetorp, P., Pyysalo, S., Topić, G., Ohta, T., Ananiadou, S., and Tsujii, J. (2012). BRAT: A Web-based Tool for NLP-assisted Text Annotation. In Proceedings of the Demonstrations at the 13th Conference of the European Chapter of the Association for Computational Linguistics, Stroudsburg, PA, USA.
- Stymne, S. (2011). Blast: a Tool for Error Analysis of Machine Translation Output. In Proceedings of the ACL’2011: Systems Demonstrations, pages 56–61.
- Yimam, S. M., Gurevych, I., de Castilho, R. E., and Biemann, C. (2013). WebAnno: A Flexible, Web-based and Visually Supported System for Distributed Annotations. In ACL (Conference System Demonstrations), pages 1–6. The Association for Computer Linguistics.
- Zaghouani, W., Mohit, B., Habash, N., Obeid, O., Tomeh, N., Rozovskaya, A., Farra, N., Alkuhlani, S., and Oflazer, K. (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.
- Zaghouani, W., Habash, N., Bouamor, H., Rozovskaya, A., Mohit, B., Heider, A., and Oflazer, K. (2015). Correction annotation for non-native Arabic texts: Guidelines and corpus. Proceedings of The 9th Linguistic Annotation Workshop, pages 129–139.
- Zaghouani, W., Habash, N., Obeid, O., Mohit, B., and Oflazer, K. (2016). Building an Arabic Machine Translation Post-Edited Corpus: Guidelines and Annotation. In Proceedings of the International Conference on Language Resources and Evaluation (LREC), Portorož, Slovenia.
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/obeid-2018-madari-web-interface-joint-arabic/