A Simple Yet Effective Corpus Construction Framework for Indonesian Grammatical Error Correction

Nankai Lin, Meiyu Zeng, Wentao Huang, Shengyi Jiang, Lixian Xiao, Aimin Yang

TL;DR

Researchers have developed a streamlined framework to build high-quality Grammatical Error Correction (GEC) datasets for low-resource languages like Indonesian. By using synthetic data to train a "filtering" model and shifting human effort from complex sentence rewriting to simple binary verification, they created a new 2,364-sample Indonesian GEC corpus and demonstrated how Large Language Models (LLMs) can further automate this process.

What Problem Does This Paper Address?

Grammatical Error Correction (GEC) is a staple of modern NLP, yet it suffers from a massive resource imbalance. While English and Chinese benefit from massive, human-annotated datasets, "low-resource" languages—even those with hundreds of millions of speakers like Indonesian—lack the evaluation corpora needed to build and test robust models.

The bottleneck is human labor. Traditional corpus construction requires experts to manually identify and rewrite erroneous sentences, a process that is slow, expensive, and difficult to scale. Furthermore, existing Indonesian datasets often rely purely on synthetic data (which doesn't always reflect real-world errors) or treat GEC as a simple classification task, making them unsuitable for modern generative AI models.

Methods

The authors propose a four-stage framework designed to maximize annotation efficiency:

  1. Synthetic Data Generation: They started with a clean corpus of Indonesian news and introduced artificial errors using four operations: deletion, addition, replacement, and position deviation. This creates a large-scale, albeit imperfect, training set.
  2. Model Bootstrapping: A standard Transformer-based GEC model was trained on this synthetic data. The goal wasn't to create a perfect corrector, but a model capable of identifying and attempting to fix potential errors in real-world text.
  3. Real-World Filtering: The trained model was applied to a massive set of authentic, unlabelled news articles. Sentences that the model chose to "correct" were flagged as potential real-world error candidates.
  4. Simplified Manual Annotation: Instead of asking humans to rewrite sentences, the authors presented them with the model's corrections. Annotators performed two simple binary tasks:
  5. Subtask 1: Is the model's correction operation accurate?
  6. Subtask 2: Is the resulting sentence now entirely free of errors?
An illustration of GEC corpora construction framework.

This approach effectively turns a generative task into a discriminative one for humans, significantly reducing the cognitive load and time required per sample.

Datasets

  • Original Corpus: 631,964 articles from the Antara News Agency (2007–2021), resulting in over 7.6 million sentences.
  • Synthetic Training Set: Generated from the news corpus to train the initial Transformer model.
  • New Indonesian GEC Corpus: The primary output of the paper, consisting of 2,364 manually verified samples covering nine distinct error types (e.g., missing/misadding/misusing one, two, or three words).
  • CoNLL14: Used as a standard English benchmark to verify the effectiveness of their LLM prompt templates.

Key Insights and Ideas

  • The "Binary Shift": The most significant "aha moment" is the realization that we don't need humans to do the correction; we just need them to judge it. By using a model to propose corrections, the human becomes a quality controller, which is much faster than being a writer.
  • Synthetic Data as a Bridge: While synthetic data is often criticized for being unrealistic, this paper shows it is highly effective as a "scaffold" to help a model find real-world errors that humans can then verify.
  • LLM Verification Feasibility: The authors tested whether LLMs like GPT-4 or InternLM2 could replace human annotators in the binary verification tasks. They found that while LLMs are excellent at Subtask 1 (judging if a correction makes sense), they struggle more with Subtask 2 (ensuring absolute grammatical perfection), especially in Indonesian compared to English.

Key Results

  • Annotation Efficiency: The framework was highly effective; 87.6% of the samples provided to annotators were suitable for inclusion in the final GEC corpus, meaning very little human effort was wasted on "clean" sentences.
  • Error Distribution: The most common errors found and corrected were "missing word" errors (deletions), which the model handled with high accuracy (e.g., 294 out of 300 samples for "missing two words" were correctly identified).
  • LLM Performance:
    • GPT-4 achieved a precision of 0.9074 on Subtask 1 for Indonesian, showing it can reliably identify valid corrections.
  • InternLM2-20b showed a remarkably high recall of 0.9858 on Subtask 1, suggesting it is very good at catching almost all valid corrections proposed by the model.
  • However, performance on Subtask 2 (detecting residual errors) was significantly lower for all models in Indonesian, highlighting a gap in LLM understanding of complex Indonesian grammar rules.

Limitations and Future Work

The authors acknowledge that Indonesian grammar is notably more complex than English, which likely contributed to the LLMs' lower performance in detecting residual errors. The current framework also excludes character-level morphological errors (spelling), focusing instead on word-level grammatical issues.

Future research directions include expanding the corpus to more languages and exploring advanced prompt engineering strategies to help LLMs better grasp the nuances of low-resource language grammar.

Summary updated

BibTeX
@article{lin2025simple,
  author = {Nankai Lin and Meiyu Zeng and Wentao Huang and Shengyi Jiang and Lixian Xiao and Aimin Yang},
  title = {{A Simple Yet Effective Corpus Construction Framework for Indonesian Grammatical Error Correction}},
  journal = {ACM Trans. Asian Low Resour. Lang. Inf. Process.},
  year = {2025},
  doi = {10.1145/3704264},
}
Figure