The Efficiency of Generative Language Models (LLMs) in Detecting Grammatical Errors in Arabic as a Second Language Learners: Towards Designing a System Based on Frequent Error Analysis and Correction
Main Article Content
Abstract
This study investigates the efficiency of large language models (LLMs) in detecting grammatical errors among learners of Arabic as a second language, with a particular focus on analyzing recurrent error patterns. It further seeks to evaluate the performance of state of the art models in identifying such errors and to shed light on the underlying causes behind the most frequent ones. Findings reveal that certain models, notably ChatGPT, Claude, and Deepseek, demonstrated superior performance in error detection when compared to Gemini and Grok. However, the overall accuracy of syntactic explanations remains limited, indicating gaps in deeper grammatical anlysis. The study also highlights the decisive influence of training data quality on model performance, underscoring the need for tailored linguistic resources to enhance reliability in processing Arabic texts.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
References
المؤلفات:
1- Ozdemir, S, Quick start guide to Large Language Models ; Strategies and best Practices for using Chat GPT and others LLMs, Addison-Wesley Professional, (USA: O'reilly Media, 2023), p 23.
2- Caelen, O & Blete, M, Developing Apps with GPT-4 and Chat GPT Addison-Wesley Professional, (USA: O'reilly Media, 2023), p35.
3- Kunz, Jenny, Understanding Large Language Models: Towards Rigorous and Targeted Interpretability Using Probing Classifiers and Self-Rationalisation, Linköping University, (Sweden: Linköping University, 2024), p11.
4- خرما، نايف وحجاج، علي، اللغات الأجنبية: تعليمها وتعلمها (الكويت: سلسلة عالم المعرفة، 1988م)، ص 33.
5- الراجحي، عبده، علم اللغة التطبيقي وتعليم العربية، (مصر: دار المعرفة الجامعية، 2000م)، ص46.
6- صيني، محمود، التقابل اللغوي وتحليل الأخطاء، (المملكة العربية السعودية: جامعة الملك سعود، 1982م)، ص 05-06.
المقالات:
7- Aishwar, Gupta & Divya, Hathwar, Introduction to AI Chatbots, International Journal of Engineering Research & Technology (IJERT), Vol. 9 Issue 07, July-2020, p255.
مواقع الانترنيت:
8- فينا أبيرامي (2024م+)، من الرمز إلى المحادثة: كيف يعمل برنامج
https://ww.ultralytics.com/ar/blog/from-code-to-LLM-conversation-how-does-an-llm-work (Consulté le 13/07/2025).
9- Grammarly,(2024) , Claude AI 101: What It Is and How It Works, (Consulté le 11/08/2025).
10- IBM, (2024), What is Google Gemini, (Consulté le 11/08/2025).
11- help.x, (2025), About Grok, the AI-powered assistant on X, (Consulté le 11/08/2025).
12- Techtarget, (2025), DeepSeek explained: Everything you need to know.
https://www.techatarget.com/whatis/feature/DeepSeek-explained-Everything-you-need-to-know (Consulté le 11/08/2025).al-Muʾallafāt:
1- Ozdemir, S, Quick start guide to Large Language Models; Strategies and best Practices for using Chat GPT and others LLMs, Addison-Wesley Professional, (USA: OʾReilly Media, 2023), p. 23.
2- Caelen, O & Blete, M, Developing Apps with GPT-4 and Chat GPT, Addison-Wesley Professional, (USA: OʾReilly Media, 2023), p. 35.
3- Kunz, Jenny, Understanding Large Language Models: Towards Rigorous and Targeted Interpretability Using Probing Classifiers and Self-Rationalisation, Linköping University, (Sweden: Linköping University, 2024), p. 11.
4- Khurmā, Nāyif wa-Ḥajjāj, ʿAlī, al-Lughāt al-Ajnabiyyah: Taʿlīmuhā wa-Taʿallumuhā (al-Kuwayt: Silsilat ʿĀlam al-Maʿrifah, 1988), p. 33.
5- al-Rājḥī, ʿAbduh, ʿIlm al-Lughah al-Taṭbīqī wa-Taʿlīm al-ʿArabiyyah, (Miṣr: Dār al-Maʿrifah al-Jāmiʿiyyah, 2000), p. 46.
6- Ṣīnī, Maḥmūd, al-Taqābul al-Lughawī wa-Taḥlīl al-Akhtāʾ, (al-Mamlakah al-ʿArabiyyah al-Saʿūdiyyah: Jāmiʿat al-Malik Saʿūd, 1982), pp. 5–6.
al-Maqālāt:
7- Aishwar, Gupta & Divya, Hathwar, Introduction to AI Chatbots, International Journal of Engineering Research & Technology (IJERT), Vol. 9 Issue 07, July-2020, p. 255.
Mawāqiʿ al-Internet:
8- Fīnā Abīrāmī (2024+), min al-Ramz ilā al-Muḥādathah: Kayfa Yaʿmal Barnāmaj
https://ww.ultralytics.com/ar/blog/from-code-to-LLM-conversation-how-does-an-llm-work (Consulté le 13/07/2025).
9- Grammarly, (2024), Claude AI 101: What It Is and How It Works, (Consulté le 11/08/2025).
10- IBM, (2024), What is Google Gemini, (Consulté le 11/08/2025).
11- help.x, (2025), About Grok, the AI-powered assistant on X, (Consulté le 11/08/2025).
12- Techtarget, (2025), DeepSeek explained: Everything you need to know.
https://www.techatarget.com/whatis/feature/DeepSeek-explained-Everything-you-need-to-know (Consulté le 11/08/2025).