Gramatika: a synthetic Indonesian grammatical error correction dataset generated using a rule-based approach
Abstract
Grammatical error correction (GEC) is a natural language processing (NLP) task that detects and corrects errors in a text. This task includes correcting grammatical, semantic, and orthographic errors. GEC research for Indonesian, a low-resource language in NLP, has been hindered by the lack of high-quality datasets for training GEC models. This study aims to develop a new GEC dataset for Indonesian using a rule-based approach to automatically generate annotated sentences, as manual annotation is costly. The rule-based approach utilizes a thesaurus, a dictionary, a part-of-speech (POS) tagger, a morphological analyzer, and a dependency parser to generate errors that more closely resemble naturally occurring errors. Grammatically correct sentences from Indonesian Wikipedia are used as source sentences. The resulting dataset, named Gramatika, consists of 1.5 million sentences covering 17 error types and is available in both M.2 and parallel formats. To evaluate the quality of Gramatika, two established models for the GEC task, text-to-text transfer transformer (T5) and grammatical error correction: tag, not rewrite (GECToR), were fine-tuned on the dataset. The results show that multilingual text-to-text transfer transformer (mT5) achieved the highest F0.5 score of 80.30%, outperforming the best-performing GECToR system by 3.84 percentage points, which achieved an F0.5 score of 76.46%.
Keywords
Grammatical error correction; Indonesian; Natural language processing; Rule-based; Synthetic dataset
Full Text:
PDFDOI: http://doi.org/10.11591/ijai.v15.i6.pp5854-5866
Refbacks
- There are currently no refbacks.
Copyright (c) 2026 Michael Felix Haryono, Rico Tadjudin, Jeremy Victor Andre Napitupulu, Mirsa Salsabila, Ika Alfina, Arlisa Yuliawat

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
IAES International Journal of Artificial Intelligence (IJ-AI)
ISSN/e-ISSN 2089-4872/2252-8938
This journal is published by the Institute of Advanced Engineering and Science (IAES).