Elamur Research

Developing a Chunk-based Grammar Checker for Translated English Sentences

Paper · 2011 · Nay Yee Lin, Khin Mar Soe and Ni Lar Thein

Summary

A translation can put the main words in a recognizable order and still leave a reader to supply part of the sentence. In the Myanmar-to-English system studied by the authors, a translation about trees in a park can come out as “are trees in park.” The reader can infer the missing existential there and the missing article. The question is whether an automatic checker can find those gaps and fill them. The paper tackles this problem at the output of a statistical machine translation system. It also addresses mismatched determiners, subject–verb disagreement and incorrect verb forms in the resulting English sentences.

The checker works with chunks, short stretches of adjacent words that play a grammatical role. It starts with part-of-speech tagging, which labels words by grammatical category. Tree Tagger supplies the initial labels, and hand-written rules repair selected tagging mistakes using nearby labels. Rules written as a context-free grammar then group the tagged words. The resulting sequence may contain a noun chunk, a verb chunk and other units. The checker uses a trigram, a kind of n-gram, to score the current chunk using the preceding pair. A zero probability gives it a place to investigate. It considers alternative chunk types there, checks the resulting sentence patterns against patterns from training, and uses English grammar rules to decide what to insert or change.

A worked example begins with adjacent noun chunks for a man and a woman. A verb is the highest-scoring candidate at the point where the sequence fails, but inserting a verb chunk produces a full pattern the checker rejects. A conjunction chunk gives it a pattern it recognizes. The final rules can then put and between the noun chunks. The example shows what the use of chunks buys the authors. The checker can consider the grammatical role of an absent item before committing to a word.

On about 1800 test sentences, the reported F-scores are 83.94% for simple sentences, 79.61% for compound sentences and 80.73% for complex sentences. F-score combines precision, the share of attempted repairs judged correct, with recall, the share of actual errors correctly repaired. The system also classifies inputs as declarative or interrogative, though the reported correction scores are grouped by the simple, compound and complex distinction. The study shows how an English-side checker can identify and repair selected errors from this translation system. Its evaluation measures those repairs, and the worked example explains how the statistical and grammatical decisions lead to one of them.

Deep dive: Developing a Chunk-based Grammar Checker for Translated English Sentences

A chunk-based grammar checker uses trigram probabilities and English grammar rules to repair sentences translated from Myanmar into English. · about 33 minutes to read

The problem and its context

Why translated sentences need their own checks

The translation system in the paper converts sentences in Myanmar into English. Its target-side processing includes reordering the translated material and checking the resulting sentence for grammatical errors. The checker is needed because an English word sequence can remain incomplete after the translation and reordering work. The original and target sentences organize their grammatical material differently, and the output can lack words that English needs in the construction the system has produced.

The paper illustrates the point with an output that ends in a cup tea. The pairing of cup and tea is enough for a reader to work out the intended expression, but the English phrase needs of to connect them. The error concerns the relationship between words already in the output. Inspecting the spelling of cup or tea cannot reveal the missing connection. In the park example, two different gaps matter. The existential construction needs there before the verb, and the intended expression for the location includes the before park. The checker has to recognize what each position calls for.

An omission is only one part of the problem. A sentence may already have a determiner, the kind of word that includes articles, but the determiner may be unsuitable for the noun. An English clause may have both a subject and an identifiable verb, yet their forms may fail to agree. A verb expression may also use an incorrect form internally. These cases give the checker different jobs. In the omission cases it has to propose material that is absent. In the others it has to use information already present to decide whether some material should change. The paper treats these as tasks of grammatical error correction.

The authors distinguish grammar checking from spelling correction on practical grounds. They expect few spelling errors from a translation system whose words come from its corpus. What matters for their application is whether those words form acceptable stretches of English in context. Their account separates morphology, the analysis of words and their forms, from syntactic analysis, which assigns structure to a sequence. Both matter to the checker. A subject–verb repair, for example, depends on finding which groups serve as the subject and verb and on distinguishing the grammatical forms inside those groups.

The placement of the checker also determines what evidence it can use. The wider system has access to a bilingual corpus and processes information from the Myanmar sentence. The correction procedure described in the paper starts from the English output. The word sequence it sees has already passed through translation. Its job is to work out a plausible repair using English tags, chunk patterns and rules. This setup makes the paper principally a study of the grammar of the target sentence. The choice of a grammatically plausible repair and the choice of a faithful translation are distinct questions even when a particular edit serves both purposes.

Earlier approaches to grammar checking

The authors describe approaches based on full syntactic analysis, corpus statistics and hand-written rules. In the syntax-based approach as they present it, a system attempts a complete parse of the input. Failure to obtain a parse counts as evidence of a grammatical problem. This makes the description of acceptable sentences part of the grammar itself. A checker built this way relies on the range of constructions the grammar can analyze and on how its parser handles the sentence.

A statistical checker in the paper’s account can work more locally. It gathers sequences of part-of-speech tags from annotated text and records their frequencies. A sequence whose frequency falls below a chosen threshold can be flagged. A tag sequence lets a corpus example inform the treatment of input with different vocabulary. This approach makes frequency evidence part of the decision about acceptability. The threshold and the representation determine what kinds of context the checker can examine.

A rule-based checker also looks for grammatical configurations, but people specify the conditions under which they matter. In the Myanmar-to-English checker, this approach serves several functions. Some rules adjust the tag assigned to a word. Others tell the parser which tags form a chunk. Still others say what form or word an acceptable construction should contain. The authors value the visibility of such decisions and recognize the effort involved in writing the rules.

The proposed checker combines these traditions. Its parser organizes nearby words so that the statistical stage can work on groups. The corpus-derived information helps locate a suspicious transition and supplies possible continuations. A separate inventory of sentence patterns constrains the resulting sequence, and explicit correction rules determine what is possible within the chunks. The combination is motivated by the character of the task. An incomplete translation can still have recognizable groups, and the identity of those groups can guide a repair even when the initial sequence fails to fit an expected construction.

Earlier work on translation and other kinds of input

Some of the work the authors review addresses a similar decision about using grammar checking in translation. In English-to-Swedish translation, Stymne and Ahrenberg used the Swedish checker Granska to evaluate output and to postprocess it. Their setting used a factored, phrase-based statistical translation system. This is the closest precedent in the paper for putting a grammar checker after translation and asking it to perform work on the output. The Swedish study addresses both evaluation and editing, while the Myanmar-to-English article develops its own English-side procedure around chunks. Using a Grammar Checker for Evaluation and Postprocessing

The review also describes a pre-editor for Indian English built into AnglaBharti. Its corpus work drew on material in tourism and health. A pre-editor intervenes before translation, when changing the input can affect the translation process itself. The Myanmar-to-English checker has a different point of intervention. It receives the wording that the translator has already generated and searches that wording for English grammatical problems. The difference matters because a post-editor has to infer what went wrong from the shape of the target output.

The paper associates explicit rules with several jobs inside translation. Its discussion of Charoenpornsawat and colleagues mentions their role in syntactic processing, interpretation and use of context. That is a broader role for rules than making a local grammatical edit. In the proposed checker, the correction rules apply once the processing has produced an English sentence and assigned it a chunk structure. Improving Translation Quality of Rule-based Machine Translation

Other precedents help explain the choices in representation. The approach reviewed for Bangla and English considers sequences of both words and part-of-speech labels. In discussing alternatives to contiguous sequences, the authors mention work that permits gaps between words. They also cite Sjöbergh’s use of sequences of chunk types and describe another approach that uses syntactic trees to detect mistakes in verb forms. These systems put the boundary of the statistical observation in different places. The unit can be a word, a label, a chunk or a relation recovered by a parser. The proposed checker chooses contiguous sequences over chunk categories and keeps word-level tags available for actual edits.

The review also puts correction in settings outside translation. It describes an English tutoring system for deaf writers that takes account of expected language and changes in a learner’s language use when scoring rules. A simplified English checker examines wording and structure, gives feedback and attempts automatic corrections when possible. The authors describe work combining pattern-based style checking with broader grammars for German and English, and a study in which a writer can receive arguments about a suggested change. These examples show the range of tasks the authors group under grammar and style checking. The specific task here is automatic repair of selected grammatical problems in the English produced by one translation system.

The method, step by step

From translation output to a repair

The paper places its checker in a wider translation design. The Myanmar-side processing assigns word categories and function labels and looks for grammatical relations. Alignment work builds a bilingual corpus with links between words and phrases. The translation component extracts phrases and uses the bilingual corpus to produce English. It can consult a word-sense disambiguation component when an expression on the source side has multiple senses. The target side handles reordering and grammatical cleanup. The checker described here receives the resulting English sentence.

A useful way to follow the checker is to track what it knows about a sentence at each stage. The first representation is the sequence of words and punctuation. The next adds a grammatical label to each token. The chunking stage derives a shorter sequence of categories while keeping the labels that make up each group. The scoring stage locates a suspicious transition in that shorter sequence. To test a repair, the checker considers what category could be present at the position and whether the resulting sequence fits one of its sentence patterns. Finally it uses the finer-grained information again to make an English edit.

How the checker repairs a translated English sentence

The steps in order.

How the checker repairs a translated English sentenceStep 1: Separate the sentence into tokens1. Separate the sentence into tokensStep 2: Assign and refine part-of-speech tags2. Assign and refine part-of-speech tagsStep 3: Group adjacent tags into chunks3. Group adjacent tags into chunksStep 4: Score chunk transitions and locate a zero4. Score chunk transitions and locate a zeroStep 5: Rank possible chunk types at the gap5. Rank possible chunk types at the gapStep 6: Check candidates against trained sentence patterns6. Check candidates against trained sentence patternsStep 7: Apply English grammar rules to the repair7. Apply English grammar rules to the repair

Tagging and refining individual words

The first step is tokenization, which separates the units the checker will label. The paper’s examples retain sentence-final punctuation as a tagged unit. Tree Tagger then assigns grammatical labels to the tokens. A label can identify a broad class such as adjective or noun, or convey distinctions useful for repair, such as a singular versus plural noun or a particular verb form. The downstream rules depend on these distinctions. If the checker receives a wrong label at this stage, it can build a wrong chunk from an otherwise usable word sequence.

The authors therefore put a correction pass between initial tagging and chunking. Its rules can refer to the current word, the tag already assigned to it, and nearby tags. In one example, Tree Tagger analyzes sweet as an adjective. The authors give a rule for the case where this label follows a determiner and the word itself is sweet. In the sentence about someone eating a sweet, that rule changes the word’s label to noun. The English word stays the same throughout this operation. The correction changes what the parser can recognize.

The example with tailor gives the same kind of decision for a word that has been tagged as a verb. Following a determiner in the example, tailor is relabeled as a noun. The rule again has a lexical condition. It does not impose a new category on every item with a verb tag after a determiner. That specificity lets the authors record known tagging mistakes and avoid relying solely on a broad preference about the tag sequence.

These are repairs to grammatical analysis. The checker later makes repairs to the translated text, and the two operations have different effects. Relabeling sweet allows it to join the determiner in a noun chunk, which changes the pattern passed to the statistical stage. Inserting a coordinator in a later stage changes the actual wording. The intervening chunk representation is what connects a decision about a word’s label to a decision about the shape of the sentence.

Building chunks from tags

The authors use shallow parsing, meaning that the analysis can identify local groups and express the sentence as a sequence of those groups. Each chunk covers adjacent tokens. Its category describes the kind of unit the checker will use in the sentence pattern. Its internal tags preserve details about the tokens that made the parser assign that category. For example, a noun chunk can consist of a determiner and a noun. A verb chunk may consist of a single inflected verb or contain several parts of a verb expression.

The grammar employed at this stage is formally defined by the authors.

G = (V, T, S, P)

Here G denotes the grammar as a whole. V is the finite set of nonterminal symbols, which are labels that can be expanded by grammar rules. T is the finite set of terminal symbols, which are the units at the end of a grammatical derivation. The two sets have no shared members. S is the designated start symbol, drawn from V, and P is the finite set of productions. The parentheses and commas group and separate the entries of the tuple, and = gives its definition.

The paper specifies where the left and right sides of those productions come from.

P ⊆ V × (V ∪ T)*

P, V and T have the meanings just given. ⊆ means that every element of P belongs to the set on the right. × forms ordered pairs, pairing a possible left side from V with a possible right side. ∪ collects the symbols from V and T together. The star * denotes all finite sequences over that combined set, including the empty sequence. The parentheses indicate that the star applies to the combined set. In a production, therefore, the left side is a single nonterminal, and the right side is a sequence that may contain either kind of symbol.

The usual notation for an individual production is:

A → α

A is the nonterminal on the left. α is the sequence of symbols on the right. The arrow → says that a derivation can expand A into α. During bottom-up analysis, the parser uses this same relationship in the other direction, recognizing a sequence that fits the right side and grouping it under the category on the left. The notation describes a grammar rule independently of the direction in which a parser searches.

The paper contrasts top-down and bottom-up searches. A top-down parser begins with the start symbol and tries to derive the input. The checker uses bottom-up parsing. It starts with the tagged text and combines neighboring units when the appropriate rule applies. A successful combination makes a higher-level symbol available for further recognition. That direction lets the explanation of chunking begin with familiar cases, such as putting the determiner and plural noun of the students together. The eventual sentence pattern records the order of the higher-level symbols.

What the chunk sequence preserves

The proposed inventory distinguishes noun chunks (NC), verb chunks (VC), adjective chunks (AC) and adverb chunks (RC). It also gives separate categories to particles (PTC), prepositions (PPC) and conjunctions (COC). Question chunks (QC), infinitive chunks (INFC) and time chunks (TC) round out the categories presented by the authors. Boundaries also appear in sentence patterns. For example, END marks the ordinary ending in the worked declarative patterns, and the sample inventory includes IEND at the end of interrogative patterns.

Some of the categories contain a word that a broader phrase analysis could attach to another group. In the authors’ illustrative analysis of students playing football in a playground, in is a prepositional chunk by itself. The location noun phrase forms the next chunk. The parser thus exposes the preposition as a category in the sequence. That choice is directly relevant to correction, because a missing preposition is among the errors the checker tries to find. A missing link of that kind can affect the sequence that the next stage sees.

The same example shows how the checker abstracts away from vocabulary. The determiner and plural noun form the first NC. The two parts of are playing form VC. The object football forms another NC. The place expression gives PPC followed by NC, and the final punctuation supplies END. The full pattern is NC_VC_NC_PPC_NC_END. Another sentence with different nouns and a different action can have the same pattern if it has this arrangement of categories. That is the level at which the checker can use examples that share structure without sharing the original words.

The abstraction is selective. At the sequence level, a present-tense verb expression and a past-tense verb can each appear as VC. When the repair rules need to inspect agreement or verb form, they can use the word tags inside the chunks. The chunk pattern says where the noun and verb units occur. The internal labels supply information about forms. Keeping these levels distinct allows the authors to apply a broad sentence pattern and a more specific correction rule to the same input.

The paper lists some patterns in a notation that places the sequence on the left of =S. The sequence is an arrangement the system recognizes as a sentence, with S serving as the sentence label. A short declarative pattern is NC_VC_END. The list also includes patterns with a verb before a noun chunk and patterns starting with a question chunk. For the checker, the inventory gives a way to ask whether a candidate repair yields an available sentence arrangement. This use of sentence patterns is distinct from the ordinary production notation used to describe context-free grammars.

Preparing the sentence patterns and transition information

The data procedure is built around the authors’ own sentence patterns. Examples represented as sequences of chunk labels serve two purposes in the description. They provide evidence about what chunk types can follow a given history, and they provide patterns against which a complete candidate sequence can be checked. These uses impose different constraints. A local continuation can have probability mass in the training sentences even though a particular continuation, inserted into the current input, fails to yield an available full pattern.

In the discussion of chunking and detection, the paper says that the system trained on about 6000 sentence patterns covering simple, compound and complex sentences. According to the discussion, the resources used for correction at the time included approximately 1,800 sentence patterns and 1,300 rules of English grammar. The figures occur in descriptions of different stages. The paper leaves the relationship between the pattern counts unspecified. The 1800 mentioned for correction patterns is also a separate report from the approximate test sentence count. It measures a resource used in the method, while the test count refers to inputs used for evaluation.

The hand-written resources have their own distinct roles. Tag refinement rules repair particular word labels. The context-free rules describe how sequences of labels form chunks. Rules for correction use English grammatical information to decide which changes to make in recognized configurations. The trained sentence patterns and probabilities supply evidence at the level of chunk categories. The paper describes these ingredients and shows examples of their use. Its data account specifies the pattern types and approximate counts, leaving corpus composition and the detailed probability estimation procedure open.

Scoring a sentence with a short history

An n-gram records a sequence of items of a given length. The items in this checker are chunk labels. The statistical assumption is that, when scoring a chunk at a particular position, the checker can use a fixed number of preceding labels as its history. A longer sentence is then scored by taking the product of those local probabilities. This helps the checker examine a suspicious transition in context while using a much smaller unit than the entire sentence to assign each factor.

The paper’s general equation uses its length notation for the product and for the order of the n-gram. With those roles separated, its n-gram expression is:

p(c₀, …, cₙ₋₁) = ∏ᵢ₌₀ⁿ⁻¹ p(cᵢ | cᵢ₋ₖ₊₁, …, cᵢ₋₁)

p denotes a probability. On the left it is the probability assigned to the sentence’s sequence of chunk labels. c denotes a chunk label, and the subscripts give positions. c₀ is the initial label and cₙ₋₁ is the last in a sequence of length n. The ellipsis … spans the intermediate positions. On the right, ∏ means to multiply the factors indexed by i, starting at 0 and ending at n−1. The factor is the conditional probability of cᵢ, the current label. The vertical bar | means “given.” k is the n-gram order, so the history starts at i−k+1 and ends at i−1. The − and + signs mark subtraction and addition in the indices. Parentheses and commas delimit the arguments and separate sequence items, and = equates the sequence score with the product. At the beginning of the sentence, the worked example represents unavailable history positions as none.

The checker uses the trigram form. Each factor uses the last pair of chunk labels, so the score for the current label can depend on their combination.

p(c₀, …, cₙ₋₁) = ∏ᵢ₌₀ⁿ⁻¹ p(cᵢ | cᵢ₋₂, cᵢ₋₁)

The left side again gives the probability p assigned to the full sequence from c₀ to cₙ₋₁. Here n is its length, i indexes the current position, and ∏ multiplies the factors from 0 to n−1. cᵢ names the current chunk, cᵢ₋₂ is the earlier of the two preceding chunks, and cᵢ₋₁ is the immediately preceding chunk. The subscripts 2 and 1 specify those backward offsets, with − indicating subtraction from the current index. The bar | introduces the history. The ellipsis, parentheses, commas and equality sign have the same roles as in the general expression. This ordering of the history follows the chronological ordering used in the paper’s worked probabilities.

A zero factor reduces the product to zero. The full score tells the checker that the sequence contains such a transition, and the positions of the individual factors show where to look. A zero comes from the probability assigned under the training-derived information. The correction stage must still decide whether a more plausible sequence can be constructed there. The paper mentions several techniques that can be used with trigrams, including smoothing, which can give probability to configurations poorly represented in the observed data. The worked procedure relies on its actual zero factors to find a place to attempt a repair.

Following the missing conjunction through the checker

The worked example has two noun groups at its beginning, a man followed immediately by a woman. The remaining words say that they went to their house. The tagger identifies each initial determiner and noun pair. The parser makes a noun chunk from each pair, treats went as a verb chunk, and places to in an infinitive chunk in this example. The possessive and noun in their house form another noun chunk. With the sentence boundary included, the result is NC_NC_VC_INFC_NC_END.

The probability of the opening noun chunk given the empty history is 0.586. The next noun chunk, following the first one with the earlier history still empty, gets 0.0. The verb chunk following the pair of noun chunks also gets 0.0. Later in the sequence, the infinitive chunk after a noun and a verb has probability 0.483. The noun chunk after the verb and infinitive categories has probability 0.364. The ending after the infinitive and noun chunks has probability 0.675. These are factors for positions in this sentence, drawn from the trained information described by the authors.

P(S) = 0.586 × 0.0 × 0.0 × 0.483 × 0.364 × 0.675 = 0.0

P here denotes probability in the worked example, and S in parentheses denotes the sentence being scored. × indicates multiplication, and each factor is the conditional probability for the corresponding position just described, in sentence order. The decimal points preserve the paper’s probability values, and = relates the sentence probability, the product and its reported value. P here has a different role from the set of productions in the grammar definition.

The authors investigate the failed transition immediately after the opening noun chunk. They look at what could appear there under the same history, represented as none followed by NC. The verb chunk has probability 0.54 under that history. The adverb chunk and the conjunction chunk each have probability 0.01. These figures rank local candidates. They say how plausible a category is after that opening, before the checker has considered whether the rest of the sentence can follow it in the resulting arrangement.

The checker starts with the verb because it has the highest probability. The resulting pattern is NC_VC_NC_VC_INFC_NC_END. The original noun chunk for a woman remains present after the proposed verb slot, and went still supplies the later VC. The checker rejects the resulting pattern when it compares it with its trained sentence patterns. It considers the adverb and conjunction categories as alternatives. The paper identifies the sequence with COC, NC_COC_NC_VC_INFC_NC_END, as the recognized outcome.

This example is especially helpful for interpreting the paper’s description of substitution. At the chunk-pattern level, the procedure tries a candidate type at the problem position. The resulting patterns show that both original noun chunks survive. In this omitted-word example, the candidate occupies an added slot between them. The surface sentence then needs a word that can play the role of the newly recognized conjunction chunk.

The category COC points to the tag CC in the authors’ account. The paper associates it with possible realizations including and, or and a comma. The grammar rules can supply and between the noun chunks in this case. The distinction between the last two stages matters. The successful full pattern establishes a place for coordination in the checker’s representation. The grammar rule supplies the token that appears there. The transition probability of the abstract chunk is not a probability assigned to the word and.

Applying rules inside and across chunks

Other correction targets require the tags that the chunks preserve internally. The authors illustrate agreement rules for an NC_VC arrangement. Their examples include we go and she goes, where the subject and simple present verb show contrasting agreement forms. They also give we are going and she is going, where the agreement distinction is visible in the auxiliary. The checker has access to the labels of the forms inside the verb chunk, so it can represent these as different tag arrangements without creating a separate general chunk category for each form.

The agreement examples also include constructions whose verb selection behaves differently. The authors illustrate modal constructions with examples ending in will come. In their table the modal tag is followed by the tag for a base-form verb. They represent past-tense and multiword forms alongside the present-tense cases. The correction resource therefore consists of several allowed arrangements for an adjacent noun and verb chunk. The paper gives examples of the rules, while its end-to-end scores aggregate edits across the error types.

For determiner choice, the checker is intended to use rules that relate varieties of determiner to compatible nouns. For missing words, the paper names prepositions, conjunctions, determiners and existential elements among the targets. Verb-form repair is another stated target, for which the authors describe keeping information about commonly used tense constructions. These operations all depend on the distinction between recognizing the structural situation and realizing an edit. A category such as a noun chunk helps locate the situation, and the rule’s conditions decide which forms are possible within it.

Experiments and results

What was tested

The authors report testing the checker on about 1800 sentences. They describe the test inputs in terms of the types the system assigns. One distinction is between simple, compound and complex sentences. This groups examples according to clause structure, with multiple clauses entering into coordination in the compound case or subordination in the complex case. The system also describes a sentence as declarative or interrogative, distinguishing statements from questions in its analysis. The results are tabulated by the clause-structure grouping.

The authors identify subject–verb disagreement, missing chunks and wrong verb forms as the errors encountered mainly in the tested sentences. That description gives a clearer picture of the evaluation than the range of features in the design alone. The architecture names individual classes of omitted words and has provisions for determiner errors. The experimental table gives an aggregate correction score for each sentence type, with the errors that are present in that group contributing to its results. The table leaves individual error categories without separate scores.

The checker is evaluated on the English sentences it is designed to repair. There is no separate performance row for the unedited translator, another grammar checker or a simplified variant of the proposed system. The experimental comparison is across sentence types under the same reported procedure. Accordingly, it shows the performance associated with each group. A comparison of competing methods for the same sentences would require a baseline that the experiment does not report.

How the correction metrics work

The paper counts errors and repairs. Precision is based on the corrections the checker makes. Its denominator is the total counted as repaired by the system, and its numerator is the subset it repairs correctly.

Precision = (C ÷ D) × 100%

Precision is the precision expressed as a percentage. C is the count of correctly repaired errors. D is the count of errors the system treats as repaired, including attempts that fail the correctness criterion. ÷ denotes division, and the parentheses group that division. × denotes multiplication, 100% expresses the ratio as a percentage, and = defines the measure. A checker can have high precision when its attempted edits are usually right even if it leaves some actual errors untouched.

Recall starts from the actual errors in the evaluated material and asks what share the checker successfully repairs.

Recall = (C ÷ E) × 100%

Recall is the percentage recall. C again counts correctly repaired errors. E counts the actual errors in the input being evaluated. ÷ divides the successful repairs by that error count, the parentheses group the division, and × 100% expresses the result as a percentage. The equality sign defines recall. The same correct repair contributes to both precision and recall, while the two denominators answer different questions about the system.

The paper combines these measures using F-score.

F = 2 × (Precision × Recall) ÷ (Precision + Recall)

F denotes F-score. Precision and Recall are the two measures just defined on the same scale. The 2 is the multiplier in the authors’ equation. × multiplies, + adds and ÷ divides. The parentheses enclose the product that enters the numerator and the sum that serves as the denominator, and = gives the resulting score. Taking the harmonic mean of recall and precision yields this measure. Its value reflects both how frequently the edits are correct and how much of the actual error set those correct edits cover.

All three measures are about errors and correct repairs. A sentence can have several errors, as the park example illustrates. Correcting a missing article would improve that sentence while leaving a separate error if the existential element stayed absent. An error-level count can give credit for the successful article edit in such a case. Reading the scores as the share of fully repaired sentences would give them a meaning the formulas do not have.

Results by sentence type

The simple-sentence group has the highest reported values on all three measures. Its precision is 89.83 %, its recall is 78.77 %, and its F-score is 83.94%. The figures describe attempted and successful repairs for the simple-sentence portion of the test. The gap between its recall and precision reflects the two denominators. The system succeeds more frequently among the repairs it undertakes than it does across all the errors it needs to cover.

Repair precision by sentence type on the grammar checker test sentences

The checker achieves its highest precision on simple sentences.

Repair precision by sentence type on the grammar checker test sentencesSimple sentences (this paper): 89.83Simple sentences (this paper)89.83Compound sentences: 83.75Compound sentences83.75Complex sentences: 83.02Complex sentences83.02
The numbers
System or settingprecision %
Simple sentences (this paper)89.83
Compound sentences83.75
Complex sentences83.02

Compound sentences have precision of 83.75 %, recall of 75.85 % and an F-score of 79.61%. Their reported precision is higher than that of complex sentences, while their recall is lower. The change in ordering across the measures gives some detail about how the groups differ. The reliability of the attempted edits and the coverage of the available errors do not order the two groups in the same way.

Repair recall by sentence type on the grammar checker test sentences

Recall for complex sentences is close to recall for simple sentences.

Repair recall by sentence type on the grammar checker test sentencesSimple sentences (this paper): 78.77Simple sentences (this paper)78.77Compound sentences: 75.85Compound sentences75.85Complex sentences: 78.57Complex sentences78.57
The numbers
System or settingrecall %
Simple sentences (this paper)78.77
Compound sentences75.85
Complex sentences78.57

The complex-sentence group has precision of 83.02%, recall of 78.57% and an F-score of 80.73%. Its recall is close to the value for simple sentences, whereas its precision is the lowest of the three. On the authors’ combined measure it falls between simple and compound sentences. The ordering is useful because a broad statement that one category is harder can hide differences in the kinds of failure the metrics register.

Repair F-score by sentence type on the grammar checker test sentences

Simple sentences lead on F-score, with complex sentences ahead of compound sentences.

Repair F-score by sentence type on the grammar checker test sentencesSimple sentences (this paper): 83.94Simple sentences (this paper)83.94Compound sentences: 79.61Compound sentences79.61Complex sentences: 80.73Complex sentences80.73
The numbers
System or settingF-score %
Simple sentences (this paper)83.94
Compound sentences79.61
Complex sentences80.73

The reported table gives a view of how the same checker performs across these input groups. It does not attribute the ordering to a specific component or construction. For example, the figures give no group-specific breakdown of missing words versus agreement or verb-form errors. They also give no separate result for questions. The system’s ability to assign both kinds of sentence label is therefore a feature of its analysis, while the reported correction performance has the narrower breakdown shown in the charts.

What the ablations show

The paper reports no formal ablation study, and its closest analyses are a worked comparison of alternative repairs and a breakdown of the complete checker’s scores by sentence type.

What happens when local ranking and sentence patterns differ

The missing-conjunction example exposes an intermediate decision that the final metrics would conceal. After the opening noun chunk, the local score prefers a verb. At this point the statistical calculation has only considered which type is likely after that history. It has not considered how the proposal sits alongside the second noun chunk, the existing verb and the remaining groups. A plausible local continuation can be a poor addition to the complete sequence.

The paper shows what happens to the leading candidate when the next stage checks it. The resulting sequence contains the proposed verb chunk and the original verb chunk. It fails the inventory check. The conjunction candidate has a much lower local probability and produces an available full pattern. In this sentence, the pattern inventory has a visible effect: it rules out the local favorite and allows the search to reach the coordination structure used for the edit.

This is a comparison of decisions made on the same input, so it identifies something concrete about the role of each stage. The transition probabilities identify candidates and order at least the first trial. The inventory judges the completed pattern. The English rules make a word-level repair once there is a position and a category for it. The example gives evidence for the need to examine the rest of this sentence before choosing a candidate. It supplies no estimate of how often the full-pattern check reverses a local preference elsewhere in the test set.

The candidate probabilities also show why the role of the last rule matters. The adverb and conjunction chunk candidates have the same reported local probability. The paper identifies a recognized full pattern with the conjunction. Even after that decision, the conjunction category admits multiple surface possibilities in the description. The insertion of and comes after the selection of that category. Thus the example separates a failure of local ranking to choose the right kind of repair from the later question of choosing the actual word.

What changes across sentence groups

The score breakdown gives another way to look at the complete procedure. Simple sentences lead on precision and recall. For the other two groups, the ordering changes depending on whether the denominator is attempted edits or actual errors. Compound sentences lead complex sentences on precision, and complex sentences lead compound sentences on recall. A reader trying to understand the behavior of the system can use both measures to see that the lower F-score for compound sentences is accompanied by lower coverage, even though its reported precision is higher than that of complex sentences.

This comparison describes outcomes for different inputs. It holds the checker fixed and groups test cases by the assigned sentence type. The paper gives no matching of examples across groups by error category, the number of errors in a sentence or the coverage of the relevant patterns. The grouping therefore helps describe where the combined scores are higher or lower, while leaving the cause of those differences open. A compound input with a missing connector and a complex input with a wrong verb form may draw on different parts of the correction resource.

The illustrated tag refinements provide a further view of intermediate behavior. They show label changes that the authors intend their local rules to make before parsing. In the sweet example, the refinement makes a noun analysis available in place of the adjective analysis. In the tailor example, it replaces a verb label with a noun label. These cases explain the motivation for the refinement pass and show the implications for chunk construction. The paper reports no tagging accuracy comparison before and after the pass and no end-to-end run with it removed. Its contribution to the aggregate results remains unmeasured.

The same distinction applies to the authors’ use of chunks. The paper motivates them as a way to group related words, retain grammatical information and express sentence patterns over categories. The example demonstrates that such a pattern can represent a missing conjunction without committing to its wording. An empirical comparison with sequences of individual word tags would answer a different question about how much accuracy comes from the choice of representation. The reported experiments contain no such comparison. The analyses show how the components interact on examples and how the full system scores by sentence type.

Limitations

Limits identified by the authors

The authors describe the checker as an ongoing development. They identify greater accuracy in detection, analysis and correction as future work. These are distinct goals in their design. Better detection would mean finding more of the relevant errors or flagging fewer unsuitable positions. Better analysis would mean identifying the missing or incorrect category more reliably. Better correction would mean choosing more appropriate English words or forms after the structure has been recognized. Their evaluation reports the combined outcome of the stages, so the future goals refer to specific steps that could contribute to it.

The authors also plan to expand the sentence rules so that they can assess sentence types more fully. This limit follows from how the checker uses its inventory. A candidate sequence must fit an available pattern in the worked example. Broadening the inventory could therefore make more valid repairs recognizable under that check. The paper says that more training patterns would help detection and anticipates improvements to the correction rules as pattern coverage grows. It does not measure a series of resource sizes to show the size or shape of that effect.

Semantic errors are an explicit future target. This identifies a boundary of the reported work. Repairing an absent preposition or an incompatible verb form can improve the English construction, but the correction procedure is evaluated for the grammatical errors the authors count. A reading can be grammatically acceptable while conveying the wrong relation. The method’s English-side evidence and the planned work on semantic errors help explain why a successful pattern match alone cannot establish that the translation conveys the intended meaning.

The authors also recognize the cost of obtaining hand-written rules. Their argument for explicit rules emphasizes transparency and the possibility of diagnosing errors. At the same time, acquiring and maintaining the relevant linguistic descriptions takes effort. The paper gives approximate sizes for its resources, which help convey the extent of the work. It does not time the development process or measure the cost of covering new constructions. The reported evidence supports the feasibility of the rules used in this implementation, with the effort to extend them left open.

Limits visible in the setup and reporting

The local probability is evidence about observed chunk histories and the representation used to count them. A zero can indicate that the translated sentence has a problem, as it does in the missing-conjunction example. A valid construction unfamiliar to the checker can also have a sequence that receives no support in a limited pattern resource. Conversely, familiar local transitions can occur in an erroneous sentence. The full-pattern check and the internal grammar rules provide additional constraints, but the study does not estimate how frequently these situations cause false alarms or missed errors.

Chunk-level abstraction has a similar tradeoff. Grouping different noun phrases under NC makes it possible to reuse structural evidence. It also withholds differences between those phrases from the trigram calculation. The checker can recover some distinctions through the labels inside a chunk, such as information relevant to agreement. Lexical or semantic differences that affect the suitability of a word choice are harder to establish from the pattern itself. In the coordination example, the conjunction category is recognized before a word is supplied. The paper gives an illustrative choice of and, with no evaluation of how frequently the checker can choose correctly when several words could make the local grammar acceptable.

Errors earlier in the pipeline can also alter later decisions. A wrong word tag can prevent a group from being built. A misplaced chunk boundary can make the chunk sequence look unusual. That can send the search to a position where no word is missing. The hand-written tag refinements address particular known cases. The paper does not report how often the tagger or parser causes an unsuccessful repair and how frequently the later rules recover from such cases. That makes it hard to locate the source of the remaining errors from the final scores.

The example specifies a distinct zero transition to investigate even though the sentence has more than one zero factor. It therefore demonstrates that several failed local transitions can accompany one missing word. The paper leaves open how the checker chooses among possible failure positions more generally, how it searches when there are several actual omissions, and when it stops trying after an unsuccessful candidate. The park example shows that a translation can require separate insertions. The conjunction example explains a localized repair in detail and provides a narrower basis for judging how the design would behave when several changes interact.

The experimental report gives the approximate size of the test set and the principal errors encountered. It does not give per-group sentence and error counts, raw correction totals or a detailed account of how correct repairs were judged. The precision and recall formulas identify the required counts, but the published percentages do not supply them individually. Without the counts, group-level support and the relative contribution of each error class cannot be reconstructed. Without a description of the judgment process, it is also unclear how alternative acceptable edits were treated.

The reporting of the pattern resources leaves a related uncertainty. The count in the chunking discussion and the smaller count in the correction discussion could describe resources with different scopes. Their relationship is unspecified, and the paper gives no detailed procedure for checking separation between those resources and the evaluation inputs. This matters because the full-pattern decision relies on the patterns available to the system. The results establish the reported performance of the checker as tested. They leave the coverage of genuinely unfamiliar constructions and the sensitivity to training material unresolved.

Finally, the experimental table gives no scores for running the translation system with and without the checker under an overall translation-quality measure. Precision and recall document how the corrections fare against the counted errors. They cannot establish how a reader judges fluency across all the output or how faithfully the edited sentences reflect the Myanmar originals. The study supplies evidence about a specific postprocessing task on the described sentences, with transfer to other domains or language pairs and effects on overall translation quality left untested.

What came after

There is no documented follow-on study to describe here. The paper ends with plans to extend the sentence rules, improve the stages of grammatical repair and investigate semantic errors. Those are directions the authors proposed. The evidence in the study ends with the English-side repairs it reports.

Cite

Cite as Nay Yee Lin, Khin Mar Soe and Ni Lar Thein. 2011. Developing a Chunk-based Grammar Checker for Translated English Sentences. Proceedings of the 25th Pacific Asia Conference on Language, Information and Computation.

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

@inproceedings{lin2011developing,
  title = {{Developing a Chunk-based Grammar Checker for Translated English Sentences}},
  author = {Nay Yee Lin, Khin Mar Soe and Ni Lar Thein},
  booktitle = {Proceedings of the 25th Pacific Asia Conference on Language, Information and Computation},
  year = {2011},
  url = {https://aclanthology.org/Y11-1026/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/lin-2011-developing-chunk-based-grammar-checker/