Identifying Correction Rules for Auto Editing

Anta Huang, Tsung-Ting Kuo, Ying-Chun Lai, Shou-De LinRocling 2010

Introduction

Writing in a second language presents a persistent challenge characterized by spelling errors, grammatical inconsistencies, and unnatural lexical choices. While commercial grammar checkers are widely available, they often function as "black boxes," offering corrections without transparent logic and failing to cover the full spectrum of idiosyncratic learner errors. Furthermore, traditional knowledge-based systems require extensive manual rule-authoring by linguists, a process that is both labor-intensive and difficult to scale across multiple languages.

This paper presents a language-independent framework designed to automatically mine high-quality "error-to-correction" rules from crowd-sourced editing data. By leveraging parallel corpora from online language-learning communities, the system identifies effective correction patterns that can be used for automated editing and pedagogical feedback.

Methodology

The proposed system utilizes a multi-stage pipeline to transform raw sentence pairs into a library of "Effective Rules." The process is divided into two primary phases: producing rule candidates and refining those candidates into generalizable rules.

Figure 1: The system architecture, illustrating the pipeline from a sentence-aligned corpus to the generation of effective rules for auto-editing.

Rule Production

The first phase involves identifying discrepancies between erroneous and corrected sentences. The system employs a modified word-level Levenshtein distance to pinpoint specific insertions, deletions, and substitutions. Unlike standard character-level edit distance, this approach operates on whitespace-separated tokens to capture linguistic units.

Once edits are identified, the system generates rule candidates by extracting consecutive word patterns (up to four words) surrounding the edit. A candidate rule $A \Rightarrow B$ is then subjected to a feasibility filter: it is only retained if applying the rule to the original erroneous sentence successfully produces the target corrected sentence.

Formal Algorithms

The logic for edit distance calculation, rule candidate production, and rule matching is formalized in the following algorithms:

Figure 6: Formal algorithms for word-level edit distance (Algorithm 1), rule candidate production (Algorithm 2), and rule matching (Algorithm 3).

Rule Refinement and Ranking

To ensure the rules are both accurate and general, the system applies a "condensing" algorithm. This process iteratively removes peripheral words from the left and right of a rule (e.g., shortening "I went to shopping $\Rightarrow$ I went shopping" to "went to shopping $\Rightarrow$ went shopping"). A rule is condensed only if the resulting shorter pattern remains rare in a large corpus of "correct" text, ensuring that the rule targets actual errors rather than common, valid phrases.

Finally, rules are ranked based on their frequency in the correct corpus ($fre_{S+}$). The underlying metric assumes that if a pattern $A$ frequently appears in the training data as an error but almost never appears in a corpus of high-quality writing, the rule $A \Rightarrow B$ is highly likely to be a precise correction.

Experimental Evaluation

The system was evaluated using a parallel corpus of 310,967 sentence pairs harvested from Lang-8, a social network where native speakers correct language learners' diaries. The system successfully generated 110,567 unique correction rules.

Key Results

Manual annotation of the top 1,500 ranked rules by English language experts revealed the following:

  • Accuracy: 67.2% of the top rules were rated as "correct" or "mostly correct."
  • Error Coverage: Analysis showed that 60% of discovered rules addressed spelling, 15% addressed collocations, and 7% addressed subject-verb agreement.
  • Context Sensitivity: 27.6% of rules were found to be context-dependent, suggesting that while the rules are often correct, their application requires nuance.
  • Performance: The system identified several common errors (e.g., am so exciting $\Rightarrow$ am so excited) that were not detected by contemporary commercial grammar checkers like Microsoft Word 2007.

Conclusion and Future Work

This research demonstrates a robust, language-independent method for extracting human-readable correction rules from noisy, crowd-sourced data. By focusing on statistical frequency and string alignment, the system avoids the need for complex linguistic pre-processing like POS tagging or syntactic parsing.

Future work will focus on integrating linguistic context into the refinement process. By incorporating Part-of-Speech tags or dependency parsing, the system could move from specific word-based rules to more abstract grammatical patterns (e.g., correcting general Verb + Preposition errors), further increasing the robustness and applicability of the mined rules.

Summary updated

BibTeX
@inproceedings{huang2010identifying,
  author = {Anta Huang and Tsung-Ting Kuo and Ying-Chun Lai and Shou-De Lin},
  title = {{Identifying Correction Rules for Auto Editing}},
  booktitle = {Rocling},
  year = {2010},
}
Figure