Joint English Spelling Error Correction and POS Tagging for Language Learners Writing
Paper · 2012 · Keisuke Sakaguchi, Tomoya Mizumoto, Mamoru Komachi et al.
Summary
A spelling mistake can make a sentence look as though it has a different grammatical structure. A program may read an unintended but correctly spelled word as a noun where the writer meant an adjective, or break an unfamiliar string into pieces that receive tags of their own. The dependence also runs the other way. If several proposed repairs are close to what the learner typed, knowing which grammatical category fits the sentence can help distinguish them. This paper investigates both directions by combining spelling correction with part-of-speech tagging, the task of labeling words by categories such as noun, verb, and adjective.
The authors adapt a conditional random field, a statistical method that scores alternative analyses of the same input. They use a dictionary with entries for both standard spellings and possible misspellings. An entry for a misspelling proposes a corrected form and carries grammatical information from that form. The system links matching entries into a graph, allowing different routes to place word boundaries in different positions. It then chooses a route through the sentence that determines the words, repairs, and tags together. This gives it a way to consider familiar words used in the wrong place, grammatical endings, and spacing mistakes alongside ordinary typos.
The joint system’s tagging F-value is 0 on the First Certificate in English test data from the Cambridge Learners Corpus.981, compared with 0.968 for a pipeline that corrects spelling before tagging and 0.960 for tagging without a spelling pass. On the Konan-JIEM corpus, the respective values are 0.862, 0.842, and 0.824. F-value combines precision and recall. On the Cambridge data, the joint system also improves spelling F-value from GNU Aspell’s 0.468 to 0.519. Its spelling recall rises from 0.427 to 0.622 and its precision falls from 0.519 to 0.445. The broader search recovers more annotated repairs and proposes more changes that fail to match the reference.
The authors show successful repairs across the error categories they study, including cases where a word must be respelled and separated from its neighbor. Other examples expose the limits of grammatical evidence. A valid word can fit the local tag sequence while conveying the wrong meaning, and a plausible correction can differ from the annotated answer. The experiments isolate spelling by repairing other annotated errors before analysis. The results therefore establish what the joint system can do under that setup and leave its performance on fully uncorrected essays open.
Deep dive: Joint English Spelling Error Correction and POS Tagging for Language Learners Writing
A study of how jointly correcting English spelling and assigning parts of speech improves the analysis of sentences written by language learners. · about 34 minutes to read
The problem and its context
When a word is valid and still needs repair
In writing by learners of English, a misspelling may produce a string that a dictionary can reject immediately. It can also produce a familiar word that makes sense somewhere else. The paper illustrates this with convent in a description where the intended adjective is convenient. A tagger has a legitimate noun entry for convent. If that is the spelling it is asked to analyze, selecting the noun is understandable, even though the result misses the writer’s intended construction. The neighboring error verey creates a separate difficulty. Once the words are restored to very and convenient, the adverb and adjective readings are available directly.
The example explains why spelling matters to programs that analyze grammatical errors. A system concerned with prepositions, determiners, or verb forms may depend on tags or on a syntactic analysis. An error in the spelling can affect both the word recognized at that position and the interpretation of its neighbors. An upstream spelling pass can remove that obstacle when its repair is right. When it leaves the mistake in place or chooses the wrong replacement, the next stage receives the consequences of that choice. A downstream grammatical diagnosis can then be responding to the correction procedure as well as to the learner’s sentence.
The reverse dependence appears in the paper’s example analysys. The candidates analysis and analyses are both close in spelling. They support different noun tags, singular and plural respectively. In the example, the surrounding words support the plural reading, giving analyses an advantage that character resemblance alone cannot provide. The reference to part of speech here is quite specific. The task involves more than choosing the broad category “noun.” The tag inventory distinguishes forms within that category, giving the system a way to express a preference between candidates that remain similar at the level of both spelling and broad grammatical class.
Other examples make the role of boundaries visible. The paper treats separated material such as now a day in place of nowadays as a split error. The learner has put spaces inside what the reference treats as a word. The reverse occurs with swimingpool, where the reference is swimming pool. That example combines missing whitespace with a letter error in the first component. A procedure that receives a fixed list of words could try to replace the entire string. A procedure that can reconsider boundaries can recognize pool as it stands and evaluate a separate repair for the preceding characters.
Homophones and other confusable words pose a different problem. A form such as hear can have the same sound as the intended here, while form and from are close in their written characters. Recognizing the source word as English provides little guidance about whether it belongs in the sentence. Inflection and derivation make the boundary between spelling and grammar even harder to draw. An inflection can express a grammatical distinction within a word’s forms. A derivational change can produce a related word with a different function, as in the paper’s contrast between badly and bad. The authors include these changes because the learner annotations contain cases where a problem with the form also looks like a spelling error.
What earlier correction systems supplied
The paper places its work within grammatical error correction and learner language. It describes much earlier work as targeting particular categories, especially determiners, prepositions, and verbs. In a common arrangement, a spelling checker first cleans the input. Tagging and syntactic analysis follow, and the error detector uses the resulting linguistic information. The authors point to highly ranked entries in Helping Our Own as examples of spelling cleanup before a task centered on prepositions and determiners. HOO 2012
A recurring question in the earlier spelling literature was where to obtain likely pairs of written and intended forms. The paper describes methods based on edit distance, which compares strings through the changes needed to turn one into another, and longest common subsequence matching, which looks for characters retained in order. It also discusses pronunciation as a source of similarity. These approaches provide different clues. A pair that is close to the eye can be generated from the written form, while a pair that sounds alike can be worth considering in spite of less obvious written similarity. An Improved Error Model for Noisy Channel Spelling Correction and Pronunciation Modeling for Improved Spelling Correction
Earlier research also enlarged the inventories of observed errors using search queries, returned results, click logs, or records of users’ keystrokes. The authors distinguish those lines of work from their focus on second-language writing. As they describe it, research on native-speaker spelling already addressed some real-word confusions and boundary mistakes, including homophones, splits, and merges. Their motivation is the need to accommodate these alongside the problems with inflection and derivation that appear in learner data. The issue is partly what a system is set up to consider a plausible correction and partly what information it can use to choose among those possibilities. A Winnow-Based Approach to Context-Sensitive Spelling Correction
The authors describe pipelines that use a checker such as GNU Aspell or Jazzy to propose repairs and then use contextual word probabilities to filter or reorder the suggestions. A spelling-first system can therefore use information from the sentence. The important distinction in this study is when a spelling decision becomes fixed. In the pipeline evaluated by the authors, the corrected sentence is handed to the tagger as its input. In the proposed analysis, the candidate spellings are still open when the system compares grammatical sequences. Context can enter either arrangement, but the joint arrangement lets the same search weigh lexical and grammatical evidence for competing outputs.
The related work also includes attempts to correct whole sentences. The paper describes one approach that treats learner English as the input to machine translation and produces corrected English as the output. The authors see its broad coverage of possible edit types alongside a dependence on having annotated examples of the errors. They discuss a separate noisy-channel approach to whole-sentence repair that uses neighboring word probabilities and leaves syntactic information out. A discriminative decoder that handles spelling within broader grammar correction offers another point of comparison. In the authors’ account, its spelling component uses Aspell for typographical cases and leaves categories such as splits and merges outside that component. Correcting ESL Errors Using Phrasal SMT Techniques
Why segmentation and tagging were a useful precedent
The authors draw on prior systems that combined linguistic decisions normally assigned to separate stages. They cite work on joint syntactic and semantic dependency analysis, on morphological segmentation and syntactic analysis in Hebrew, and on Chinese segmentation with grammatical tags or dependency structure. These settings illustrate how later linguistic information can help choose an earlier segmentation. In the learner-writing task, the comparable ambiguity arises because the writer may have put spaces in the wrong locations, and the grammatical interpretation of the resulting words can help determine which boundaries are appropriate. The CoNLL 2008 Shared Task on Joint Parsing of Syntactic and Semantic Dependencies
The closest technical precedent is Japanese morphology, specifically the analysis that identifies word boundaries and assigns grammatical tags through the same search. A conventional sequence labeling formulation can start with words already separated, then choose a label for each. The spelling task here needs more freedom because one candidate analysis can contain a different number of words from another analysis of the same input. The authors take the variable-boundary formulation from Japanese analysis and adapt the dictionary so that a span of learner text can stand for a corrected form. The research question is whether that combination can improve both outputs on learner sentences. Applying Conditional Random Fields to Japanese Morphological Analysis
The method, step by step
From characters to competing word sequences
The system begins with the learner’s sentence and a dictionary that can recognize either standard forms or listed mistakes. The decoding algorithm ignores the blanks between words when it looks for matches. It works through character positions and, wherever a candidate word ends, looks for dictionary entries that match the start of the remaining text. An entry can use a short span or cover a longer stretch. The resulting tokenization is part of the output. This is how the procedure can recover when a learner has inserted a space that should disappear or omitted a space that should divide words.
Each matching entry becomes a node in a lattice, a graph of alternative ways to cover the same input. A node records a proposed analysis of the characters it covers. It can represent a correctly spelled form, a misspelling paired with a repair, or a particular grammatical reading of a word that has more than one. Two nodes can follow each other if the second begins where the first leaves off. A complete path is a chain of compatible choices covering the sentence in order. The paths can differ over where a word starts and ends, whether an observed form warrants repair, and what tag to assign.
Consider swimingpool. One part of the search can match the characters of swiming to an error entry that proposes swimming. From the end of that match, another entry can recognize pool. The output on that route contains a corrected word followed by a standard word. The system can produce the space because the output boundary lies between the entries. It can produce the extra letter because the first entry supplies a corrected form. These decisions are represented independently within the same route through the character string, although to the reader they appear together as a single successful repair.
A boundary change need not itself alter a letter. For a split error, an entry can recognize a span across a space the learner supplied and return a single word for the span. For a misspelling contained within a word, an entry can propose a different form while the surrounding boundaries stay fixed. Representing these operations as alternative nodes gives the decoder the same decision to make in each case. It compares a complete route that contains the candidate with the other routes available for the sentence. The graph supplies the possibilities, and the learned costs determine which ones are preferred.
Joint spelling correction and tagging in MeCab
The steps in order.
What a dictionary entry contributes
The standard dictionary contains a surface form, a base form, and grammatical information. A surface form is the string matched against the input. A base form records the form used as the lexical reference, such as write for the entry matching writing. The fine-grained tag can distinguish the reading of the surface form, while a broader tag group brings related tags together. The authors give adjectives as an example. The groups combine JJ, JJR, and JJS under JJ, allowing features to use the broader category while the output can keep the more specific tag.
The implementation puts a cost, a tag group, a base form, a specific tag, a spelling flag, and a correction field alongside the surface form. The flag CORR marks a standard entry, whose correction field contains a placeholder. INCO marks an error entry and the correction field names the form to return. For absoletuly, the error entry points to absolutely and carries the adverb tag RB. In the entry for difficultly with the proposed repair difficult, the analysis reflects the adjective JJ. This distinction matters because a correction can change the grammatical identity represented in the lattice.
A given repair can have several entries. The authors illustrate this with bok and the candidate book. The learned standard dictionary includes book as a noun with the tag NN and as a verb with the tag VB. The error dictionary can therefore give bok both analyses, with the costs associated with those readings. Their output spellings agree. Their paths can still score differently because the tags have different preferences in combination with the entries on either side. A successful spelling decision alone would leave this ambiguity open. The joint decoder resolves it as part of the same sentence analysis.
The standard-entry costs and the costs for neighboring tags come from training the conditional random field. An error entry takes its cost and grammatical information from the corresponding standard entry. This allows the authors to add a repair without learning a separate weight for that particular misspelling. If the repair can be proposed and its standard entry already has a learned cost, the decoder has enough lexical information to consider it. The misspelled surface form is what lets the entry match the input. The repair and its grammatical reading are what make the match useful in context.
There are consequently two different ways for a possible repair to fall short. The dictionary construction may fail to supply it, leaving the correct reading out of the lattice. Or the graph may contain the reading and the decoder may prefer a different route. The difference is visible in the design even when it cannot be diagnosed from the printed sentence alone. In particular, adding alternatives helps only with the first problem directly. It also changes the second by giving the decoder more paths to discriminate among, some of which can compete with a correct word already present in the input.
How the conditional random field scores a path
The conditional random field assigns probabilities to whole analyses given a sentence. Its variables describe the successive word and tag choices in a path. The path length can vary with the segmentation. For a path through swimingpool that yields swimming pool, the part of the path covering that string has a separate node for each output word. The probability calculation follows the nodes of the proposed analysis and therefore works when another path covering the same characters has a different length.
P(y ∣ x) = exp(Σᵢ₌₁…#y Σₖ λₖ fₖ(⟨wᵢ₋₁, tᵢ₋₁⟩, ⟨wᵢ, tᵢ⟩)) / Zₓ
Here P(y ∣ x) is the conditional probability of output path y given input sentence x. The bar means “given.” The symbol #y counts the tokens on that output path and i is a position on it. The notation Σᵢ₌₁…#y adds contributions over those positions, starting at 1. At position i, wᵢ denotes the word associated with the selected entry and tᵢ its tag. Angle brackets group the word and tag into a pair. The subscript i−1 refers to the preceding position on the path. The sum Σₖ runs over features indexed by k. For each such feature, fₖ returns its value for the adjacent entries and λₖ is its learned weight. The product contributes to the path score. The function exp turns the total score into a positive quantity, and Zₓ is the denominator shared by the possible paths for x.
Zₓ = Σᵧ′∈Y(x) exp(Σᵢ₌₁…#y′ Σₖ λₖ fₖ(⟨w′ᵢ₋₁, t′ᵢ₋₁⟩, ⟨w′ᵢ, t′ᵢ⟩))
In this expression Y(x) is the set of candidate paths for sentence x, and y′ ∈ Y(x) denotes any member of that set. The outer sum adds the exponential score for every member. The prime marks the quantities belonging to the candidate currently being summed. Its length is #y′, and w′ and t′ refer to its words and tags. The position index i again runs from 1 through the candidate’s own length, with i−1 referring to its predecessor. The brackets pair words and tags, k indexes the same features, and λₖ, fₖ, and exp have the meanings used for the probability of an individual path. The resulting Zₓ normalizes the scores across the complete candidate set.
This calculation makes clear what the feature weights describe. They do not give a repair a single probability that applies wherever it appears. The probability of a path depends on the other possible paths and on how its entries score together. An entry carrying an adverb reading can receive support from its neighbors in one sentence and face stronger competition in another. The fixed denominator matters for interpreting the scores as probabilities. For selecting the highest-scoring candidate on a given sentence, every candidate shares that denominator, so their order comes from the path scores in the numerators.
ŷ = argmaxᵧ∈Y(x) P(y ∣ x)
The symbol ŷ names the output path the decoder chooses. The expression argmax returns the candidate y that maximizes the stated probability, and y ∈ Y(x) restricts the choice to the lattice paths available for x. The quantity being maximized is the conditional probability of the candidate given the sentence. The paper uses the Viterbi algorithm to find the best path. Because scores are assembled from local contributions, the search can retain the best route reaching a given candidate and extend it through allowed connections. The route recovered at the end specifies all the selected entries along with their boundaries and tags.
What the features can see
The paper’s training template includes features for single entries and for adjacent entries. For a single entry it lists the word alone, the word combined with its part-of-speech tag, and the word combined with its broader tag group. In the pairwise template it lists the adjacent words alone, the adjacent words combined with the preceding tag, and the adjacent words combined with the current tag. The implementation also describes a part-of-speech bigram cost on an edge, meaning a cost for a tag followed by another tag. A n-gram is a sequence of adjacent items, and a bigram is the adjacent pair used here.
These signals express different forms of preference. A word feature can contribute evidence for the lexical choice itself. A word with its tag can distinguish a noun use from a verb use. A pair of words with a tag can distinguish readings in a particular local sequence. A tag transition can contribute grammatical evidence when the exact neighboring words matter less than their categories. Applied to the repair here in place of hear, the system has a way to compare an adverb reading with a verb reading in the same position. The decoder uses the cost of the whole route, including the transitions on both sides of the choice.
The features also clarify the scope of the grammatical information. The local sequence records the word and tag context described by the template. The system can piece together an analysis across the whole sentence because local scores accumulate along the path. That property does not give a single decision direct access to an arbitrary distant word or to the meaning of the whole essay. For repairs that can be resolved through local category preferences, the available information can be adequate. For choices that remain equally likely under a local reading, the same search can return a grammatical path with an unintended word.
Training the tagger and collecting repairs
The work uses MeCab for training and decoding, with the NAIST English dictionary as the basic lexicon. The authors first use MeCab trained on the Penn Treebank, which they call MeCab-PTB. The Cambridge learner essays have human error annotations but lack a set of part-of-speech tags that the authors can use directly for training. They therefore apply MeCab-PTB to corrected versions of the Cambridge training sentences and use its output as the tagged learner training material. The next training run combines that material with the Penn Treebank. The resulting analyzer is called MeCab-CLC.
The order of these operations separates the source of the grammar from the source of the errors. The tagger learns from correctly formed text, including corrected learner sentences carrying automatically assigned tags. Separately, the original learner forms and their annotated repairs yield a dictionary of mistakes. In the paper this training dictionary is called LexTrain. For each pair, the authors look up the repaired form in the standard dictionary whose costs were learned with MeCab-CLC. They add the available grammatical readings to the error entry inventory. Across the sampled training sets, LexTrain contains an average of 4,656 entries, with examples from all the spelling categories under study.
This procedure can reuse an attested repair when a learner repeats a known mistake. To make other repairs available, the authors also run GNU Aspell on the Cambridge test material to obtain suggestions without reading the annotated test answers into the dictionary. They add the words from the corrected Cambridge training sentences to Aspell’s dictionary to improve its vocabulary, including cases such as proper names that it otherwise fails to recognize. The extra inventory built from suggestions is called LexTest. Its name refers to the text from which the suggestions are generated. Its entries draw their analyses and costs from the trained standard dictionary.
If a proposed source-and-repair pair already appears in LexTrain, the separate suggestion inventory need not add it again. When a proposed repair has multiple tagged entries in the learned dictionary, the authors make those alternatives available. If the repaired form is absent from that dictionary, they discard the pair because there is no corresponding cost to borrow. As a consequence, a suggestion can reach the decoder only when the system can connect it to a lexical analysis. The joint configuration is MeCab-CLC with the indices for LexTrain and LexTest added. The paper calls it MeCab-CLC+Lex.
The distinction between the two repair inventories is important for interpreting claims about unseen errors. A misspelling that did not occur in training can be corrected when a tool proposes the right form and the learned dictionary has an entry for it. LexTrain provides changes learned from annotated learner writing, including cases where the source already looks like an English word. LexTest extends the choices through suggestions available at test time. The tagger itself chooses from the graph these entries make possible. Its contribution is to score possible analyses with the corrections still open.
Experiments and results
The learner corpora and the test conditions
The training and development materials, along with the in-domain test material, come from the CLC FCE dataset, where CLC stands for Cambridge Learners Corpus and FCE for First Certificate in English. The paper reports 1,244 files, containing 2,488 essays in total. The corpus statistics give 28,033 sentences and 423,850 tokens, with writers from 16 first-language backgrounds. Human error annotations provide written forms and repairs. The authors randomly assign 1,000 files to training, 100 to development, and 100 to testing, and draw five samples for statistical analysis. They use the development set to choose the MeCab training hyper-parameter c. A New Dataset and Method for Automatically Grading ESOL Texts
The second resource is the Konan-JIEM learner corpus, abbreviated KJ. Its 233 essays, 3,199 sentences, and 25,537 tokens come from Japanese learners of English. It provides part-of-speech tags and grammatical error annotation, with spelling errors left untagged. Accordingly, it serves as a tagging test and supplies no spelling-correction evaluation. The experiments use the Cambridge training and development material for this test as well. This gives the study a comparison beyond held-out Cambridge files, with a different learner population and a tagging reference whose conventions can differ.
The Cambridge annotations distinguish ordinary spelling errors, spelling confusions, inflection, and derivation. The authors form their correction task from these annotations, grouping homophones with other confusion cases in the distribution table and identifying split and merge examples separately. They count 8,349 spelling errors under the study’s definition. The largest category is typographical errors, with 4,859 cases and a share of 58.2%. Derivation accounts for 1,913 cases and 22.9%. Inflection accounts for 760 cases and 9.1%. These figures describe the corpus under the paper’s grouping, before asking which error types a system handles well.
The same distribution lists 789 homophone or confusion cases, representing 9.5%. There are 17 split cases, at 0.2%, and 11 merge cases, at 0.1%. The small counts for boundary errors matter when interpreting the aggregate scores. The variable-boundary design is particularly relevant to these cases, yet they make up a small share of the annotated errors in this corpus. The aggregate spelling result therefore contains more evidence about performance on the mix as a whole than it does about how frequently the decoder resolves a split or a merge correctly.
The authors also filter which pairs they use. They exclude pairs where the original is shorter than 3 letters or is a pronoun, with the aim of avoiding corrections to very frequent forms. They exclude pairs that reflect confusion of meaning, giving dead and killed, and although and however, as examples. This defines a scope for the spelling component. It can address some errors between familiar words while leaving certain short, frequent forms and broader issues of word choice outside its repair inventory.
In the experimental setup the authors describe, sentences have their other annotated errors repaired in advance, leaving the spelling errors for the systems to analyze. This makes the test more directly about spelling and tagging. A remaining typo or unwanted word boundary can still change the grammatical analysis, while a separate determiner or verb error has already been addressed if it falls outside the study’s spelling definition. The setup also matters when interpreting the Cambridge reference. The paper uses MeCab-PTB on the fully corrected test text to provide the reference analysis there, so the Cambridge evaluation can proceed in spite of the absence of manual POS tags in that corpus.
The authors report a preliminary Penn Treebank evaluation of MeCab-PTB with precision of 0.974, recall of 0.980, and F-value of 0.977. They use sections 0-18 for training and sections 22-24 for that test. Those numbers concern the preliminary tagger on Penn Treebank material. They help describe where the automatically supplied tags came from, while the learner-corpus numbers measure a separate task with spelling and segmentation in play. The authors caution that their choice of Penn Treebank file representation complicates comparisons with taggers trained and tested using the format more commonly used for that purpose.
What each system could change
The tagging comparison starts with POS-BASELINE, which runs MeCab-CLC directly on the test sentence. The analyzer can search over segmentations allowed by its dictionary, but it does not have the additional error entries used in the joint condition. This means it may analyze an existing word under its ordinary reading even where a correction is needed. It may also segment an unfamiliar form into known pieces. Its scores provide the point of reference for what the trained tagger can do before an explicit spelling-repair stage is added.
POS-PIPELINE uses the same MeCab-CLC tagger after an explicit correction pass. GNU Aspell proposes candidates for unknown words. A contextual scorer built from the Google Web corpus reorders those candidates using a 5-gram setting, and the selected changes are made before tagging. The authors use IRSTLM for that component. This gives the pipeline local word context and lets it repair ordinary typos that would otherwise interfere with tagging. The restrictions on which words are checked and when candidates are committed help explain why some real-word errors can survive the spelling stage.
POS-JOINT uses the extended lexical inventories and chooses an analysis of the original learner text through the lattice. Its output can repair a word and assign a tag as part of the same decision. For the separate spelling evaluation, SP-JOINT takes the repairs from this output. SP-BASELINE is GNU Aspell itself. The paper reports this spelling comparison on CLC FCE only. The spelling table and the tagging table thus answer different questions. One compares proposed edits with annotated edits. The other compares the token-and-tag sequences yielded by three configurations.
What precision, recall, and F-value count
For tagging, the reference count is the number of tokens in the reference, and the system count is the number of tokens in the output. A token enters the correct count when its segmentation and part-of-speech tag match the reference at that location. This makes the evaluation sensitive to both word boundaries and labels. It also allows the output count to differ from the reference count, which is essential in a test where some systems can analyze what should be a word as multiple pieces.
The paper’s studing example illustrates the distinction. The reference treats studying as one verb form, while the candidate output assigns separate tags to stud and ing. The surrounding tokens still match. The reference has 6 tokens, the candidate output has 7, and 5 are counted as correct. The segmentation error therefore contributes unmatched outputs as well as leaving a reference item unrecovered. A score that examined tags only after forcing both sequences into the same given boundaries would miss part of the problem the paper sets out to solve.
For spelling, each item is a repair pair formed from what the learner wrote and the proposed correction. The reference count comes from the annotated repairs, the output count from the changes the system makes, and the correct count from changes that agree with the reference. In the paper’s example, changing convinent to convenient earns credit. Replacing appliaces with places does not match the annotated appliances, even though the system has identified a problematic input. Changing their to there introduces a repair where the reference calls for none. This yields 2 reference repairs, 3 proposed repairs, and 1 match.
Precision = N꜀ₒᵣᵣ / Nₛᵧₛ
Precision is the share of system outputs that match, with N꜀ₒᵣᵣ denoting the count of correct matches and Nₛᵧₛ the count of items returned by the system. The slash denotes division. In the tagging test these items are tokens evaluated with their tags and boundaries. In the spelling test they are proposed repair pairs.
Recall = N꜀ₒᵣᵣ / Nᵣₑ𝒻
Recall measures how much of the reference the system recovers. The numerator N꜀ₒᵣᵣ is again the number of matches, and the denominator Nᵣₑ𝒻 is the reference count. The division is over reference tokens for tagging or reference repair pairs for spelling. A system can increase recall by finding errors it previously missed, including when some of its other new proposals prove wrong.
F-value = (2 × Precision × Recall) / (Precision + Recall)
F-value combines the precision and recall just defined. The numerator multiplies them and applies the factor 2. The denominator adds them. The multiplication sign ×, addition sign +, and slash indicate those operations, with parentheses grouping numerator and denominator. For the spelling comparison, this combined measure reflects both how often the system’s proposed repairs are right and how many annotated repairs it finds. The separate scores still matter because the same direction of change in F-value can accompany different changes in precision and recall.
Part-of-speech tagging on Cambridge and Konan-JIEM
On CLC FCE, POS-JOINT has the highest reported tagging F-value. Its precision is 0.982 and its recall is 0.979. POS-PIPELINE reaches precision of 0.961 and recall of 0.976, while POS-BASELINE records 0.950 and 0.971 respectively. The greater separation in precision is consistent with the system avoiding some incorrect outputs as it corrects words and reconsiders boundaries. The aggregate metrics combine both effects. They do not count how many of the additional matching tokens came from better tagging on unchanged boundaries and how many came from choosing different boundaries.
Part-of-speech tagging F-value on the CLC FCE test set
The joint analysis achieves the highest tagging F-value.
The numbers
| System or setting | F-value |
|---|---|
| POS-BASELINE | 0.960 |
| POS-PIPELINE | 0.968 |
| POS-JOINT (this paper) | 0.981 |
The Cambridge table marks the joint result as statistically better than both the no-correction baseline and the pipeline for precision and F-value, using p < 0.05. It prints the joint recall as the highest of the Cambridge recall values without marking that comparison as significant. The distinction matters because the reported ordering of the systems and the comparisons marked as statistically supported answer different questions. The paper’s introduction and conclusion summarize the Cambridge tagging F-value gain over the baseline as 2.1%.
The KJ tagging scores follow the same ordering for F-value, although the absolute values are lower. POS-JOINT reaches precision of 0.853 and recall of 0.871. POS-PIPELINE gives precision of 0.827 and recall of 0.857. POS-BASELINE gives precision of 0.794 and recall of 0.857. The table marks all the joint KJ comparisons against both alternatives as significant. For KJ F-value specifically, the authors summarize the joint gain over the baseline as 3.8%.
Part-of-speech tagging F-value on the Konan-JIEM corpus
The joint analysis leads on the tagging test outside the Cambridge corpus.
The numbers
| System or setting | F-value |
|---|---|
| POS-BASELINE | 0.824 |
| POS-PIPELINE | 0.842 |
| POS-JOINT (this paper) | 0.862 |
The results table marks the KJ pipeline’s precision and F-value gains over the baseline as significant. The surrounding discussion says that only the joint condition has a significant F-value improvement. These accounts differ on KJ’s pipeline comparison. Both support the finding that the joint condition leads the pipeline on tagging F-value in each corpus. The KJ results extend the tagging comparison to a separately annotated corpus, while their interpretation also depends on the differences in segmentation conventions and learner vocabulary discussed by the authors.
Spelling correction on Cambridge
For CLC FCE spelling, SP-JOINT gives recall of 0.622, compared with SP-BASELINE’s 0.427. It recovers a larger share of the annotated corrections. Its precision is 0.445, compared with 0.519 for the baseline, so a smaller share of its proposed edits agrees with the reference. The increase in recall carries through to a higher F-value. The paper marks the differences in all these metrics at p < 0.05. For precision, the direction of the marked change is downward.
Spelling correction F-value on the CLC FCE test set
The joint system has the higher combined precision and recall score.
The numbers
| System or setting | F-value |
|---|---|
| SP-BASELINE | 0.468 |
| SP-JOINT (this paper) | 0.519 |
The spelling improvement is consequently a change in the balance of recovered errors and unsuccessful edits. The authors report a spelling recall gain of 19.5% and an F-value gain of 5.0%, using the changes given in their results. The absolute scores make the direction of the tradeoff clear. The joint system is able to choose repairs that a checker restricted to typographical cases would leave untouched, and that freedom also creates opportunities to edit a correct word. The examples in the discussion show both effects in individual sentences.
What the ablations show
What the system comparisons isolate
The paper provides comparisons between complete systems and a qualitative analysis of their outputs. It reports no component-by-component ablation of the tag features, repair inventories, or variable boundaries. The no-correction baseline and the spelling-first pipeline are useful controls because both use the same trained Cambridge tagger. Moving from the baseline to the pipeline adds an upstream spelling procedure. The difference in their tagging scores measures the effect of using that procedure as part of the tested pipeline, including cases where it helps the tagger and cases where it changes an input unhelpfully.
The joint condition changes more than the timing of the correction decision. It makes the additional lexical entries available, allows the repair and tag to be selected through a common path, and can represent repaired boundaries directly. The spelling-first comparator restricts its correction step to unknown words. A familiar but unintended word therefore has different opportunities to be edited in the two systems. The comparison establishes the performance of the authors’ full design against their pipeline. It leaves open how much of the gain would survive if both strategies began with the same candidate inventory and the same flexibility over word boundaries.
Similarly, comparing SP-BASELINE with SP-JOINT shows the overall effect of expanding spelling analysis beyond Aspell alone. It does not isolate a contribution from any single feature of the joint analysis. An additional successful edit may be possible because an entry learned from the learner corpus supplies a repair, because the lattice supports a boundary change, or because grammatical features prefer one available path. Often these mechanisms can work together. The individual examples help identify where a mechanism is plausible, while the aggregate results give the net effect of the package on the evaluation.
Repairs that reveal how the search helps
The authors present successes for all 7 error types they distinguish in the discussion. The example surprice illustrates what an ordinary typo can do to a tagger that analyzes the input directly. The baseline splits the string into sur and price. The joint system restores the intended word and assigns its tag. Here the paper also reports that the pipeline corrects the error. This case demonstrates how spelling repair restores a workable input for tagging. It also shows why the gain from joint analysis has to be judged against a spelling-enabled pipeline as well as against direct tagging.
The contrast is sharper for hear where the learner intended here. The relevant local comparison in the paper places the candidate after am and before to. With hear, the candidate brings the verb tag VB. With here, it brings the adverb tag RB. The joint decoder compares these readings as parts of alternative paths, drawing on the different local tag sequences. The baseline and pipeline leave the error in the example. The contrast is informative because the original hear has an ordinary dictionary reading. It can remain unchanged in a procedure whose spelling proposals are directed at unknown words.
A confusion error and a split error also appear among the successful examples. Their mechanisms overlap with the homophone case in that an apparently legitimate reading of the source competes with the intended analysis. For a split error, the competing reading also has a different segmentation. Candidate availability therefore matters at two levels. The system needs an entry capable of representing the intended form, and the decoding graph has to allow that entry to cover the relevant space-separated characters. The authors show that each is possible under their procedure, with no separate score reported for these categories.
For swimingpool, the quoted classification is a merge error because the source lacks the boundary in the intended phrase. It also needs a spelling repair to the first component. The baseline fails to find the required split, and the pipeline fails to complete the correct spelling repair in the authors’ example. The joint route recognizes a corrected swimming followed by pool. This is a more direct illustration of variable-boundary analysis than the ordinary typo example because a single output decision has to accommodate both an altered form and an altered segmentation.
The paper also presents successes on inflection and derivation and mentions the hyphenated case fourty-five becoming forty-five. The inflection and derivation cases matter for the task definition. In each, a plausible written form can carry a grammatical interpretation that competes with the intended one. An error entry can supply the attributes of the corrected form and let that reading participate in the sequence search. A worked success establishes that the architecture can express and select such a repair. It gives no estimate of success frequency for the category across the corpus.
What the wrong repairs reveal
The authors distinguish cases where the system recognizes an apparent error but chooses the wrong correction from cases where it changes a word that should stay. Beginers illustrates the first pattern. The joint system proposes beginner where the reference calls for beginners. A change can be plausible as an edit to the characters and still fail to express the intended number. Similarly, the authors discuss the replacement of concer by cancer as an unsuccessful choice. They argue that some such cases need information about meaning or context beyond what the local analysis supplies.
The second pattern is illustrated by the system changing fell to feel and made to mad in contexts where the original forms are correct. These errors are a consequence of letting an accepted English word compete with a different word. The mechanism needed to correct hear in the earlier example can also generate a change when the standard entry already gives the intended reading. The authors point to sparse data or inadequate feature templates as possible causes in these examples. They do not report an experiment separating those explanations.
There are also misses where the correct output would require a change and the system leaves the source in place. The paper gives a case involving main, a word that can receive an ordinary lexical analysis. For After words in place of Afterwards, the needed repair combines a boundary change with a difference in the letters. The system misses it. This complements the successful swimingpool example. The lattice can support some compound repairs when appropriate entries and costs are present. A combination of spacing and spelling changes remains difficult when the current reading is plausible or when the intended combination cannot compete successfully.
The authors observe that confusion and derivation account for many of the missed examples they discuss, with some misses also involving inflection or splits. In some cases, the tags before correction still form a plausible sequence. An adjective, noun, or verb can be locally acceptable even where the writer meant a different form. The paper also observes that incorrect tagging frequently accompanies failed spelling correction in the cases examined. These are qualitative patterns from the discussion. They explain ways the errors can arise without describing how often each mechanism accounts for a failure in the test set as a whole.
Limitations
Limits identified by the authors
The authors identify a need for more contextual information. Their analysis relies on local lexical and tag features, and some mistakes are ambiguous at that level. In an inflection or derivation case, both the original and the proposed replacement may produce credible near-neighbor sequences. In a typo case, multiple repaired forms may yield grammatical sentences. Evidence elsewhere in the sentence or beyond it may be necessary to choose the intended meaning. The discussion proposes broader context to address both the corrections the system misses and the unneeded changes it makes.
They also flag problems in the reference answers. A correction can be linguistically acceptable while disagreeing with the specified output. The authors give variants such as color and colour, and the adverbial alternatives first and firstly. The evaluation checks the proposed pair against the annotated pair. An accepted spelling variant or a plausible alternate word can therefore receive the same score as a genuinely mistaken proposal. The paper also identifies annotation mistakes in which the recorded replacement is itself malformed. Those cases can penalize a system that returns the intended standard spelling. The authors suggest the effect on precision could be modest, and they do not measure it separately.
The authors offer several possible explanations for the lower KJ tagging scores. KJ can represent some entries with composite tags, as with everyday tagged DT-NN and logout tagged VBN-RP. A difference of this kind can cause disagreement even when an output has captured some properties of the word. The corpus also contains Japanese words written in Roman letters, including Onigiri and himawari, which present challenges for both segmentation and tagging. For CLC FCE, the authors suggest that limited topics and overlap in categories between training and test files may contribute to the high tagging values. These are interpretations of the results rather than separately tested causes.
Limits of the evidence from the setup
The evaluation removes other annotated errors before the systems analyze the sentences. This isolates an important interaction, but the interaction could behave differently in raw learner writing. Another uncorrected error nearby might make the appropriate tag sequence harder to recognize or obscure the context that would distinguish two spelling candidates. Conversely, a full correction system might use a spelling repair to support a later grammatical decision. The paper motivates that possibility through its account of the pipeline. Its measurements stop at spelling and tagging, so they leave the downstream effect on syntactic analysis and grammatical repair unmeasured.
The two corpora also provide different kinds of evidence. CLC FCE supports direct spelling evaluation through its annotated edits, and its tagging reference is obtained by analyzing corrected text with MeCab-PTB. The CLC system’s learner training tags also come from MeCab-PTB on corrected Cambridge sentences. Agreement on that benchmark reflects performance relative to the automatically supplied tagging analysis. KJ provides separately assigned tags and tests tagging in another corpus, but offers no annotated spelling repairs. The experiments therefore show a tagging advantage in both settings and a spelling advantage on the Cambridge F-value measure. They leave spelling performance on KJ unknown.
Coverage depends on the dictionary and the repair proposals. A familiar error recorded in training can be offered again. An error absent from training can be handled if a usable candidate becomes available and the standard dictionary can supply its grammatical information and cost. A repair that never enters the lattice cannot be selected by the decoder. This qualifies the paper’s claim about novel misspellings. The method can score some repairs for previously unobserved inputs, while its search is bounded by the lexical candidates it receives and by the filtering decisions that define the task.
The aggregate numbers do not give equal evidential weight to every error kind. The Cambridge spelling distribution is dominated by typographical cases and includes very few split or merge examples. The analysis demonstrates individual boundary repairs, but gives no separate precision, recall, or F-value for them. The same issue applies to real-word changes. Some are among the successful cases, and some produce the false positives that lower the combined system’s spelling precision. Without per-category results and a comparison using identical candidate inventories, it is difficult to attribute the aggregate gain to any one repair class or to the grammatical scoring alone.
Finally, F-value summarizes performance under a matching rule that gives credit for exact agreement with a chosen reference. In the spelling test it rewards the joint system’s greater recovery of annotated edits despite its lower precision. That result supports the paper’s specific comparison, while the individual failures show why a higher combined score can coexist with more unwelcome proposed changes. For tagging, the boundary-and-tag criterion fits the task’s design but mixes kinds of disagreement. The paper does not separately report how much improvement comes from finding the right boundaries, assigning better tags once boundaries agree, or restoring words that improve the neighboring analysis.
What came after
No later citing work is documented here. The paper’s own experiments establish a result for joint spelling correction and tagging on learner text, while leaving open whether later systems reused the spelling lexicon, adopted the variable-boundary search, or evaluated either idea on fully uncorrected essays.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 3Research subjects and languages the work is about.English · 2,381 worksPart-of-speech tagging · 126 worksGrammatical error correction & learner language · 165 works
Cite
Cite as Keisuke Sakaguchi, Tomoya Mizumoto, Mamoru Komachi and Yuji Matsumoto. 2012. Joint English Spelling Error Correction and POS Tagging for Language Learners Writing. Proceedings of COLING 2012.
@inproceedings{sakaguchi2012joint,
title = {{Joint English Spelling Error Correction and POS Tagging for Language Learners Writing}},
author = {Keisuke Sakaguchi, Tomoya Mizumoto, Mamoru Komachi and Yuji Matsumoto},
booktitle = {Proceedings of COLING 2012},
year = {2012},
url = {https://aclanthology.org/C12-1144/}
}References
- Baba, Y. and Suzuki, H. (2012). How Are Spelling Errors Generated and Corrected? A Study of Corrected and Uncorrected Spelling Errors Using Keystroke Logs. Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics, pages 373–377. OpenAlex ↗ · Scholar ↗
- Bao, Z., Kimelfeld, B., and Li, Y. (2011). A Graph Approach to Spelling Correction in Domain-Centric Search. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics, pages 905–914. OpenAlex ↗ · Scholar ↗
- Brants, T. and Franz, A. (2006). Web 1T 5-gram Corpus version 1.1. Technical report, Google Research. OpenAlex ↗ · Scholar ↗
- Brill, E. and Moore, R. C. (2000). An Improved Error Model for Noisy Channel Spelling Correction. Proceedings of the 38th Annual Meeting on Association for Computational Linguistics, pages 286–293. DOI ↗
- Brockett, C., Dolan, W. B., and Gamon, M. (2006). Correcting ESL Errors Using Phrasal SMT Techniques. Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the Association for Computational Linguistics, pages 249–256. DOI ↗
- Chen, Q., Li, M., and Zhou, M. (2007). Improving Query Spelling Correction Using Web Search Results. Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, pages 181–189. OpenAlex ↗ · Scholar ↗
- Dahlmeier, D. and Ng, H. T. (2011). Grammatical Error Correction with Alternating Structure Optimization. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics, pages 915–923. OpenAlex ↗ · Scholar ↗
- Dahlmeier, D. and Ng, H. T. (2012). A Beam-Search Decoder for Grammatical Error Correction. Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, pages 568–578. OpenAlex ↗ · Scholar ↗
- Dale, R., Anisimoff, I., and Narroway, G. (2012). HOO 2012 : A Report on the Preposition and Determiner Error Correction Shared Task. The 7th Workshop on the Innovative Use of NLP for Building Educational Applications, pages 54–62.
- Felice, R. D. and Pulman, S. G. (2008). A Classifier-based Approach to Preposition and Determiner Error Correction in L2 English. Proceedings of the 22nd International Conference on Computational Linguistics (Coling 2008), pages 169–176. DOI ↗
- Gamon, M. (2010). Using Mostly Native Data to Correct Errors in Learners’ Writing: a Meta-Classifier Approach. Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics, pages 163–171. OpenAlex ↗ · Scholar ↗
- Gao, J., Li, X., Micol, D., Quirk, C., and Sun, X. (2010). A Large Scale Ranker-based System for Search Query Spelling Correction. Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010), pages 358–366. OpenAlex ↗ · Scholar ↗
- Goldberg, Y. and Tsarfaty, R. (2008). A Single Generative Model for Joint Morphological Segmentation and Syntactic Parsing. Proceedings of the 46th Annual Meeting of the Association for Computational Linguistics, pages 371–379. OpenAlex ↗ · Scholar ↗
- Golding, A. R. and Roth, D. (1999). A Winnow-Based Approach to Context-Sensitive Spelling Correction. Machine Learning, 34:107–130. DOI ↗ · OpenAlex ↗ · Scholar ↗
- Han, N.-R., Chodorow, M., and Leacock, C. (2006). Detecting Errors in English Article Usage by Non-Native Speakers. Natural Language Engineering, 12(02):115–129. DOI ↗ · OpenAlex ↗ · Scholar ↗
- Hatori, J., Matsuzaki, T., Miyao, Y., and Tsujii, J. (2012). Incremental Joint Approach to Word Segmentation, POS Tagging, and Dependency Parsing in Chinese. Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics, pages 1045–1053. OpenAlex ↗ · Scholar ↗
- Islam, A. and Inkpen, D. (2009). Real-Word Spelling Correction using Google Web 1T 3-grams. Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, pages 1241–1249. OpenAlex ↗ · Scholar ↗
- Izumi, E., Uchimoto, K., Saiga, T., Supnithi, T., and Isahara, H. (2003). Automatic Error Detection in the Japanese Learners’ English Spoken Data. Proceedings of the 41st Annual Meeting on Association for Computational Linguistics, pages 145–148. DOI ↗ · OpenAlex ↗ · Scholar ↗
- Kudo, T., Yamamoto, K., and Matsumoto, Y. (2004). Applying Conditional Random Fields to Japanese Morphological Analysis. Proceedings of the 2004 Conference on Empirical Methods in Natural Language Processing, pages 230–237.
- Kukich, K. (1992). Techniques for Automatically Correcting Words in Text. ACM Computing Surveys, 24(4):377–439. DOI ↗ · OpenAlex ↗ · Scholar ↗
- Lafferty, J., McCallum, A., and Pereira, F. (1999). Conditional Random Fields : Probabilistic Models for Segmenting and Labeling Sequence Data. Proceedings of the 18th International Conference on Machine Learning 2001 (ICML 2001), pages 282–289. OpenAlex ↗ · Scholar ↗
- Lee, J. and Seneff, S. (2008). Correcting Misuse of Verb Forms. Proceedings of the 46th Annual Meeting of the Association for Computational Linguistics, pages 174–182. OpenAlex ↗ · Scholar ↗
- Nagata, R., Whittaker, E., and Sheinman, V. (2011). Creating a Manually Error-tagged and Shallow-parsed Learner Corpus. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics, pages 1210–1219. OpenAlex ↗ · Scholar ↗
- Park, Y. A. and Levy, R. (2011). Automated Whole Sentence Grammar Correction Using a Noisy Channel Model. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics, pages 934–944. OpenAlex ↗ · Scholar ↗
- Rozovskaya, A. and Roth, D. (2011). Algorithm Selection and Model Adaptation for ESL Correction Tasks. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics, pages 924–933. OpenAlex ↗ · Scholar ↗
- Sun, X., Gao, J., Micol, D., and Quirk, C. (2010). Learning Phrase-Based Spelling Error Models from Clickthrough Data. Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics, pages 266–274. OpenAlex ↗ · Scholar ↗
- Surdeanu, M., Johansson, R., Meyers, A., Màrquez, L., and Nivre, J. (2008). The CoNLL-2008 Shared Task on Joint Parsing of Syntactic and Semantic Dependencies. Proceedings of the 12th Conference on Computational Natural Language Learning, pages 159–177. DOI ↗
- Tajiri, T., Komachi, M., and Matsumoto, Y. (2012). Tense and Aspect Error Correction for ESL Learners Using Global Context. Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 198–202.
- Toutanova, K. and Moore, R. C. (2002). Pronunciation Modeling for Improved Spelling Correction. Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 144–151. DOI ↗
- Yannakoudakis, H., Briscoe, T., and Medlock, B. (2011). A New Dataset and Method for Automatically Grading ESOL Texts. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics, pages 180–189.
- Zhang, Y. and Clark, S. (2010). A Fast Decoder for Joint Word Segmentation and POS -Tagging Using a Single Discriminative Model. Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing, pages 843–852. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/sakaguchi-2012-joint-english-spelling-error-correction/