Elamur Research

Generating Inflectional Errors for Grammatical Error Correction in Hindi

Paper · 2020 · Ankur Sonawane, Sujeet Kumar Vishwakarma, Bhavana Srivastava et al.

Summary

A Hindi sentence can contain the right words and still be ungrammatical because one of them has the wrong ending. A verb may express the intended action while taking a form that disagrees with the noun it goes with. To teach a system to repair that sentence, researchers need examples of the wrong form in context and a record of what should replace it. Such paired examples were scarce for Hindi. Sonawane and colleagues address the shortage by generating training examples for grammatical error correction through deliberate changes to word endings. They then test whether systems trained on those changes can recover the corrections that people made on Hindi Wikipedia.

The authors start with Wikipedia sentences they assume are largely grammatical. They identify words by grammatical category and use tables of endings to substitute a different form. Each artificial input contains a single changed word, and the original sentence supplies its correction. The resulting training split contains 2.6M sentence pairs. For testing, the authors adapt WikiEdits to collect a separate corpus, HiWikEd, from Wikipedia revision histories. Its 13K sentence pairs represent small substitutions made by editors. A Hindi adaptation of the ERRANT annotation toolkit assigns categories to those edits, using information such as whether the words on either side are forms of the same underlying word.

Inflectional errors account for 49.92% of the edits in HiWikEd under that classification. The authors train three correction systems originally developed or used for English-language tasks. The copy-augmented Transformer leads on the full HiWikEd test set, scoring 0.49 on F0.5, which emphasizes the correctness of proposed edits, and 0.80 on GLEU, which assesses the resulting text. It reaches an F0.5 of 0.70 on both postposition and verb inflection. The simpler Transformer is weaker overall, and the convolutional system leads the copy-augmented system on GLEU for pronoun and adjective inflection.

The results establish initial baselines for Hindi and show that training on artificial endings can support corrections to real Wikipedia text. HiWikEd also contains spelling changes, shifts in meaning, stylistic edits, and some revisions the authors judged incorrect. The authors propose manual screening and annotation of the benchmark and broader coverage in training. They release the code and data through the s-ankur/hindi_grammar_correction repository and suggest that the error generation and categorization procedures could be adapted to other Indic languages.

Deep dive: Generating Inflectional Errors for Grammatical Error Correction in Hindi

This paper tests whether Hindi grammar correction systems trained on artificial word-ending errors can repair real edits from Wikipedia. · about 34 minutes to read

The problem and its context

What counts as a correction

Grammatical error correction covers a wider range of changes than its name might suggest. The paper includes orthography, syntax, and fluency under that heading. A system might need to repair a misspelled word, fix the relationship between words, or revise a sentence so that it reads more naturally. These interventions pose different questions. A spelling mistake can sometimes be recognized by inspecting the word itself. An agreement mistake may involve an ordinary, correctly spelled word whose form is inappropriate in this particular sentence. A fluency revision gives an editor still more freedom, which can make it harder to say whether the earlier wording was wrong at all.

The paper describes the prevailing statistical and neural approach as a kind of machine translation within a language. The input is a sentence that may need repair, and the target is a corrected sentence in the same language. An edit provides a worked example of that mapping. It shows the input as a writer produced it and the output a system is supposed to approximate. Earlier work on correcting learner English with phrasal statistical translation illustrates the approach the authors are building on. Correcting ESL Errors Using Phrasal SMT Techniques

A sentence pair supplies supervision about where a change belongs as well as what that change is. If the target differs at a verb, all the matching words show which parts of the input can be preserved. The discrepancy shows which form should appear in their company. A large supply of unpaired sentences offers examples of acceptable usage, but it leaves the researcher to decide what erroneous inputs should be associated with them. That distinction is central to the Hindi study. The resource the authors need is a collection of aligned inputs and corrections, at a scale suitable for the systems they want to train.

The paper locates the shortage in the history of work on low-resource languages. It describes much of the development of grammatical correction as concentrated on English and a few languages with substantial resources. For Indic languages, it points to the relative scarcity of digitized material and the complexity of word forms. Its account of prior Hindi work mentions probabilistic and neural spelling correction, as well as work using short sequences of words to detect and repair real-word errors. The latter task comes closer to grammar correction because a real-word error can survive a check of whether a word exists. The authors distinguish those efforts from the broader grammatical correction task they pursue.

Why endings are a tractable place to start

The authors describe Hindi as fusional. Its morphology expresses features such as gender, number, case, and tense by changing the shape of a word. Inflection is the part of that process that gives a word different grammatical forms. When a form signals gender or number, the signal can reflect a relationship with another word in the sentence. The article that an editor reads contains the resulting form, while the editor's judgment takes account of the relationship. An automatic correction system faces the same distinction between recognizing a possible form and determining whether it fits.

The paper illustrates this with forms of karanā, meaning “to do.” The masculine singular form in its paradigm is karatā, and the masculine plural is karate. The feminine entry is karatī in both number columns. A reader can see why changing an ending creates a plausible correction problem. The altered word can still be recognizable as a form of the same verb. Its suitability depends on the words around it. The paradigm also shows that the correspondence between visible endings and grammatical features can be many-to-one. In that example, knowing the feminine form alone does not distinguish singular from plural.

The authors describe number and gender agreement for verbs and some adjectives, and identify genitive pronouns, genitive postpositions, and ordinals as other places where inflection matters. They also note person distinctions in verbs and case distinctions in adjectives. A postposition follows the expression it relates to. In the genitive examples, a form meaning “of” has alternatives that depend on grammatical features. The instances in the paper therefore cover more than a verb matching a subject. The common thread is that a conventional word or expression has alternative forms whose acceptability depends on grammatical context.

For many of the forms the authors discuss, a vowel at the right edge of the lexical base helps mark the distinction. That regularity gives them a practical way to create data. A table can supply an alternative ending, and the rest of a sentence can stay as it was. The agreement relation is then something the correction system must recover from the input. The same feature that makes the mistake easy to construct helps explain why a person can identify it. A small change to a visible form can disrupt an established relationship elsewhere in the sentence.

How earlier work obtained paired sentences

The paper presents manually corrected learner writing as a common source of examples. A person writes an essay, and someone marks corrections that can then serve as targets. English resources from shared tasks are prominent in its account. The authors also point to learner corpora for Russian and Czech. Such material connects the corrections to a recognizable writing activity and gives researchers a reason to treat the annotations as intended repairs. The obstacle for a language with limited resources is the effort needed to create the corpus. Every useful pairing depends on having both the writing and the work of correction. Helping Our Own · Grammar Error Correction in Morphologically Rich Languages

A second approach creates the erroneous side artificially. Starting with a sentence treated as grammatical, a researcher either applies explicit rules or uses a broader transformation, such as translating the sentence out of the language and back again. The paper notes early use of deliberate error generation for English and describes rule-based generation for Indonesian preposition correction. It places particular weight on the resemblance between artificial and real mistakes. A generator can make many pairs, but the strength of that supervision depends on whether the changes pose problems that writers and editors actually encounter.

The paper's third route is to mine edits that people have already made. Its examples include language-learning websites and public revision records from Wikipedia and GitHub. The history supplies both versions, so a researcher can obtain pairs without commissioning a new round of corrections. The price is ambiguity about what an edit means. A later version might correct the grammar, or it might express a different fact, substitute a preferred synonym, or improve the style. Mining makes the material accessible. Determining which pairs genuinely exemplify the task remains a separate problem.

Sonawane and colleagues combine the latter two routes because each supplies something the other lacks. Their rules provide many examples for training, with a defined operation that creates the difference between the input and target. The revision history provides naturally made changes for testing, without requiring those changes to follow the generation rules. Both corpora draw on Hindi Wikipedia, so they share a broad source of written language. Their provenance differs at the point that matters for the experiment. In the training pairs, the researchers choose how to change a sentence. In the test pairs, they select changes that were already present in the history.

The method, step by step

From an ordinary sentence to a training pair

The training pipeline begins from a clean-side assumption. The authors extract sentences with WikiExtractor from a Hindi Wikipedia revision dated June 1, 2020. They treat the recent versions as mostly grammatical. The sentence they extract plays the role of an answer key. If a later step changes a word, the retained version records the form the system is supposed to put back. This creates supervision without asking an annotator to write a corrected version of each input. The usefulness of the answer key depends on the quality of the starting text and on whether the chosen substitution makes a meaningful error in context.

The next step is tokenization, which gives the procedure the units it can inspect and replace. The authors apply a Hindi tool for part-of-speech tagging to assign grammatical categories to those units. A category identifies the role a word plays, such as verb or pronoun. The role matters because the same visual pattern at the end of two words need not represent the same kind of grammatical choice. The procedure uses the category as a way to select the appropriate set of endings. It cites Reddy and Sharoff in connection with the Hindi tagger. Cross Language POS Taggers for Indian Languages

For an eligible word, the generator chooses a different ending at random from the table for its category. The authors say that the rules take exceptional cases into account. The operation is expressed in terms of a word and its available endings. The paper does not describe running a grammaticality judgment over every complete sentence afterwards. The intended effect is to leave the lexical base recognizable while changing what the form expresses. Surrounding words retain their original forms, so they can supply evidence for the repair. A replacement taken from the relevant table can look like an ordinary word even where it creates disagreement.

The direction of generation is worth keeping straight. Starting with an original form, the authors introduce a different one. The correction system later receives the altered sentence and is trained to produce the original. For instance, the examples include changing karatā to karatī. In the paradigm used to motivate the method, the former is masculine singular and the latter is feminine. The correction target of a pair generated that way would contain karatā. Which form is appropriate depends on the sentence that supplied the example. The training objective asks the system to recover the form in that context.

The illustrated substitutions cover several kinds of words. In the postposition examples, kī changes to ke, altering the agreement form of a genitive expression. A possessive pronoun example changes merā to merī. For adjectives, the paper shows lambē becoming lambā, and it includes an ordinal changing from chauthā to chauthe. The generator's action has the same shape in these cases. It preserves most of the written material and changes a grammatical form at a particular position. The information a system needs to reverse the change can differ with the category. The surrounding phrase that helps resolve a possessive form also need not resemble the context needed for a verb.

The generation description and the illustrations differ on the category inventory. The procedure names VERB, ADP, ADV, and PRON. Its example table and the subsequent breakdown of the categories trained on show verb, postposition, adjective, and pronoun inflection. ADV is the adverb tag, while the adjective category is ADJ. Taken together, the examples and evaluation clearly document adjective substitutions and an adjective result. The difference in the written lists leaves the exact status of adverbs in generation unclear. The reported experiments organize the targeted results around VERB:INFL, ADP:INFL, PRON:INFL, and ADJ:INFL.

A sentence can offer more than one position at which to create a variant. Each replacement is turned into its own pair, with a single incorrect word in the generated input. If an original contains eligible words at different positions, examples can be generated from them separately while keeping the same clean target. A training example therefore supplies a focused repair with intact context. It gives the system practice in finding the altered position inside a full sentence. It also defines a characteristic of the training distribution. The surrounding agreement cues cannot themselves have been changed by a second generated error in the same input.

From Hindi Wikipedia sentences to synthetic training pairs

The steps in order.

From Hindi Wikipedia sentences to synthetic training pairsStep 1: Extract sentences assumed to be grammatical1. Extract sentences assumed to be grammaticalStep 2: Tokenize and assign grammatical categories2. Tokenize and assign grammatical categoriesStep 3: Choose a different ending for an eligible word3. Choose a different ending for an eligible wordStep 4: Pair each altered sentence with its original4. Pair each altered sentence with its originalStep 5: Randomly discard some of the generated pairs5. Randomly discard some of the generated pairsStep 6: Split the pairs by their original sentence6. Split the pairs by their original sentence

After generating the pairs, the authors discard 40% of them at random. They then report a train split of 80% and a validation split of 20%. Their grouping rule keeps every retained variant of an original sentence in the same partition. This matters because two inputs generated from the same original can share almost the entire sentence and have exactly the same target. Putting one in training and another in validation would allow that shared target and nearly all of its context to appear on both sides. Grouping reduces that particular source of overlap. The paper reports the discarding and grouping procedures without presenting an experiment on what the discard rate changes.

The resulting data serve two distinct roles before the Wikipedia test. The training partition supplies the generated supervision used to fit the systems. The validation partition supplies held-out synthetic material from other original sentences under the grouping rule. That split can support checks on the same generation process without presenting another corrupted version of a training target as a fresh example. The experiment's test question is different. It asks how well the learned corrections apply when the change was made by an editor and selected from a revision history.

From a revision history to a test pair

For HiWikEd, the authors adapt WikiEdits 2.0, which extracts paired text from Wikipedia revision histories. They use a Hindi Wikipedia dump dated October 1, 2020. A candidate pair already has two versions. The earlier wording supplies the input, and the later wording can serve as a reference. In the learning task, a reference is the recorded output against which a correction is assessed. The chronological order tells the researchers which text preceded the edit. It gives them a working direction for the task even though the later version may still turn out to be a poor grammatical reference.

The authors constrain extracted sentences to lengths between 6 and 27 tokens and keep substitution operations. The sentence lengths refer to units produced for processing, so the length rule operates on tokens instead of a visual count of characters. A substitution replaces one piece of text with another. This kind of change fits the paper's primary interest because an erroneous inflection can frequently be repaired by replacing the form at an existing position. The selection also means the resulting corpus samples a particular kind of editorial activity. The test pairs are selected to have a relatively close correspondence between the unchanged parts of the earlier and later sentences.

The closeness criterion is a token-based Levenshtein edit distance below 0.3. Levenshtein distance concerns the operations needed to turn one sequence into another. Here the sequences are the tokens of the paired sentences, and a lower value selects more similar versions. The paper gives the cutoff without specifying in its description how the distance is normalized. The stated rule requires both a small distance and the restriction to substitutions. Even a close pair can contain a change in meaning. Distance quantifies the extent of a textual modification, while grammatical error classification addresses what kind of change it appears to be.

The filter also removes pairs whose only differences concern punctuation or numbers, as well as changes involving extremely rare tokens or HTML markup. Vandalism-related edits are discarded. Each decision narrows the set of changes that can make it into the benchmark. For example, a sentence may remain within the length range and show only a small local difference, yet be unsuitable because the change is markup. The additional screens address reasons for exclusion that a token-distance threshold alone could miss. The paper gives these rules as part of the construction of HiWikEd, and later discusses the grammatical and editorial noise that remains after applying them.

The difference between the synthetic and revision-based procedures is easiest to see by tracing the source of the replacement. In the synthetic corpus, a table supplies the changed ending and the unaltered version serves as the target. In HiWikEd, an editor has already decided to replace something, and the researchers recover the pair subject to filters. A genuine agreement correction can thus appear naturally even if it differs from the kinds of swaps the generation rules make. A synonym substitution can also survive because it has the same outward shape of a small change between otherwise similar sentences. The annotation procedure is intended to make those distinctions visible.

Reading the differences with Hindi ERRANT

ERRANT is a system for linguistic annotation of corrections. It analyzes sentence pairs to identify edits, can merge material into a single edit where its rules call for that, and assigns categories using grammatical information. The authors describe the toolkit as drawing on morphology and dependency information. Dependency information represents relationships between words, which helps explain why an edit can require looking beyond the changed letters. The toolkit was first developed for English, and the authors mention a German adaptation when describing how they extended it to Hindi.

For the Hindi classification, StanfordNLP supplies grammatical tags and lemmas. A lemma is the underlying dictionary form used to group related surface forms. The category and the lemma answer different questions about the edited material. The category can show that both sides are verbs, while the lemma can show whether they are forms of the same verb. This analysis concerns the recorded substitution. It is separate from the tagging step used to decide which words could be altered during training-data generation. The two procedures take different inputs and the paper names different taggers for them.

When the lemma and grammatical category stay the same, the basic classification is an inflection label for that category. In VERB:INFL, the left portion identifies the part of speech and INFL identifies the subtype. The paper gives an example in which huā changes to huī, marking a masculine-to-feminine distinction in forms of the verb glossed as “happen.” The same principle applies to an edit such as sadasya to sadasyon, illustrated as a change involving the case form of a noun. There are special cases. The authors add VERB:FORM for distinctions associated with verb tense and illustrate it with a set of changes that includes a move to an infinitive.

When the grammatical category remains the same and the lemma differs, the basic rule can give the edit the category name alone. A change from one adjective to another can therefore receive ADJ. The authors explain that many changes in this group are semantic substitutions. Their examples include a switch from a word meaning “common” to one meaning “ordinary.” Both terms can appear in similar surroundings, and a writer may choose one for reasons of sense or preference. The label records that the substitution stayed within the grammatical category while changing the lexical item. It gives the researcher a way to see edits for which restoring an ending would be irrelevant.

The other rules use form similarity at different levels. Edits that share a stem can be assigned MORPH. A stem is the recurring base identified in related forms. It may capture a relationship even in a case where the lemma-based rule did not give an inflection label. A sufficiently small edit distance can lead to SPELL, which marks a spelling change. The authors illustrate that category with alternative written forms in the data. The remaining unclassified edits are grouped under OTHER. The paper presents these as the basic principles and acknowledges exceptional cases in the actual categorization. It does not supply a complete priority scheme or spell out every threshold used by the categorizer.

Applying the classifier to HiWikEd gives the authors a way to describe what is in the test set before interpreting a system's score. They can ask how frequently the recorded edit changes the form of the same word and how frequently it changes the word itself. They can also group the evaluation by the annotated type. A postposition result, for instance, can be considered separately from the overall result across the many kinds of changes that survive the filters. The classifier is a measurement procedure in this study. It supplies tags for analyzing edits. The systems that learn to produce corrected sentences are trained on the artificial pairs.

Experiments and results

The data and the basis for comparison

In the synthetic training split, the paper reports 2.6M sentences and 45.5M tokens, with an error percentage of 5.7. The synthetic validation split has 0.5M sentences and 9.1M tokens, also with an error percentage of 5.7. These statistics describe the synthetic material after construction and splitting. A pair has one artificial error, but the sentence still contains the rest of its words. The token-level error percentage therefore describes the sparse placement of corruption within the input text. The count of sentences describes how many contexts and paired targets the procedure supplies.

HiWikEd, the test split, contains 13K sentences and 208K tokens. Its reported error percentage is 6.7. The measure counts the edits as errors for the purpose of describing the corpus, even though the authors later identify changes that fall outside grammatical correction. The training and test statistics summarize quite different processes. In training, the changed position was chosen by the researchers' pipeline. In the test set, the changed material is what an editor revised, subject to the extraction filters. The percentages say how dense the recorded differences are in the respective splits. They give little information on their own about whether the two sets contain comparable grammatical problems.

The system comparison uses the synthetic corpus for training and HiWikEd for testing. That setup evaluates transfer from generated changes to human revisions. It also places all the systems under the same broad data conditions. The displayed evaluation scores are on HiWikEd, either on the full test set or for a named edit type. The synthetic validation set belongs to the training setup. The reported HiWikEd scores should be read as evidence about the Wikipedia revision task, where the expected output is the selected later version of a sentence.

The systems and the training settings

The basic Transformer is the feasibility baseline. It uses the transformer_base setting from Tensor2Tensor, and the authors give its training duration as 5K epochs. Its job is to receive a Hindi sentence and return the corrected Hindi sentence, in line with the within-language translation view. A basic architecture gives the authors an initial point of comparison for that task on the new corpus. The paper calls this system Transf in its results. Tensor2Tensor for Neural Machine Translation

The multilayer convolutional encoder–decoder, MLConv, is one of the approaches the authors adapt from English grammatical correction. An encoder represents the input, and a decoder produces the output. The system's distinguishing architectural description in this comparison is its use of multiple convolutional layers. The paper reports training it for 5 epochs using the default hyper-parameters. Hyper-parameters are settings that govern how the training or system is configured. The authors identify this setup to say which version of the approach they tested. The reported schedule describes the experiment rather than putting the systems on a common computational budget.

The copy-augmented Transformer, CopyAug, is the other specialized correction approach. Copy augmentation gives a system a way to carry material from the input into its output. That is a natural fit for training examples in which a change affects a single word and most of the sentence should survive. Copying is part of the architecture being evaluated. It does not explain by itself how the system recognizes the offending form or chooses its replacement. In preparing the Hindi experiment, the authors skip the pretraining stage involving a denoising autoencoder and train for 9 epochs. That omitted stage would ordinarily train a system to reconstruct text from a corrupted version before the main correction training. The Hindi result comes from the adapted recipe without that stage.

All of these systems can leave text unchanged in a proposed output, but they do not approach the task through identical architectures or reported training schedules. Their comparison is between complete configurations on a common test set. The synthetic pairs provide the desired sentences, which include the many unchanged words as well as the form to repair. They do not present the system at test time with a highlighted word and a list of possible endings. The output sentences have to be scored for what they actually change and what text they produce.

How the scores read the output

The authors use F0.5 with the MaxMatch scorer to evaluate edits. At a practical level, edit precision asks how much of what a system changes agrees with the reference, and edit recall asks how much of the expected correction it retrieves. F0.5 combines those quantities with more weight on precision. An output can be weaker because it leaves a needed correction undone, or because the change it makes does not correspond to the recorded repair. MaxMatch is the scoring method used to compare the system's edits with the reference edits. This is especially pertinent to a task where leaving most of the text intact can be appropriate.

GLEU provides a complementary assessment of the generated text. It considers overlapping sequences of words in the output and reference while taking account of the source. Its score offers another view of closeness to the recorded correction. When reading the results, the important distinction is the unit being rewarded. F0.5 summarizes success in terms of proposed and expected edits. GLEU assesses the resulting wording through local sequence agreement. A system can produce an output with substantial agreement in wording while failing to make a particular reference edit. That possibility is especially relevant here because the extraction procedure favors pairs that already differ in relatively little text.

The authors give both metrics for the full data and for selected edit categories obtained with ERRANT. Per-category scores ask what happens in the part of the evaluation associated with a particular kind of edit. They can reveal whether the overall ordering also holds for the categories the synthetic procedure targets. They remain measures of performance against the revision-derived references. The category labels help describe and group the evaluation material, and the scores measure the correction outputs under that grouping.

Results across the full test set

The copy-augmented system leads on both metrics for the full HiWikEd test set. Its F0.5 is 0.49, followed by MLConv at 0.35 and the basic Transformer at 0.31. The GLEU ordering is the same. CopyAug scores 0.80, MLConv scores 0.73, and the basic Transformer scores 0.69. The agreement in ordering matters because the ranking holds for both the edit-centered criterion and the criterion based on the output wording. It gives the authors a basis for reporting CopyAug as the strongest of their tested systems on the full dataset.

Correction systems on the full HiWikEd test set by F0.5

The copy-augmented Transformer has the strongest match to the recorded edits.

Correction systems on the full HiWikEd test set by F0.5Basic Transformer: 0.31Basic Transformer0.31MLConv: 0.35MLConv0.35Copy-augmented Transformer (this paper): 0.49Copy-augmented Transformer (this paper)0.49
The numbers
System or settingF0.5
Basic Transformer0.31
MLConv0.35
Copy-augmented Transformer (this paper)0.49

Correction systems on the full HiWikEd test set by GLEU

The copy-augmented Transformer also leads on the measure of output wording.

Correction systems on the full HiWikEd test set by GLEUBasic Transformer: 0.69Basic Transformer0.69MLConv: 0.73MLConv0.73Copy-augmented Transformer (this paper): 0.80Copy-augmented Transformer (this paper)0.80
The numbers
System or settingGLEU
Basic Transformer0.69
MLConv0.73
Copy-augmented Transformer (this paper)0.80

The aggregate scores reflect a test set with a broader range of changes than the synthetic training set. Spelling changes and content substitutions contribute to the evaluation alongside inflectional repairs. Thus the full-set result describes reference matching across the selected Wikipedia revisions, including cases where the systems were given little reason during training to make the same kind of change. The targeted results help locate the evidence for the central question about inflection. They also show why the full-set ordering should not be used to predict the winner in every category.

Results for each targeted inflection category

On HiWikEd postposition inflection, ADP:INFL, CopyAug records 0.70 F0.5 and 0.84 GLEU. MLConv records 0.66 F0.5 and 0.81 GLEU, and the basic Transformer records 0.30 F0.5 and 0.62 GLEU. Both specialized systems achieve higher scores than the basic system under both measures here. The category concerns changes like the genitive postposition alternatives in the authors' examples. The results show the systems could recover some of those relatively local changes in sentences where they were made naturally rather than by the generator.

On verb inflection, VERB:INFL, CopyAug scores 0.70 F0.5 and 0.87 GLEU. MLConv scores 0.65 F0.5 and 0.83 GLEU, while the basic Transformer scores 0.55 F0.5 and 0.79 GLEU. The basic Transformer has its strongest F0.5 among the displayed categories on this type. The copy-augmented system leads in both metrics, as it does for postpositions. Its matching F0.5 values across those two categories are a property of the reported scores. Each category is still a separate evaluation group, and their GLEU values differ.

Pronoun inflection, PRON:INFL, gives a different result depending on the metric. CopyAug has the highest F0.5 at 0.29, followed by MLConv at 0.26 and the basic Transformer at 0.06. On GLEU, MLConv leads with 0.86, followed by CopyAug at 0.71 and the basic Transformer at 0.67. Pronoun inflections therefore provide a case in which the system with the higher edit-based score differs from the one with the higher score for output wording. The figures locate that disagreement. They do not establish which particular sentences or changes produce it.

On adjective inflection, ADJ:INFL, the F0.5 scores are 0.39 for CopyAug, 0.36 for MLConv, and 0.06 for the basic Transformer. GLEU again favors MLConv, which scores 0.83, followed by CopyAug at 0.69 and the basic Transformer at 0.57. Together with the pronoun result, this shows that the F0.5 lead for CopyAug across the displayed categories coexists with a narrower GLEU lead. A reader interested in the quality of the resulting text for a particular category has reason to consult that column directly.

Correction systems on HiWikEd adjective inflection by GLEU

The convolutional system leads on output wording for adjective inflection.

Correction systems on HiWikEd adjective inflection by GLEUBasic Transformer: 0.57Basic Transformer0.57MLConv (this paper): 0.83MLConv (this paper)0.83Copy-augmented Transformer: 0.69Copy-augmented Transformer0.69
The numbers
System or settingGLEU
Basic Transformer0.57
MLConv (this paper)0.83
Copy-augmented Transformer0.69

What a correction looks like

The paper illustrates the experiment with a sentence from the Wikipedia article on Amer Fort. It describes the king bowing. The source uses gayā, which the authors gloss as masculine singular, while their analysis treats the noun phrase as masculine plural. The reference uses gaye, the corresponding plural form in the example. The basic Transformer returns the source wording, leaving gayā in place. MLConv and CopyAug produce gaye and match the reference. The change is small enough that the rest of the sentence can be carried over as it stands.

This example puts the intended transfer into concrete terms. The synthetic examples teach a system that an otherwise familiar word may need to change its inflection in context. In the test sentence, the authors did not fabricate the wrong form for the experiment. The recorded revision supplies the repair. The successful outputs preserve the surrounding passage and alter the grammatical form identified by the edit. The example also shows a difference between the approaches without requiring a discussion of their internal decisions. The authors present the outputs themselves, so the observable result is whether a system made the particular substitution.

What the ablations show

Comparisons the paper makes

The paper reports no component-removal ablation. It compares complete systems, breaks their test performance down by annotated edit type, and examines both the makeup of HiWikEd and an example of system behavior. A component ablation would alter a specific part of an otherwise comparable setup, such as removing the copy mechanism while retaining the rest of the training configuration. The three systems in this paper share the synthetic training source and the revision-based test, but differ in architecture and reported training recipe. Their relative scores establish a ranking under those experimental conditions.

The overall lead of CopyAug is consistent with the idea that carrying input text forward is suitable for local repair. The task gives the system a lot of material to retain and a small amount to change. CopyAug has a mechanism designed for retaining input material, and it does best on both aggregate metrics. The comparison does not isolate the usefulness of that mechanism from the other differences between the systems. The basic Transformer contributes a feasibility baseline, but substituting its full results for those of a copy-free version of the same configuration would confound the component with the rest of the setup.

The omitted denoising pretraining stage presents a similar interpretive distinction. The authors say they skip it for the Hindi CopyAug run. The reported result shows how that configuration performs after synthetic correction training. There is no paired result for a version with denoising pretraining under the other conditions used in the Hindi experiment. The omission is part of the setup, and the performance is compatible with synthetic supervision being useful in its absence. The experiment leaves open how adding that pretraining would affect the result.

What the breakdown reveals about the target

HiWikEd's composition is the first analysis that bears on the choice of training errors. The authors report that inflection accounts for 49.92% of all categorized errors in that dataset. This makes inflection a substantial part of the benchmark under the Hindi ERRANT rules. It gives a reason to spend training capacity on this kind of repair even in a corpus that contains many other changes. The denominator is the set of edits the authors selected and classified. The figure describes the importance of inflection among those revisions, with the length, substitution, and other filters already in effect.

The performance breakdown shows that the targeted categories vary in how well systems recover the reference edits. Postposition and verb inflection yield the highest reported CopyAug F0.5 values among the targeted categories. Its adjective and pronoun F0.5 scores are lower. The basic Transformer also gives a stronger F0.5 for verbs than for adjectives or pronouns. Since the generator supplies inflectional supervision, the differences show that membership in a targeted family of errors is compatible with a wide range of outcomes. The reported scores alone cannot distinguish whether those differences arise from the kinds of contexts available for training, the grammatical distinctions involved, the makeup of the test cases, or some combination.

The contrast between metrics adds another layer to that observation. The adjective and pronoun groups each favor CopyAug on edit matching and MLConv on GLEU. For verb and postposition inflection, both measures favor CopyAug. This comparison is available because the authors evaluate the same test categories with different scoring approaches. It makes the scope of the claim about the strongest system precise. CopyAug leads on the full test and on edit-based performance in the displayed groups. Its lead does not extend to every group when the unit of measurement is the output wording.

The paper's worked example helps a reader understand what the higher-scoring systems sometimes achieve. Both specialized systems change the inflected word in the illustrated verb case, while the basic Transformer preserves it. The example is evidence of a successful repair by each specialized system, including the one without the copy augmentation described for CopyAug. The aggregate scores establish how the systems compare across the data. The example lets the reader inspect a particular successful change that fits the training methodology, with no need to infer it from the metric alone.

What the training and test contrast establishes

A central feature of the study is its use of different error sources at training and test time. Success in reproducing a Wikipedia repair shows that the input-to-target mapping can carry over beyond undoing an error generated directly for a test sentence. The systems encounter real editorial choices during evaluation, filtered to retain small changes. The evidence is strongest when a recorded edit clearly repairs the sort of agreement distinction illustrated in the training examples. The paper's category scores and its example each supply a view of that transfer, at different scales.

The study does not report a same-architecture comparison against training without synthetic errors or against a generator aimed at another kind of corruption. It therefore establishes the feasibility of the reported synthetic-training path, with scores on a benchmark distinct in how the errors were obtained. It leaves the contribution of specific generation decisions unmeasured. For example, the paper does not compare choosing an ending at random with a different way of choosing plausible errors, nor does it vary the rule that only one word is changed in a generated pair. The choices define the experiment whose results are reported.

The mismatch between narrow training and broader test revisions also gives the authors a plausible account of modest full-set performance. A system trained to repair endings may correctly preserve a sentence where an editor simply prefers another term, yet fail to match that editor's reference. A genuine spelling mistake can likewise require an operation the generated examples did not emphasize. The paper identifies such cases through its categorization and manual observations. That explanation follows from the known contents of the corpora. The experiment does not quantify how much of the full-score shortfall should be assigned to each source of mismatch.

Limitations

Limits the authors identify

The authors describe uneven correspondence between the training examples and the benchmark. Training focuses on generated inflectional errors, while HiWikEd contains spelling and semantic changes as well. The test also includes grammatical edits outside the inflectional categories emphasized by the generator. The paper mentions ADJ:FORM as one such case. These differences matter when interpreting the full score, since matching the later revision can require a change unlike those the system was trained to make. The authors propose expanding the set of error types in the synthetic corpus so that a larger share of the test changes falls within the scope of the training.

The later revision of a sentence is an imperfect reference for grammaticality. On manual inspection, the authors found edits they regarded as plainly incorrect and others they read as stylistic. A system trained to make necessary repairs could leave the earlier wording alone in a stylistic case. Against a reference constructed from the revision, that choice may still miss the expected edit. The authors propose manual filtering and annotation of HiWikEd to address this problem. The proposal follows directly from what they observed after automatic extraction and categorization.

The discussion also points to the spelling errors encountered during extraction. The authors say they discarded spelling material in pursuit of their grammatical focus, and they describe spelling errors among the edits that remain in HiWikEd. The benchmark consequently includes a spelling category, alongside their observation that the extraction process surfaced material that could be useful for spelling correction. Their suggestion concerns a potential resource and a different training target. The correction systems evaluated in the paper receive the synthetic inflection pairs.

The authors present adaptation to other Indic languages as a possibility. They name Marathi and Bengali in their discussion. The general steps can be described without referring to a particular Hindi ending. A researcher starts from existing text, chooses eligible grammatical forms to alter, and uses grammatical or lexical analysis to classify real edits. Carrying out those steps for another language would depend on having appropriate forms, rules, and analysis resources. The paper reports its construction and evaluation for Hindi. The observations about other Indic languages concern where the approach could be applied.

Limits that follow from the setup

HiWikEd measures correction on short, filtered sentences from an encyclopedia's revision history. Each of those conditions shapes the kinds of examples that are available. The token-length limits narrow the range of sentences. Restricting the set to substitutions favors corrections that can be expressed as replacing existing material. Excluding certain changes adds further selectivity. An evaluation assembled this way is well suited to asking whether artificial inflectional substitutions transfer to similarly local revisions. The same setup gives limited coverage of, for instance, grammar repairs that need an insertion, deletion, or broader rewrite.

The finding that inflection is common should be read with that selection in mind. The reported proportion is among edits classified in HiWikEd. A corpus of learner essays, longer documents, or unfiltered revision histories could offer a different distribution of errors. The study does not sample those kinds of writing. Nor can the HiWikEd percentage establish how frequently an arbitrary Hindi sentence contains an inflection error. It gives the composition of a collected set of changes after filtering and automatic categorization, which is a different measurement from the prevalence of mistakes across unselected text.

The annotation rules contribute an additional condition to the percentage and to the interpretation of category-level results. The basic inflection judgment relies on the same lemma and grammatical tag appearing on either side of a change. Both analyses are obtained automatically. If the tagger assigns a different category or lemma to an unfamiliar or erroneous form, that decision can affect the edit label. The paper does not report validation of those labels against an independently annotated Hindi sample. Its grammatical examples explain how the scheme is intended to work. The frequency and performance breakdowns inherit the assignments the tool makes on the whole corpus.

On the synthetic side, treating the Wikipedia originals as largely grammatical is a practical assumption. Their role as targets gives any pre-existing problems in that text a route into the training pairs. The authors also select an alternative form from a table on the expectation that the replacement will create an error. The change can be defined precisely at the word position, whereas the judgment that the altered sentence is unacceptable is a contextual question. The paper illustrates clear cases of disagreement. It does not report a manual estimate of how often arbitrary retained pairs realize that intended contrast.

A generated pair changes a single word and leaves the rest of the context intact. Real revisions can address more complicated patterns, including cases where cues for one edit are affected by another problem in the sentence. The synthetic training design gives cleaner evidence about what it means to restore a particular form. It provides less direct supervision for deciding among interacting edits. Likewise, grouping variants of an original within one synthetic split protects against a specific kind of training and validation overlap. The paper does not report a separate audit of overlap between the synthetic source text and the test articles, both of which come from Hindi Wikipedia.

The experiment evaluates against a recorded revision for each test input. A repair can be linguistically reasonable and still use different wording from the selected reference. Conversely, a match to the recorded wording can score well where the reference itself reflects a stylistic choice or a change in content. These are consequences of using naturally made edits as the target. The authors' manual observations demonstrate that the issue occurs in the corpus, while the reported metrics are still valuable for the narrower question of how well a system reproduces those references.

Finally, the system scores describe the configurations and schedules the authors tested. The comparison does not supply run-to-run variation or a matched component study. Differences in the reported scores support claims about those observed outcomes. They leave the reliability of small category-specific separations across repeats unclear, and they do not determine which part of a configuration would account for any advantage in a further experiment. The paper's contribution is to make such questions testable for Hindi through a pair of corpora, an analysis procedure, and an initial set of comparable results.

What came after

Later citing work includes two efforts that return to grammatical correction in other languages and one that addresses a different task in a related low-resource setting. The connection to synthetic data is clearest in the Bangla correction work. Its title identifies error categorization, synthetic data, and evaluation as parts of the study, and places them in an approach using large language systems. Those are recognizable counterparts to the Hindi paper's analysis of edit types, construction of artificial inputs, and assessment of corrections. The citation establishes a link between the studies. The stated scope of the Bangla work does not establish that it uses the Hindi ending tables, the same classification rules, or the HiWikEd benchmark. Leveraging LLMs for Bangla Grammar Error Correction

The later Urdu work takes up corpus generation for grammatical correction. Its relationship to the Hindi study is at the level of the resource problem. A correction system needs examples that connect input text with an intended repair, so corpus construction is a research task in its own right. The Hindi paper addressed it with artificial forms for training and filtered revisions for testing. The Urdu work's topic shows that building corpora remains central in another language. The citation and title leave open which of the Hindi paper's specific construction choices, if any, the Urdu study adopted. Corpora Generation for Urdu Grammatical Error Correction

The multilingual South Asian study cites the Hindi paper in work on coreference resolution, the task of identifying expressions that refer to the same entity. Its stated task differs from assigning error types or repairing a sentence. The common setting is work on South Asian languages with limited resources. That makes it a broader instance of later research citing the Hindi study, with the connection visible at the level of language coverage and resource constraints. The citation alone leaves the role of the Hindi datasets and correction procedures in that study unspecified. Multilingual Coreference Resolution in Low-resource South Asian Languages

The Bangla and Urdu papers continue the research questions most directly visible in the Hindi experiment. The Bangla work couples artificial examples with categorization and evaluation, while the Urdu work foregrounds the creation of correction data. The coreference study extends the citation record into a different language-processing task. The Hindi paper's own evidence remains the comparison it set up between deliberate word-form changes and naturally recorded edits, a way to ask what targeted supervision can accomplish when a large collection of manually corrected sentences is scarce.

Cite

Cite as Ankur Sonawane, Sujeet Kumar Vishwakarma, Bhavana Srivastava and Anil Kumar Singh. 2020. Generating Inflectional Errors for Grammatical Error Correction in Hindi. Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing: Student Research Workshop.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2020.aacl-srw.24

@inproceedings{sonawane2020generating,
  title = {{Generating Inflectional Errors for Grammatical Error Correction in Hindi}},
  author = {Ankur Sonawane, Sujeet Kumar Vishwakarma, Bhavana Srivastava and Anil Kumar Singh},
  booktitle = {Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing: Student Research Workshop},
  year = {2020},
  doi = {10.18653/v1/2020.aacl-srw.24},
  url = {https://doi.org/10.18653/v1/2020.aacl-srw.24}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/sonawane-2020-generating-inflectional-errors-grammatical-error/