Discovering Correction Rules for Auto Editing

Anta Huang, Tsung-Ting Kuo, Ying-Chun Lai, Shou-De LinInt. J. Comput. Linguistics Chin. Lang. Process 2010

Introduction

Writing in a second language is a complex task prone to subtle grammatical, lexical, and stylistic errors. While human editors provide high-quality feedback, their services are often slow and prohibitively expensive. Existing automated tools typically fall into two categories: knowledge-based systems, which rely on labor-intensive, language-specific rules written by linguists, or purely statistical models, which may identify an error without providing a concrete correction.

To address these limitations, researchers have developed a language-independent framework designed to automatically mine "A → B" correction rules from sentence-aligned corpora. By leveraging data from language-learning social networks, this system discovers reliable editing patterns without requiring complex linguistic features like Part-of-Speech (POS) tagging or syntactic parsing.

The Proposed Framework

The framework operates through a two-stage pipeline: Rule Production and Rule Refining. This approach allows the system to be "plug-and-play" for any language pair, as it relies on raw string manipulation and frequency analysis rather than language-specific grammar rules.

The two-stage framework for producing and refining correction rules.

Rule Production via Edit Distance

The process begins with a parallel corpus of erroneous sentences and their corresponding corrections. The system employs a word-level Levenshtein (Edit) Distance algorithm to pinpoint specific insertions, deletions, or substitutions. From these identified changes, the system extracts n-gram "rule candidates." A feasibility check ensures that applying a candidate rule to the original erroneous sentence successfully generates the corrected version found in the corpus.

Rule Refining and Condensing

Raw rules extracted from the corpus are often overly specific to a single sentence. To improve utility, the system attempts to "condense" these rules by stripping away peripheral words to find the most general version of the error that remains distinct. For example, a specific correction like "I went to shopping → I went shopping" is condensed to the more general "went to shopping → went shopping."

Rule Ranking and Quality Control

A critical innovation of this research is using the frequency of a pattern in a "correct" reference corpus ($S_+$) as a proxy for precision. If a proposed erroneous pattern ($K_L$) appears frequently in high-quality, native-speaker text, the rule is likely a false positive and is ranked lower. Conversely, if the pattern is common in the learner corpus but nearly non-existent in the correct corpus, it is flagged as a high-quality correction rule.

Frequency comparison of erroneous and correct patterns in a reference corpus.

As shown in the example above, the pattern "Went to shopping" appears only 10 times in the reference corpus, while the corrected version "went shopping" appears 205 times. This disparity provides a statistical signal that the former is likely an error.

Experimental Results

The researchers evaluated their framework using a dataset from Lang-8, a social network where native speakers correct language learners' diaries. From a corpus of approximately 311,000 sentence pairs, the system generated over 110,000 unique correction rules.

When the top 1,500 ranked rules were evaluated by expert human annotators, 67.2% were rated as "correct" or "mostly correct." In a head-to-head comparison using 30 random articles, the system's highly ranked rules achieved a precision of 77.32%. This significantly outperformed traditional tools: the Microsoft Word 2007 grammar checker achieved only 27.77% precision, and the ESL Assistant reached 42.36% on the same dataset.

Manual analysis of the discovered rules revealed that 60% addressed spelling errors, while 15% targeted collocations and phrases (e.g., "am worry about" → "am worried about").

Limitations and Future Directions

Despite its high precision, the system faces challenges with context dependency. Approximately 27.6% of the discovered rules were found to depend on the surrounding context; a rule might be valid in one sentence but change the intended meaning in another. Additionally, because the system is purely data-driven, it provides the "what" of a correction without explaining the "why" (the underlying grammatical principle) to the user.

Future work may involve integrating POS tags or syntactic features to resolve context-dependency issues while maintaining the system's robust, automated discovery process.

Summary updated

BibTeX
@article{huang2010discovering,
  author = {Anta Huang and Tsung-Ting Kuo and Ying-Chun Lai and Shou-De Lin},
  title = {{Discovering Correction Rules for Auto Editing}},
  journal = {Int. J. Comput. Linguistics Chin. Lang. Process},
  year = {2010},
}
Figure