EgyGram: Agreement-Aware Grammatical Error Injection and a Parameter-Efficient Benchmark for Egyptian Arabic
Egyptian Arabic is among the most widely written Arabic dialects online, yet no resource exists for correcting its grammatical errors, and the synthetic-data recipe that works for spelling does not transfer directly: changing a morphological feature of a randomly chosen word often yields a different but grammatical sentence rather than an error. We present EgyGram, an agreement-aware error-injection method that locates agreement pairs in context with an Egyptian morphological disambiguator, corrupts only the dependent word, and accepts a corruption only if no reading of the new word still agrees with its controller. Applied to 700,162 Egyptian sentences, it yields a corpus of seven agreement classes, partitioned by sentence so that no reference crosses a split, and an independent test set drawn from Egyptian social-media posts. Under an identical low-rank adaptation budget, AraT5v2-base is the strongest encoder–decoder, with 79.7% exact match in distribution and 65.1% on the independent set. NileChat-3B, an Egyptian-pretrained decoder-only model adapted at a higher cost, reaches 82.1% on the independent set. Initialising from a spelling-correction adapter adds 4.0 points, whereas joint spelling-and-grammar training degrades both tasks, and a staged curriculum gives no measurable benefit. Prompted large language models fall far short: GPT-4o with five exemplars reaches 41.1% in distribution and below 7% on the independent set. A native-speaker audit of 400 items judges 93% of references grammatical but only 63% of injected sentences ungrammatical, with one class above an 80% threshold, which identifies the classes that need stricter filters before the resources can support dialect-respecting writing assistance.
Authors
- Essam A. Amin
- Atef Tayh Nour El-Din Raslan
- Fatimah Emad Eldin
Institutions
- Cairo University (EG)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-30
- DOI
- https://doi.org/10.21203/rs.3.rs-11695070/v1
- Primary Topic
- Natural Language Processing Techniques
- Type
- preprint