Arabic NLG Language Functions
Paper · 2020 · Wael Abed and Ehud Reiter
Summary
When this work was written, Arabic had no surface realiser or NLG library. The authors attribute this to the language's heavy morphology and to scarce resources. They first describe the phenomena that make realisation hard:
- nouns carry gender, three cases, and a dual alongside sound and broken plurals;
- numerals often take the opposite gender to the counted noun;
- adjectives agree with nouns, with a special rule for non-human plurals;
- verbs vary by person, number, gender, mood, voice and tense;
- pronouns can be suffixes or standalone words.
They then implement, from scratch with hand-written rules, six language functions modelled on RosaeNLG rather than SimpleNLG. These are backed by a lexicon of about 9000 lemmata collected from English Wiktionary. On 250 unit tests every output was correct, and roughly 85% of sample sentences from the NADA corpus could be produced with the functions. Code, lexicon and a web interface are public, giving Arabic a first base for rule-based generation pipelines.
Key points
- The six functions handle nouns (inflectNoun), noun phrases (buildNP), verbs (inflectVerb), adjectives (inflectAdjective), number spell-out (numToWords) and pronouns. Neither clause construction nor non-personal pronouns are supported.
- The lexicon was web-scraped from English Wiktionary because the Arabic dump was poorly formatted. It holds about 4000 nouns, 3000 verbs and 2000 adjectives.
- Short vowel marks (ḥarakāt) are ignored. Verbs missing from the lexicon fall back to rules that assume the verb follows Form I.
- Evaluation followed Braun et al. (2019) and had two parts:
- 250 test units across nouns, adjectives, verbs, numerals and pronouns, all correct;
- about 10 sentences from each of NADA's 10 categories, with an 85% generation success rate.
- The system is open source on GitHub, with a web interface.
Interesting ideas
- I1. Each inflection call first looks up the lexicon and only applies general rules when the word is missing, so stored irregulars always win over the productive pattern.
- I2. Agreement is treated as a relation inside the noun phrase: one builder coordinates noun, numeral and adjectives together instead of inflecting each word on its own.
- I3. The adjective function supports both the older reduced agreement and modern full agreement for non-human plurals, so the caller picks the norm.
- I4. Coverage is measured by trying to regenerate real sentences sampled evenly across a corpus's categories, separately from unit-test correctness.
- I5. numToWords converts numbers to words under the full agreement rules, rather than treating numbers as opaque tokens.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (tokens): The same lookup-then-rules order could drive English inflection and lemmatisation in crate en, keeping irregular forms authoritative and making it explainable which path produced each form.
- I2 (back): A phrase-level builder that pushes number and definiteness from the head noun to its dependents would make generation from the meaning graph produce consistent phrases by construction.
- I3 (back): Exposing variant choices (e.g. singular vs plural agreement with collective nouns) as explicit generation parameters would let the text → graph → text compressor reproduce the source's own style.
- I4 (learn): Mova's generator could be scored by how many sampled sentences per genre it can rebuild from their graphs, with failures logged by genre to show missing constructions.
- I5 (world): Linking measures and counts in the world model to a rule-based spell-out of numbers (cardinal vs ordinal) would let answers to maths word problems state quantities in fluent, checkable text.
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 2Research subjects and languages the work is about.Semitic languages · 2,908 worksText generation · 202 works
Cite
Cite as Wael Abed and Ehud Reiter. 2020. Arabic NLG Language Functions. Proceedings of the 13th International Conference on Natural Language Generation.
@inproceedings{abed2020arabic,
title = {{Arabic NLG Language Functions}},
author = {Wael Abed and Ehud Reiter},
booktitle = {Proceedings of the 13th International Conference on Natural Language Generation},
year = {2020},
doi = {10.18653/v1/2020.inlg-1.2},
url = {https://doi.org/10.18653/v1/2020.inlg-1.2}
}References
- ZN Abdel-Malek, WM Erwin, and GN Saad. 1983. Elementary Modern Standard Arabic: Volume 2, Lessons 31-45; Appendices, volume 2. Cambridge University Press. find
- Muhammad Abdul-Mageed, Hassan Alhuzali, and Mohamed Elaraby. 2018. You tweet what you speak: A city-level dataset of arabic dialects. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018).
- Salim Abu-Rabia. 2019. The role of short vowels in reading arabic: A critical literature review. Journal of psycholinguistic research, 48(4):785–795. ↗
- Hussein Al-Bataineh and Phil Branigan. 2020. The syntax of (complex) numerals in arabic. [Unpublished manuscript].https://doi.org/10.31219/osf.io/6pesa. ↗
- Noor Sultan Al Easa. 1997. Noun quantification in english and modern standard arabic: a descriptive morphological comparison. Http://hdl.handle.net/10576/8069. find
- As mentioned before, as far as we know this is the first NLG system for Arabic. Therefore, we could not compare it with others. However, for a similar approach with different system architecture and German language, Braun et al. (2019) achieved 84%, which means our results are acceptable. In terms of scalability, these functions can be adapted easily to use in Classical Arabic and all Arabic dialects (more than 20 dialects) Abdul-Mageed et al. (2018). find
- Qasem Al-Radaideh. 2020. Applications of mining arabic text: A review. In Recent Trends in Computational Intelligence. IntechOpen. ↗
- Nada Alalyani and Souad Larabi Marie-Sainte. 2018. Nada: New arabic dataset for text classification. International Journal of Advanced Computer Science and Applications, 9(9). ↗
- Izzat Alsmadi and Mohammad Zarour. 2018. Google ngram viewer does not include arabic corpus! towards n-gram viewer for arabic corpus. Int. Arab J. Inf. Technol., 15(5):785–794. find
- Andrea Cascallar-Fuentes, Alejandro Ramos-Soto, and Alberto Bugarín Diz. 2018. Adapting simplenlg to galician language. In Proceedings of the 11th International Conference on Natural Language Generation, pages 67–72. find
- Lisa Garnand Dawdy-Hesterberg and Janet Breckenridge Pierrehumbert. 2014. Learnability and generalisation of arabic broken plural nouns. Language, cognition and neuroscience, 29(10):1268–1282. ↗
- Claire Gardent and Laura Perez-Beltrachini. 2017. A statistical, grammar-based approach to microplanning. Computational Linguistics, 43(1):1–30. ↗
- Albert Gatt and Emiel Krahmer. 2018. Survey of the state of the art in natural language generation: Core tasks, applications and evaluation. Journal of Artificial Intelligence Research, 61:65–170. find
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/abed-2020-arabic-nlg-language-functions/