Elamur Research

Bulgarian Grammar Error Correction with Data Augmentation and Machine Translation Techniques

Paper · 2024 · Bozhidar Klouchek and Riza Batista-Navarro

Summary

A Bulgarian writer choosing the ending of a noun or the form of a pronoun has to consider what the word is doing in the sentence. A software editor faces the same decision. It also needs examples of the choices writers get wrong, paired with the wording that would fix them. Klouchek and Batista-Navarro address a shortage of publicly available Bulgarian examples by taking existing sentences and introducing mistakes themselves. The original wording gives them a ready-made answer for each exercise in grammatical error correction.

The authors release a dictionary containing 1,147,600 entries, a collection of 23,719 spelling pairs, and a collection of 7588 grammar pairs. The dictionary records both base and inflected forms and can distinguish a noun from an adjective with the same spelling. Some rules for making spelling pairs draw on pronunciation, such as the loss of voicing at the end of a word. The grammar rules alter noun articles, pronoun forms, verb endings, or the agreement between a noun and an adjective. Every pair retains the source sentence, whose correctness the authors take as a starting assumption.

The correction study uses 3090 of the grammar pairs, restricted to article and pronoun errors and filtered by sentence length. The authors train multilingual T5, or mT5, to turn the altered sentence back into the original. Both sides are Bulgarian, so the change from source to target is an edit rather than a change of language. The procedure applies the source-and-target setup of machine translation.

On the 309-pair test split, the adapted mT5 reaches 68.18% on F₀.₅, a score that puts more weight on making justified edits than on finding every error. Its precision and recall both exceed those of gpt3.5-turbo and BgGPT under the instructions the authors tried. The prompted systems frequently recovered the intended form and also recast some of the surrounding wording. Those extra changes can lower precision even when the revision sounds natural. The authors report that a survey of 67 native Bulgarian speakers favored mT5 for the selected cases in which every candidate gave a different answer. Both evaluations concern a specific job: restoring article and pronoun forms in sentences altered by the authors’ rules. The released collections cover a wider range of editing problems.

Deep dive: Bulgarian Grammar Error Correction with Data Augmentation and Machine Translation Techniques

How Bulgarian grammar correction learns from deliberately introduced errors, and how mT5 compares with prompted systems on article and pronoun repairs. · about 36 minutes to read

The problem and its context

Choosing a form in context

The Bulgarian verb доближавам, which the authors gloss as approach, has 51 forms in the account they cite. A writer uses a particular form to convey grammatical information, including properties of the action and its timing. The same general issue arises with nouns and pronouns. The identity of a word and the form it takes are closely related decisions, but recognizing the word solves only part of the editor’s problem. The study begins with the demands that this kind of inflection places on tools for Bulgarian morphology.

The error categories illustrate what an editor has to attend to. For a masculine noun, the article ending can depend on how the noun is used. For a pronoun, the choice can depend on whether it serves as subject or object, or on the number or gender required in context. An adjective can be spelled exactly as it appears in a dictionary and still disagree with the noun it describes. In cases like these, the surrounding words supply the evidence for a change. The editor needs to preserve the intended choice of word while repairing the grammatical information expressed by its form.

Spelling can likewise call for different kinds of evidence. In the paper’s examples, one alteration results in a string a reader might recognize as a misspelling. Another lands on a different word that can be spelled correctly in its own right. In an automatic check, a word list can help flag the former. Deciding whether the latter belongs in the sentence requires considering what the sentence says. This explains why the authors develop both a word inventory and collections that keep the whole sentence available.

The authors connect the shortage of editing resources to their motivation of supporting Bulgarian literacy. They cite a literacy rate of 98.7% as of 2011 and discuss an international assessment in which young Bulgarian students performed below the average across the countries tested. The figures concern different populations and measures. The paper uses them to motivate better language resources and software. Its experiment focuses on an editing task that can be measured by comparing the corrections produced with answers established in advance.

What existing resources made possible

BulTreeBank, developed at the Bulgarian Academy of Sciences, was an early large effort to curate Bulgarian linguistic data. The authors also discuss CLaRK, a system for building annotated corpora that can assign grammatical categories and extract relationships among words. These capabilities are useful even when the original purpose of a corpus differs from correction. An investigator can search for words with a particular grammatical property and use the results to locate positions where a proposed error could occur. Assigning these categories to words in context is known as part-of-speech tagging.

The Bulgarian resources discussed in the paper also include collections of legislative and medical language and collections of speech. Each gives researchers access to material from a particular domain or medium. A correction pair has a different structure from an ordinary corpus entry. It records the problematic wording together with a corresponding revision. The paired answers let a researcher show an automatic editor examples of the desired intervention and later measure whether it makes the same intervention on other sentences. The authors identify publicly available Bulgarian data in this form as a gap.

A dictionary poses a different access problem. The official online dictionary of the Institute for Bulgarian Language is available for consultation, but the authors describe it as centered on base forms, less dependable for recognizing words of other etymological origins, and inaccessible as a complete bulk collection. Those constraints matter for software designed to look up the forms appearing in a document. A lookup on the written form will miss an inflected entry if the application has access only to the canonical form and has no way to relate the two. That canonical dictionary form is called a lemma.

Earlier Bulgarian correction research, as the paper describes it, included detecting failures of noun–adjective agreement and exploring grammar-based checking. The authors also cite work on spelling variation in noisy text. That work drew on historical Bulgarian newspapers, a source they regard as different from the modern communication that motivates their study. They had found no earlier use of machine translation for Bulgarian grammar correction at the time of writing. Their approach draws on earlier descriptions and tools for Bulgarian to create the data needed for an experiment of that kind.

Where correction examples can come from

A corpus of learner writing can provide sentences containing errors that people actually made. Annotators can work through that material, identify the problem in context, and record a correction. The paper cites English and Chinese work using authentic learner material, and it mentions correction data for English and German in its discussion of resource availability. Collecting and reviewing suitable writing makes that route possible. For Bulgarian, the authors describe a particular shortage of publicly accessible learner text that could serve this purpose. Linguistic annotation

The augmentation methods surveyed in the paper generate faulty sentences from text already available. One route is to translate a sentence into another language and back, taking advantage of grammatical problems that may appear on the return trip. Another is to specify an operation and apply it where the source sentence permits it. The Bulgarian study takes the second route. For example, the researchers can define a particular change to a pronoun and recognize the resulting pair by the category of that change. The starting sentence, available throughout, provides a proposed correction.

Using a rule means the researchers can decide what they want an example to contain before looking for a place to create it. The source text and its grammatical variety then determine which examples they can actually get. This gives augmentation a concrete role in the study. It supplies supervision for a trained corrector and organizes that supervision by the linguistic phenomenon of interest. Earlier work motivates this use of augmentation when routes that depend on annotated learner material are difficult to pursue. Low-resource languages

From statistical translation to generated revisions

The paper traces translation-based correction to work that treated the flawed sentence as an observed sequence and the repaired sentence as a probable target. Under statistical machine translation, the aim is to find the target with the highest probability conditional on the input. The source and target can differ in length. The paper notes that a separate estimate of fluency frequently supports this process. Its example of early work in the area is a system for noun errors in English. Correcting ESL Errors Using Phrasal SMT Techniques

Neural machine translation retains the idea of a source and a target while using a neural network to generate the correction. The paper credits Yuan and Briscoe with the first application of neural translation to grammar correction. It describes subsequent work using recurrent, convolutional, and attention-based architectures. A motivation it draws from this history is the ability of neural approaches to generalize to errors beyond the ones encountered during training. The Bulgarian study uses the translation framework to investigate a more closely defined set of errors. Grammatical error correction using neural machine translation

The authors cite Russian correction research for the importance of training data in applying translation methods to a language with rich inflection. They also point to encouraging prior work with mT5 on Ukrainian. These precedents inform two choices in the Bulgarian project: to develop a source of paired data and to begin with a system that already works across languages. The resulting training problem is to produce an edited Bulgarian sentence from a Bulgarian input whose problematic form was chosen by a rule. Grammar Error Correction in Morphologically Rich Languages: The Case of Russian

The method, step by step

Work backward from the intended sentence

Imagine that the sentence available to the researchers already has the intended noun ending. A rule supplies a different ending for that noun, and the researchers preserve both versions. This reverses the order in which an editor usually encounters the task. During data construction, the researchers start with the intended form and create the input. During training, the artificial input comes first and the unaltered sentence is the expected output. Every generated example thus carries a record of what the procedure changed.

Two kinds of work keep this process tied to Bulgarian. The researchers define eligible changes using properties of the language, and they process the source text to find positions where those changes can be applied. A suitable position for dropping a doubled consonant is identified by its letters. A suitable position for changing an article requires a grammatical label that distinguishes the relevant noun form. The requirements therefore depend on the kind of error, even though the procedure for recording the example is shared.

The dictionary makes words and categories available in a form suitable for lookup. The paired datasets serve a sentence-level purpose, preserving the contrast that gives each edit its meaning. The correction experiment follows just the grammar branch and uses only part of its output.

From Bulgarian source documents to tested article and pronoun repairs

The steps in order.

From Bulgarian source documents to tested article and pronoun repairsStep 1: Gather Wikipedia and OSCAR documents1. Gather Wikipedia and OSCAR documentsStep 2: Segment sentences and assign grammatical tags2. Segment sentences and assign grammatical tagsStep 3: Screen source sentences for length and verbs3. Screen source sentences for length and verbsStep 4: Induce an error and save the original4. Induce an error and save the originalStep 5: Filter for article, pronoun, and length criteria5. Filter for article, pronoun, and length criteriaStep 6: Allocate training, validation, and test pairs6. Allocate training, validation, and test pairsStep 7: Train mT5 to restore the source wording7. Train mT5 to restore the source wordingStep 8: Compare held-out edits and reader preferences8. Compare held-out edits and reader preferences

Make word forms available for lookup

The authors build the dictionary from Slovored and Rechnik, open Bulgarian collections selected for their coverage and use. Each entry associates a single written term with a grammatical category. The written term can be a base word or another word form in its inflectional family. Thus someone building a spelling checker can query the form visible in a sentence, even when it differs from the form under which a printed dictionary would organize the word.

Some source entries describe verb forms with several words. The paper uses ям, meaning eat, and the form ял to explain the issue. The latter can appear in expressions containing other elements that help convey the intended tense or construction. Keeping every expression intact would make a lookup of the isolated token a different operation from a lookup of the entry. The authors split such entries and collect the distinct character sequences, so a component can be recognized wherever it occurs. The resource’s unit of storage follows the unit the proposed spelling check would query.

The grammatical label is carried over from the source collections in simplified form. The scheme has 11 categories derived from BulTreeBank’s tags. Where a detailed tag such as Amsf or Ansd distinguishes particular adjective forms, the dictionary retains the broad category A. This compression leaves the surface spellings available and keeps a basic distinction among the grammatical jobs a spelling can represent. The fine differences encoded in the longer labels become important again in generating grammar errors.

The form син shows why the category remains worth storing. As an adjective it means blue, while as a noun it means son. The dictionary retains entries for both uses. If the goal is to recognize the spelling, either entry supplies evidence that it occurs in Bulgarian. If the goal is to determine which use is intended, the accompanying category gives an application alternatives to consider in context. The dictionary represents this ambiguity without trying to settle it for every occurrence.

Splitting source entries has a corresponding effect on what a successful lookup means. Finding a word in the dictionary supports the validity of the component spelling. The validity of a phrase containing it depends on properties of the whole construction. For the project, this is a reason to keep the dictionary and the paired data in different forms. The lookup is organized by terms and tags, whereas each correction item contains enough text to show what form the generation rule changed and where it occurred.

Specify the output of error generation

The paper describes augmentation as a procedure over source sentences and a catalog of possible error types. Its output fields and their relationships can be written as follows.

(c, e, t) ∈ P, with c ∈ C and t ∈ T

The parentheses group a record, and the commas mark its fields. The symbol c denotes a sentence taken as correct, e its altered counterpart, and t the type of change. P is the collection of unique output records, C is the collection of source sentences, and T is the collection of available types. The membership sign ∈ says that the item on its left belongs to the collection on its right. The conditions after with identify where the original and the error label come from.

Eligibility is central to the procedure. A source sentence can contain a verb and still have no word amenable to a particular article change. It can contain a consonant cluster and lack a vowel that fits the stress rule. The catalog of types describes possible operations, while the source sentences determine which operations have candidates. The paper specifies uniqueness for whole output records. This allows the same original to support different records if the resulting example or its error label differs.

The label preserves the reason the example exists. If a sentence in the grammar collection was produced by switching pronoun forms, the researcher can retrieve it as a pronoun example without inspecting every character difference. The label also permits a researcher to count generated items by class. Those counts depend on the generation rules and their opportunities in the source. The correction target itself is the original sentence, so the ability to recover that original can be evaluated separately from the label used to organize the data.

Use pronunciation and letter patterns to make spelling pairs

The authors begin the spelling branch with 28 Bulgarian Wikipedia articles. A Bulgarian pipeline implemented in spaCy identifies sentence boundaries, divides the resulting sentences into tokens, and assigns grammatical tags. A token is a unit produced by dividing the text for processing, such as a word that can receive a tag or be examined for a letter pattern. The authors discard sentences shorter than three words and sentences containing no verb. The filtering leaves 5817 sentences available as sources. Tokenization

The first pronunciation-based rule concerns unstressed vowels. The paper explains that Bulgarian vowels can be paired by where they are articulated. The rule substitutes the partner vowel at an unstressed position. Calling this an error category specifies a condition on the original position as well as a replacement letter. In the paper’s example, кръгъл becomes кръгал. A spelling editor trained on such pairs would encounter the changed written form in a sentence and be expected to restore the vowel appearing in the original.

Two further categories involve voicing, the distinction the paper uses to pair many Bulgarian consonants. The assimilation rule looks at neighboring consonants of different voicing and changes the earlier one to follow the later one. The sequence in постановка thus gives rise to the altered постанофка. The final-devoicing rule is triggered instead by a voiced consonant at the end of a word. It substitutes that consonant’s voiceless partner, as in масив becoming масиф. Position determines which rule applies: the neighboring consonant governs assimilation, whereas the end of the word supplies the condition for final devoicing.

Deletion accounts for two more categories. Where т or н is doubled, the generator can remove one of the copies. The consonant-cluster rule deals with specified sequences, including стн, здн, and щт. It removes the designated т or д. The paper illustrates the cluster operation by turning местно into месно. The distinction between these deletion categories lies in what the generator must find before making the change. The result of either rule is a sentence whose reference still contains the letter at the affected position.

A random-character category supplies spelling disturbances based on a character chosen at random. A final category uses letter replacement, removal, addition, or swapping to arrive at a different, correctly spelled word. The contrast between което, meaning which, and котето, meaning kitten, illustrates the latter case. Inspecting the letters can tell an application that the words closely resemble each other. It takes sentence context to decide whether the resulting word expresses what belongs there. This class deliberately allows a generated error to pass a test that checks spelling only by membership in a vocabulary.

The finished spelling collection contains 23,719 pairs across 7 classes. The altered side has 1-3 errors belonging to the same class; its partner preserves the original Wikipedia sentence. The decision to keep changes within a single class makes the label interpretable even for items with several altered positions. The authors provide the distribution of classes in a figure. The collection is released for spelling research, with no spelling pairs included in the training for the reported grammar comparison.

Add wider source material for grammar

The grammar branch uses the same 28 Wikipedia articles and adds 959,112 Bulgarian documents from OSCAR. The authors judged the Wikipedia prose suitable for constructing examples, but they found its style too uniform for the variety of grammar data they wanted. OSCAR includes openly collected online writing, which supplies more varied contexts. The authors acknowledge that grammatical quality in those documents may be less dependable. The additional material gives the rules access to a wider range of candidate sentences while also making the correctness assumption about the originals more consequential.

The grammar pipeline again identifies sentence boundaries and tokens and keeps sentences of at least three words that contain a token tagged as a verb. For grammatical tagging it uses the Bulgarian CLaRK component, available through Mate Tools. The labels here are detailed BulTreeBank tags. At the generation stage, knowing that a token is a noun is only the start. The process needs the features that identify the source form and distinguish it from the form that the rule can substitute.

For most of the grammar categories, the authors define groups of tags whose corresponding forms can be interchanged. Within a group the combinations supply directed mappings, from a tag found in the original to one that describes the desired erroneous form. Direction matters because the original determines the form that is eligible for replacement. Whenever the original contains the other member of a group, the opposite change can be considered. The swap stays within the group specified for that type of error.

The labels have a different role from those of the dictionary even though both draw on BulTreeBank. A broad category is enough to store the noun and adjective readings of син separately. To use a noun in the article rule, the generator needs to distinguish the relevant noun endings. It is the richer category information in the grammar pipeline that makes this particular intervention possible. The paper describes creating replacements by moving from a source tag to an alternative inflected form with the designated target tag.

Configure the grammatical changes

For article misuse, the authors use a group containing Ncmsf and Ncmsh. A form with either tag can be changed to the one with the other tag. The paper gives синът and сина as the relevant contrast. In its illustrative correction sentence, Emanuela sits on a chair, and the form of chair after на is what changes. The artificial error has столът, and the expected repair there is стола. Both variants are glossed as describing the same event. The point of the exercise is to choose the ending of the noun in the existing construction.

This example also anchors the direction of the training pair. When constructing the exercise the authors move from the source sentence containing стола to the altered one containing столът. A corrector receives the latter and is expected to produce the former. The concrete endings and the tag pair are the operational definition of the class. The paper’s prose uses definiteness terminology to describe the switch, but the example shows specifically which two word forms are involved and which is expected in that position.

Pronoun misuse covers changes in grammatical function and in gender or number. The distinction between subject and object forms is illustrated by който and когото. The paper also gives чиито changing to чийто as a change of the gender or number kind. The authors group related pronoun tags before building the directed alternatives. The groups give 2, 2, and 12 mappings, respectively. The paper reports 16 pronoun mappings overall. Their role is to constrain the generator to the contrasts specified for the category, so every pronoun carrying an eligible tag has a defined set of possible alternatives.

These pronoun examples involve replacing the inflected form rather than applying a fixed string ending wherever a pronoun is found. Which type of substitution is relevant depends on its tag group. Choosing the form back again for correction depends on the surrounding context. The subject or object contrast requires attention to grammatical role, whereas gender and number can require evidence from related words. A correct response has to recover the particular pronoun the source sentence used in that context.

The verb category works differently. The tag V-1p identifies first-person plural forms that can be considered, and the rule applies when the verb ends in м. The generator appends е, giving a change such as ядем to ядеме. The grammatical tag determines where the operation is eligible; the suffix rule determines the alteration. A catalog of pairs of replacement tags is unnecessary for this category because the transformation is defined directly on the end of the token.

Finally, the authors induce noun–adjective disagreement by changing the form of an adjective in a noun–adjective pair. The altered form can disagree in gender, number, or both. For example, the paper uses красива changing to красив. The target tag groups contain adjective forms that allow these contrasts. What makes a form inappropriate in an example is the agreement expected between the adjective and its noun. The contrast therefore needs the noun phrase context even though the generator edits the adjective.

The grammar collection contains 7588 pairs. Every altered sentence has one induced grammatical error, assigned to the category of the operation. The authors explain that the resulting distribution depends on how common the relevant tags are. To see why, consider the verb-suffix rule: its opportunities depend on finding the particular person and number, and then the requisite ending. For an article pair, the opportunities instead depend on the tagged masculine noun forms. Different candidate conditions lead to different yields from the same source text.

Choose the sentences for the training experiment

The correction experiment focuses on the article and pronoun categories, which the authors regard as especially common problems in written Bulgarian. Selecting those classes leaves 3297 candidate pairs. The authors next require both sentences in each pair to fall within a 300-character limit, treating longer examples as anomalous for this task. The result is 3090 pairs for training and evaluation. The filtering acts on the pair, so a source and its altered partner stay together as an example.

The authors reserve 72% of the selected pairs for training, 18% for validation, and 10% for testing. The training pairs supply the examples from which the corrector learns. The validation pairs are set aside to assess choices made during training, such as the size of parameter updates and when to stop. The test pairs are used in the comparison with the prompted systems. The experiment’s scope is fixed by the class and length filters before these roles are assigned.

The expected target in every training example is the full original sentence. In the chair example, recovering the original means using the appropriate noun form while retaining the event, participants, and wording around it. The supervised task gives value to that preservation because all parts of the expected sentence are available during training. Under this design, everything the generator leaves alone becomes part of the wording the corrector is asked to reproduce.

Train a system to return the revised sentence

The paper’s discussion of statistical translation expresses the source-to-target problem as the search for a correction that maximizes a conditional probability.

p(c₁, c₂, …, cₙ | e₁, e₂, …, eₘ)

Here p denotes probability, and the parentheses enclose the event and the information it is conditioned on. The vertical bar means “given.” The c terms denote elements of a possible corrected sequence, and the e terms denote elements of the observed erroneous sequence. The subscripts identify sequence positions, starting at the first element and ending at n or m. Thus n is the length of the candidate correction and m is the input length. Commas separate elements, and each ellipsis stands for the intervening positions in that sequence.

For their own neural procedure, the authors start from mT5-base, available through Hugging Face. T5 frames tasks as transformations from an input text to an output text. The paper describes the original T5 as working in English and adopts its multilingual successor for Bulgarian. The same interface lets the input and output express the same content in the same language while differing in grammatical form. T5 · mT5

The encoder reads the flawed sentence and represents its context. The decoder generates the revised text using that representation. This division of work lets the system read the whole input while producing a sentence it can compare with the expected answer during training. The complete target also makes the system’s output suitable for a direct comparison with the alternative revisions produced by the prompted systems. The architecture belongs to the family of approaches based on the transformer.

The paper describes adapting the pretrained system with erroneous and corrected sentence sequences. The error tags make it possible to build and select the training pairs. The learned task, as presented to mT5, is expressed through the sentences themselves. The input supplies the words and their context, while the target gives the desired result. Applying task-specific supervision to a system that has already been trained is known as fine-tuning.

Search for suitable training settings

The authors run a grid search, which means trying combinations from pre-defined lists of settings. The weight decay values are 0.1, 0.01, and 0.001. Weight decay constrains the weights as training proceeds. The learning rates are 0.00002, 0.0002, and 0.002. The learning rate controls the scale of updates during training. Batch sizes of 4 and 8 determine how many examples contribute together to an update.

They train each of the 18 combinations for 16 epochs and repeat the procedure three times, averaging the results. An epoch is a pass through the training data. The authors use validation loss to compare the runs. This quantity measures how well the trained system predicts the expected outputs on the reserved validation examples, with lower values preferred. It gives the authors a criterion for making training decisions before examining the correction comparison on the test split.

After examining the grid, the authors compare the lower learning rates in more detail. The final setup uses learning rate 0.0002, weight decay 0.01, and batch size 8. They choose 4 epochs for the final training because this gives the lowest validation loss in their experiments. The longer runs belong to the search over settings. The authors make the adapted mT5, the dictionary, and the spelling and grammar collections available through Hugging Face.

Experiments and results

How much of the new dictionary appears in the official one?

For the dictionary evaluation, the authors randomly draw 20,000 entries from the new collection and search for those entries in the Institute for Bulgarian Language’s official dictionary. They find 1292 of the sampled entries in that resource. They report that 93.51% are absent and say that most of those missing items are inflected forms. This outcome is consistent with how the authors describe the two collections: the official dictionary is organized around lemmas, while their release also records the forms these words take in use.

The sampling direction gives the coverage result a specific meaning. It asks what happens when terms from the newly compiled resource are looked up in the official dictionary. An application that checks the exact written form can benefit from the additional lookup entries even when the base word already appears in the official collection. The sample measures overlap for those entries. The frequency with which those forms appear in an independent body of Bulgarian writing would require a different sample drawn from that writing.

The comparison helps explain the rationale for keeping inflections alongside base forms. It also illustrates the difference between the paper’s two evaluations. A successful dictionary lookup locates an entry. A successful correction must recover a form that is suitable at a particular location in a sentence. The authors assess the latter with paired text and the specific changes these pairs are meant to elicit.

Compare the adapted corrector with prompted alternatives

The grammar test consists of 309 held-out pairs involving article and pronoun errors. The altered sentence is the input. The original is the gold reference, meaning the answer the scoring procedure treats as correct. The authors compare the adapted mT5 with gpt3.5-turbo and BgGPT on this material. They describe BgGPT as adapted from Mistral and both prompted alternatives as decoder-only systems, which generate a response autoregressively, using what they have generated so far when producing the next part.

The authors say they sought suitable encoder–decoder alternatives capable of handling Bulgarian and did not find them. The comparison instead asks how the specialized mT5 system performs alongside accessible Bulgarian-capable systems that can respond to an editing instruction. Those systems receive no worked examples in their prompts. The paper calls this zero-shot prompting, because the instruction and the input sentence must communicate the task at evaluation time.

The first instruction briefly requests correction of the mistake. The second asks the system to inspect the sentence and rewrite it with any errors fixed. For each instruction, the authors submit each input three times to each prompted system and average the resulting metrics to account for variation in generation. The setup gives each prompted system a direct editing instruction and a version that also uses the language of rewriting. The same test inputs and scoring rules apply under both conditions.

The systems enter the evaluation with different kinds of preparation. The adapted one has seen other pairs drawn from the same procedure during training. The alternatives are asked to infer the expected editing behavior from their instruction. The comparison consequently brings together the effects of specialization and the behaviors of the systems available to the authors. It directly answers the practical question of which of these configurations does better on the held-out pairs.

Decide which changes count as successful

The scoring rules classify changes at the token level. A true positive occurs when a wrong token is replaced by the form in the gold reference. A false positive occurs when an already correct token is wrongly replaced. A false negative occurs when an erroneous token is left unchanged. If a system changes an erroneous token but supplies a form other than the reference, the authors count both a false positive and a false negative. The changed token gives the system an attempted edit, and the missed answer still counts as a failure to recover the expected form.

Precision asks how often attempted changes are correct under these rules. Recall asks how much of the set of expected repairs the system recovers. A sentence can contribute to successful recall by regaining the targeted pronoun while also losing precision because the output changes another word. Likewise, leaving the sentence as it is preserves the surrounding wording but misses the correction. These outcomes show why it is useful to report both metrics alongside the combined score.

For grammatical error correction, the paper adopts the F-score setting that became standard with the CoNLL-2014 shared task. It specifies the setting as follows.

β = 0.5

The symbol β controls the relative weight of precision and recall in the F-score, the equals sign assigns its value, and 0.5 is the value used in the study. The resulting score, written F₀.₅, emphasizes precision. An output that makes the required repair while preserving acceptable text therefore fares better under this scoring preference than an output that also makes unwarranted changes.

This definition turns the reference into a specific test of an editor’s behavior. The reference gives the intended repair and embodies a decision to keep the original surrounding wording. The score therefore reflects success at recovering the edit the authors designed. Readers can use the precision and recall results to see where that performance comes from before comparing the combined values.

F₀.₅ on the Bulgarian article and pronoun test split

The adapted mT5 leads the prompted systems under both editing instructions.

F₀.₅ on the Bulgarian article and pronoun test splitgpt3.5-turbo, direct correction: 39.34gpt3.5-turbo, direct correction39.34BgGPT, direct correction: 35.03BgGPT, direct correction35.03gpt3.5-turbo, rewrite instruction: 40.74gpt3.5-turbo, rewrite instruction40.74BgGPT, rewrite instruction: 32.33BgGPT, rewrite instruction32.33Adapted mT5 (this paper): 68.18Adapted mT5 (this paper)68.18
The numbers
System or settingF₀.₅ %
gpt3.5-turbo, direct correction39.34
BgGPT, direct correction35.03
gpt3.5-turbo, rewrite instruction40.74
BgGPT, rewrite instruction32.33
Adapted mT5 (this paper)68.18

Locate the strongest differences in the scores

The adapted mT5’s precision is 68.12% and its recall is 68.61% on the held-out test split. These results put it ahead of every prompted configuration on both metrics. The particularly wide separation in precision explains why the precision-weighted score so clearly favors the adapted system. Its revisions more consistently match the kinds of edit that receive credit under the reference procedure.

With the direct correction instruction, gpt3.5-turbo scores 37.51% precision and 60.52% recall. BgGPT under the same instruction scores 33.07% precision and 59.87% recall. These recall results show that the systems recover many of the intended forms. Their precision results show that making the expected repair is often accompanied by a pattern of changes that agrees less closely with the reference.

Under the instruction that asks for a rewrite with errors fixed, gpt3.5-turbo reaches 38.62% precision and 66.02% recall, while BgGPT reaches 30.18% precision and 62.33% recall. The best recall among the prompted runs thus comes from gpt3.5-turbo with that instruction. The different precision responses also show that the effects of the instruction are specific to the system. BgGPT gains recall under the rewrite instruction and loses precision, so its combined score declines.

The authors report 95% confidence intervals for the quantitative metrics. For mT5 they report margins of ± 5.20 on precision, ± 5.17 on recall, and ± 5.19 on F₀.₅. The best prompted F₀.₅ result, from gpt3.5-turbo with the rewrite instruction, is reported with a margin of ± 5.48. These quantities describe uncertainty attached to the paper’s estimates for the benchmark comparison. The test set, the generation conditions, and the scoring procedure define the comparison to which the estimates apply.

The authors point to rewording as a source of extra edits. A prompted system can replace a suitable phrase with another fluent one while fixing the article or pronoun. This raises two distinct issues for the editor. The reference will preserve the phrase and can penalize the additional change. In use, the changed wording may influence meaning in a way the writer did not request. The paper observes that some rewrites introduce no fresh grammatical problem. To see how revised outputs are received by readers, the authors supplement the reference scores with a survey.

Ask readers to choose among different answers

The survey considers correctness, readability, and understandability. The authors start from 309 triplets of outputs, using the direct correction prompt for the prompted alternatives and collecting an mT5 response for the same input. They include triplets only when all the proposed revisions differ. This gives participants a distinct set of candidates to compare for any included sentence. The survey presents 13 questions, beginning with 8 article questions and ending with 5 pronoun questions.

Within an item, the candidates address the same source text. A reader can notice whether the required form was repaired, whether the rest of the text reads naturally, and whether a rewrite is preferable to a smaller intervention. The ranking records the reader’s overall choice among those outcomes. Converting the rankings to pairwise preferences gives the authors observations of which candidate is preferred when it is paired with a particular competitor.

The authors recruit through Bulgarian social media groups and AI communities. A total of 67 native Bulgarian speakers complete the survey, yielding 2613 pairwise comparisons. The main results discussion gives mT5 the highest overall preference count, 963, and reports that it was preferred in 57% of its comparisons with gpt3.5-turbo and 53% of its comparisons with BgGPT. These percentages describe preferences on the selected items. They express the share of choices between particular candidates, rather than the percentage of all test sentences judged correct.

The survey analysis also fits a Bradley–Terry procedure inspired by Chatbot Arena. It uses the pattern of wins across head-to-head preferences to estimate a score for each competing system. This puts the pairwise judgments on a common scale, with confidence intervals, while keeping the source of the evidence clear: rankings by the people who completed the survey. The authors report a statistically significant advantage for mT5 in this analysis. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena

The paper’s appendix introduces an ambiguity in the direction of the counts. Its caption describes rows as winners, but that reading of the entries conflicts with the mT5 lead reported in the main survey discussion. The preference figures above are the authors’ stated results in that discussion. To interpret an individual cell of the appendix as a win count, the direction of the table would first have to be resolved.

What the ablations show

The paper contains no formal component-removal ablation; its closest comparisons vary training settings and prompt wording, and its analyses examine the distribution of induced errors, the kinds of edits produced, and readers’ preferences.

Learning rate and training duration affect validation loss

The grid search gives the authors a way to see the effect of adapting the same pretrained system under different settings. The validation comparisons indicate that 0.002 is too high a learning rate for the runs they examine. They then examine 0.0002 and 0.00002 more closely, using the validation-loss plots for those rates. The authors find 0.0002 the better choice. This is evidence about predicting the expected targets on the reserved validation pairs under the configurations tried.

The training duration comparison serves a related purpose. Running the search for 16 epochs lets the authors observe performance across the course of training. They find the lowest validation loss at 4 epochs and use that duration for the final configuration. The criterion is performance on reserved examples. The paper gives the eventual correction scores for the selected setup, instead of a test F₀.₅ result for each combination from the grid.

Learning rate, weight decay, and batch size are settings within a procedure that already uses the same pairing strategy and the same starting architecture. The search can therefore show how sensitive that procedure is to the training choices. Establishing the contribution of an augmentation rule, a source collection, or the pretrained starting point would require comparisons that change those ingredients and assess correction outcomes.

Prompt wording changes the mix of edits

Each prompted system sees the same test inputs under the direct instruction and the instruction that asks for a rewrite. That comparison keeps the scoring and the set of intended repairs fixed. With gpt3.5-turbo, the rewrite instruction improves precision and recall together. With BgGPT, it improves recall while reducing precision. In the latter case the extra recovery of expected edits comes with enough loss in precision that F₀.₅ falls. This is an instance where a user interested mainly in getting more of the intended forms back could read the change differently from a user who places particular weight on preserving acceptable wording.

The instructions vary as whole pieces of text. The results show sensitivity to the instruction choice, while leaving open which part of the wording drove any specific change. They also make the preference survey’s prompt setting relevant. Participants compare outputs from the direct correction condition. A ranking between the corresponding sentences cannot establish how the same participants would rank the outputs of the rewrite condition.

The analyses suggest where the advantage arises

Precision gives the clearest numerical clue to what distinguishes the adapted mT5. Its gains are stronger there than in recall. The authors’ observation that prompted answers sometimes recast acceptable wording is consistent with that pattern. The training targets give mT5 repeated examples of local repairs embedded in otherwise preserved sentences. This supplies a plausible reason for conservative edits. The quantitative comparison itself establishes the pattern of scores, while a controlled study of how much text each system changes would be needed to attribute the effect to that training signal in isolation.

The human comparison adds a different observation about the resulting text. Native speakers can prefer a sentence for its fluency or for a better choice of grammatical form even if both properties are reflected in a single ranking. The reported overall lead for mT5 shows that its advantage is visible in those selected preferences as well as in exact reference scoring. The analysis does not give separate rankings for correctness and readability, so the relative contributions of those qualities remain open.

The source discussion is a descriptive analysis of what the generator finds. The authors explain that Wikipedia sentences offered too little stylistic variation and that adding OSCAR made it possible to obtain a more balanced collection of grammar errors. They also attribute part of the class distribution to the availability of the relevant tags. A training comparison holding all other settings fixed and varying the inclusion of OSCAR could measure how that broader coverage affects the final corrector. The paper’s analysis instead characterizes the source diversity and the generated data it makes available.

Limitations

Limits identified by the authors

The authors explicitly distinguish their dictionary coverage check from the validation of the sentence-pair resources. The grammar and spelling references are created by keeping source sentences presumed to be correct. Wikipedia is selected as sufficiently good for the project, while OSCAR is recognized as a source of more variable grammatical quality. A rule can successfully introduce its intended disturbance and still leave an original error elsewhere in the source sentence. In that case, following the reference exactly would restore the induced change while preserving the preexisting problem.

The authors also state that the trained corrector targets misuse of articles and pronouns and is unlikely to perform well on other errors in its present form. This is important when interpreting the breadth of the data release. The project includes verb-suffix and adjective-agreement errors in the grammar collection and publishes a separate spelling collection. The tested corrector learns from the selected article and pronoun pairs. The paper reports evidence for its behavior on those classes under the given test conditions.

A further boundary concerns factual content about people and events. The authors state that the system was not trained for factual accuracy and place such generation outside its scope. In the correction task, the source sentence supplies the content to preserve and the target supplies a grammatical form to recover. The evaluation of that transformation provides no factual check on anything the sentence asserts.

Limits implied by the construction of the benchmark

An induced-error benchmark can answer whether a corrector restores forms that were systematically changed in suitable source sentences. The conditions that make a sentence suitable matter for that answer. Training and testing both begin with tagged text and examples defined by the same error rules. Real writers can choose a different erroneous form from the one a rule substitutes. They can also make several mistakes whose effects interact. Either kind of departure would change the work a corrector has to do, and the paper gives no measurement on naturally occurring learner errors.

Class frequencies should be read in light of those eligibility conditions. The number of examples obtained for a change depends on the number of places where the source has the tag or spelling pattern the change requires. An abundant class in the generated data can indicate that the relevant forms are common in the chosen texts. To know whether Bulgarian writers in practice make that error particularly frequently would require observing erroneous writing directly. The augmented counts describe how the dataset was created, while the choice of articles and pronouns reflects how important the authors consider those problems.

The source filters further narrow the kinds of text represented. Both generation pipelines require a verb and at least three words. The selected grammar pairs also have the 300-character limit. The evidence therefore concerns editing relatively short sentences of the retained kind. It leaves open performance on longer sentences, short text fragments, and cases in which the correction requires context from elsewhere in a document. A grammar example also has only one deliberately induced error, so the test does not measure the ability to resolve several introduced grammatical errors together.

The paper reports the split proportions and test size, but it does not describe whether examples derived from the same original sentence or document are allocated as a group. Uniqueness of the labeled record allows different records to share a source. If such records were distributed across splits, a test sentence could resemble an original that had already contributed to training. The split description leaves that possibility unresolved. It gives no basis for estimating how frequently this happened or what effect it might have had.

Limits of the reference and system comparisons

The reference records the wording that existed before the artificial change. This makes an exact restoration a clear success for the central experiment. Other plausible revisions can be penalized even when they read acceptably and repair the intended grammatical problem. Conversely, an answer that reproduces the reference also reproduces any problems already present there. The scoring procedure establishes agreement with a known target and weighs unnecessary edits, with expert verification of every complete sentence a separate task.

The comparison also varies more than architecture. The adapted mT5 is trained specifically to recover the original sentences, while gpt3.5-turbo and BgGPT receive evaluation-time instructions. The study gives the outcome of those choices as combined configurations. It provides no matched comparison among systems trained on the same Bulgarian pairs, and it does not report how an untuned mT5 would score on the same task. Attribution of the lead to a specific architecture, degree of multilingual preparation, or quantity of task-specific data remains unresolved.

The prompt comparison captures genuine sensitivity within the evaluation, but it explores a short direct request and a more explicit rewrite request. Alternative instructions could communicate the benchmark’s preference for smaller edits more precisely. The outcome under such instructions is unmeasured. Likewise, the study tests prompting without worked examples, so its findings about gpt3.5-turbo and BgGPT are tied to that kind of task presentation.

The dictionary comparison has an analogous boundary. Sampling from the new collection and finding additional forms shows how the resources differ for the selected lookups. The design leaves the rate of valid entries, correctness of the tags across the collection, and coverage in fresh Bulgarian writing open. An end-to-end spelling evaluation would additionally need to measure whether the application accepts legitimate forms and identifies that a valid form can still be wrong for the sentence in which it occurs.

Limits of the reader survey

Requiring every candidate to differ makes the survey suitable for studying choices among distinct revisions. It also conditions the result on disagreement. The reported pairwise preferences cannot be read as the rate at which mT5 would win on the entire test set, including cases where the candidates coincide. The selection includes articles and pronouns in a fixed sequence, and the participants come from the recruitment channels the authors describe. The findings characterize the responses collected under this design.

The questions solicit a comparative judgment of whole sentences. Participants can respond to grammatical correctness, ease of reading, and clarity at the same time. The outcome is appropriate for asking which candidate a reader prefers, but it does not show which of those qualities produced the preference in a given comparison. The table-direction ambiguity also limits the conclusions one can draw from the raw pairwise entries. The paper’s narrative and its reported Bradley–Terry result give the authors’ interpretation of the preference data.

What came after

No subsequent citing study is identified. The authors propose collecting naturally occurring Bulgarian learner errors and extending research to punctuation. Learner writing would make it possible to study the forms that people actually confuse and to compare their corrections with repairs learned from deliberately altered text. Punctuation restoration and correction would extend the editing task beyond the word-form changes studied here. Both are directions the authors outline for future research.

Cite

Cite as Bozhidar Klouchek and Riza Batista-Navarro. 2024. Bulgarian Grammar Error Correction with Data Augmentation and Machine Translation Techniques. Proceedings of the 7th International Conference on Natural Language and Speech Processing (ICNLSP 2024).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{klouchek2024bulgarian,
  title = {{Bulgarian Grammar Error Correction with Data Augmentation and Machine Translation Techniques}},
  author = {Bozhidar Klouchek and Riza Batista-Navarro},
  booktitle = {Proceedings of the 7th International Conference on Natural Language and Speech Processing (ICNLSP 2024)},
  year = {2024},
  url = {https://aclanthology.org/2024.icnlsp-1.38/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/klouchek-2024-bulgarian-grammar-error-correction-data/