Using the Web as a Linguistic Resource to Automatically Correct Lexico-Syntactic Errors
Paper · 2008 · Matthieu Hermet, Alain Désilets and Stan Szpakowicz
Summary
A learner can know what a sentence should mean and still be unsure which preposition belongs in it. The same preposition in a learner’s first language can correspond to different choices in French, even when much of the surrounding sentence stays the same. Teachers can explain individual patterns, but a program responding to free writing must handle combinations it was never explicitly taught. This paper studies how evidence from the Web can help with that part of grammatical error correction. It starts with a learner’s sentence in which a preposition has already been singled out for correction and asks which replacement fits the context.
The procedure first turns the sentence into a short search phrase. A grammatical analysis helps it retain the expression that governs the preposition and the expression that follows it. The procedure removes some surrounding material and reduces selected words to a more general form, so that the query can match passages that differ from the learner’s sentence in incidental ways. It then proposes alternatives from groups of prepositions that can be confused with one another. Each alternative goes into its own version of the phrase. A Web search supplies a hit count for each version, and the preposition in the highest-count version becomes the suggestion.
On 133 sentences by intermediate learners of French, the full method reached 69.9% correction accuracy. The sentences could contain other errors alongside the target. Antidote, the spelling and grammar checker used for comparison, reached 3.1%, and a baseline that always suggested de reached 24.8%. Running the search procedure on the sentence without first pruning and generalizing it produced 18.8%. That comparison identifies a practical difficulty with using the Web as a corpus. Even a large collection provides little guidance when a query preserves so much of an individual sentence that plausible alternatives receive few or no hits.
The authors also examined whether a smaller source of counts might suffice. In a simulation that retained Web-derived counts for sequences occurring more than 40 times, accuracy was 59.4%. A simulation on the scale of one thousandth of the French Web yielded 30.8%. These experiments suggest that a collection of frequent phrases could retain much of the useful evidence, although the study measured the effect through transformations of existing counts. The measured outcome throughout was the quality of the suggested replacement at a supplied error location. Finding such locations in unrestricted writing and helping students improve their subsequent writing were separate questions for future work.
Deep dive: Using the Web as a Linguistic Resource to Automatically Correct Lexico-Syntactic Errors
How a French preposition corrector uses grammar to form short Web queries, then ranks possible repairs by how often each phrase appears. · about 32 minutes to read
The problem and its context
From exercises to free writing
The paper situates preposition correction in computer-assisted language learning. A fill-in-the-blank exercise gives both the student and the software some help. It specifies the place where a decision is needed, and the designer can prepare a set of accepted answers. Multiple-choice exercises narrow the problem further by displaying alternatives. The program evaluates an answer in a context chosen for teaching a particular distinction. If the sentence would support an unintended reading, the designer can revise it before students see it.
In free writing, the learner chooses the sentence, the subject matter and the words that surround the preposition. A piece of software intended to respond to that writing must deal with combinations that arise from the learner’s own choices. The paper describes a movement towards more autonomous learning in such open-ended settings. The motivation is to give learners feedback on language they have tried to use to express something, including the parts of a sentence that an exercise writer would have supplied or controlled. Suggesting a repair for a preposition is one contribution to that larger task.
The study retains a piece of the structure of a closed exercise for experimental purposes. The location under consideration is supplied to the correction procedure. The wording around it comes from learner writing, and the procedure has to determine which alternative fits. This lets the authors investigate a difficulty that would survive even in a system with reliable detection. A checker could know where a sentence needs attention and still lack enough evidence to suggest the right change. Conversely, a procedure that produces a good suggestion given a location has established something useful about correction while leaving the detection problem open.
Why the surrounding words matter
Prepositions resemble grammatical function words in their inventory and frequency. A relatively small set is used repeatedly. The paper also treats them as carrying enough meaning for usage to depend on the expressions they connect. It cites a broad estimate of around 14% for the share of prepositional tokens in most languages. That estimate concerns the frequency of prepositions in running text. It gives a reason to expect learners to encounter these decisions often, independently of how hard any individual choice is.
The paper illustrates the problem with birthplaces. An English speaker can use in with both Winnipeg and America when identifying where someone was born. The French examples use à for Winnipeg and en for America. In both cases the preposition serves to introduce a birthplace. The change in the kind of place named changes which French preposition is appropriate. Memorizing a single French equivalent for in would give the learner too little information to make both choices.
The example also shows why people can understand a learner’s meaning while recognizing a problem with the expression. A preposition can point to the intended relationship, such as location, while remaining poorly suited to a particular French construction. Other cases depend on how a verb or another word conventionally combines with its complement. The authors call this kind of problem lexico-syntactic. Lexical choice concerns the words used. Syntax concerns the way those words are organized and the relationships between the parts. Correcting the preposition can require evidence about both.
That distinction has consequences for what a program should look at. The most informative clue may be the verb that selects a complement, the noun in the complement, or the combination of the two. A broad rule that distinguishes spatial from temporal expressions could narrow the possibilities and still leave several eligible candidates. A list of surface expressions could supply a direct precedent for a specific pair of words, but the list would need wide coverage. The paper looks for a way to combine a grammatical account of which words matter with observed evidence of how those words are used together.
The authors give an estimate of the relevance of the problem in learner writing. In written exercises by 30 intermediate and advanced university students learning French as a second language, they classified preposition errors as 17.2% of all errors and 23.6% of all lexico-syntactic errors. These percentages answer different questions about that collection. The first puts prepositions among all the problems counted in the exercises. The second puts them among problems concerning the relation between word choice and construction. The correction experiment uses a test collection defined as 133 sentences, and the paper gives the exercise statistics as motivation for studying this category of error.
What existing checkers could supply
The paper distinguishes grammatical analysis from checking combinations against observed usage. A grammar checker can analyze how sentence parts are organized and flag structures that violate a rule. A corpus-based tool can consult a collection of texts or information compiled from it to check whether words typically occur together. The latter addresses what the paper calls collocations, combinations whose acceptability or conventionality depends in part on the individual words involved. A passage can be structurally interpretable while containing an unconventional combination.
The authors describe Antidote as a French spelling and grammar checker that already uses corpus evidence for combinations of content words. Its treatment of collocation, as described in the paper, excludes prepositions. This detail matters to the choice of comparator. The authors were studying a target category that a generally useful checking product could leave mostly to other parts of its analysis. A product’s ability to evaluate some lexical combinations does not, on its own, tell an experimenter how it will handle a preposition inside a new combination.
Corpus coverage was a concern even for systems designed around observed combinations. To support a preposition decision directly, a collection must contain enough occurrences of the relevant expression, or related expressions, to distinguish the alternatives. A common verb and a common noun can still form an infrequent combination. Incorporating the precise phrasing of a learner’s sentence makes the lookup more specific still. The paper presents insufficient coverage as a reason that some lexical patterns remain hard to analyze with ordinary reference collections.
The idea of consulting the Web had precedents. The authors place their work alongside research on the Web as a linguistic corpus and mention earlier work that used it to study preposition collocations. Their application turns the resource towards a particular decision about a learner’s sentence. It asks a search engine for comparative support for phrases built around competing prepositions. This use of information retrieval depends on a prior decision about how to describe the local construction. A larger collection extends the range of observable combinations, while the grammatical processing determines which combination the program actually looks for.
The method, step by step
What goes in and what comes out
The input is a French sentence and the position of a preposition to examine. The procedure can receive a sentence containing additional errors. Its output is a proposed preposition for the indicated position. The authors divide the work between rules, which build a search expression and restrict its possible substitutions, and corpus evidence, which ranks the substitutions. The system uses the grammar of the input to prepare the comparison and the behavior of phrases in Web search to resolve it.
The paper’s illustration starts from a sentence about people calling immediately for help. The learner has put pour before l’aide. The procedure keeps a form of the verb appeler, the marked preposition, and the complement l’aide. The subject pronoun and the adverb expressing immediacy drop out, as does the auxiliary used with the original verb form. The resulting expression is close enough to the input to retain the particular sense of calling that matters, and short enough to stand a better chance of being found in other texts. The authors then consider variants containing à, avec, de, depuis, en, jusqu’a, par, pendant and sur.
The intended comparison is easier to see in the shortened expression than in the original sentence. A passage by another writer may use a different subject or say nothing about how quickly the people called. Those differences can coexist with the same choice of preposition. Retaining the idea of calling and the reference to help keeps the lookup focused on the construction in question. Searching for the full utterance would ask the corpus to reproduce multiple decisions unrelated to the error.
How the system ranks repairs for a marked preposition
The steps in order.
Finding the parts that make a useful query
The authors use the Xerox Incremental Parser, or XIP, for parsing, the analysis that assigns grammatical structure to the words. The desired output of the first stage is a governing syntactic unit together with a governed unit. The governor is the expression on which the prepositional construction depends. The governed unit supplies the complement that helps determine how the preposition is used. In the calling example, the verb and the reference to help give the search its lexical substance on the two sides of the preposition.
The governing and governed units are grammatical pieces. Their usefulness does not depend simply on their distance, measured in words, from the target. The adverb in the calling sentence occurs close to the preposition and is unnecessary for distinguishing the alternatives. The verb supplies more pertinent evidence even though other words intervene. Choosing units through a grammatical analysis gives the procedure a reason for keeping one piece of the sentence and dropping another.
Pruning and generalizing address different sources of sparsity. Pruning removes material whose presence would make the query more specific without improving its account of the preposition’s use. Generalizing alters the form of material that remains. A verb can appear in a particular tense or with an auxiliary because of what the writer is saying about the event. The relevant relationship to the complement can be shared by other forms of that verb. The shorter generalized query aims to make those contexts comparable.
The paper calls the change in word forms controlled lemmatization. A lemma is the conventional base form under which inflected forms of a word can be grouped. In the running example, a form used with an auxiliary is represented by the infinitive appeler. The procedure uses grammatical conditions to guide changes of this kind. In particular, the authors mention that decisions about past participles can depend on the accompanying auxiliary. A participle’s form alone would provide less information for deciding when the intended generalization applies.
“Controlled” also describes the balance the query has to strike. If the algorithm keeps every inflection and modifier, observations of similar uses can remain scattered across phrases the query never reaches. If it reduces the expression too far, a high count may reflect a different use of the same verb or preposition. Keeping both units preserves a specific lexical relationship. Changing selected forms and removing incidental text gives that relationship more chances to be observed.
This treatment differs from replacing the governing and governed expressions with broad labels such as “verb” and “noun.” A grammatical label can indicate what kind of constituent occurs in a position, but the paper’s frequency comparison remains a comparison of word sequences. The same general grammatical arrangement can accommodate different prepositions with different words. The method needs the written forms of the relevant lexical items because those are what tie the resulting counts to the choice the learner faces.
Parsing a sentence that is already known to contain an error
A preposition can influence how a parser connects one part of a sentence to another. Here the word under consideration is precisely the word the evaluator regards as erroneous. Giving the parser the entire sentence and relying on its analysis across that position could make the query depend on a relationship inferred from the wrong preposition. The paper adds a precaution at the point where that influence would enter the analysis.
XIP processes the words preceding the target as one chunk and the target together with the following words as another. The marked preposition stays at the beginning of the right-hand chunk for this purpose. The authors explain the choice in terms of left-to-right checks on what content words can take as complements. Since the two chunks are analyzed separately, the erroneous preposition is unavailable to those checks when the parser processes the material to its left. The later construction of a query can use pieces from both chunks.
This is a targeted way of protecting the words around the error. It exploits knowledge of the location of the problem and limits the amount of structure that the method asks the parser to infer across it. The procedure still needs enough local analysis to identify usable material. A sentence may contain another error inside either chunk, and that error could affect the shape of a local phrase. Splitting at the target prevents a particular source of interference. The choice of which parts of the resulting analysis to trust addresses the broader concern.
The authors rely chiefly on the lower-level parts of the parse, which give a shallow analysis of noun, adjective and verb phrases. “Shallow” here describes the level of detail. A useful result might identify a small unit without committing to a complete account of how every part of the sentence fits together. That gives the algorithm material it can carry into a query even when a larger analysis of the erroneous sentence would be unreliable.
XIP also produces a dependency analysis, which represents grammatical relations between words. The authors consider this part more susceptible to errors in the input. They consult it for selected ambiguities in pruning or generalization, including the conditions for reducing a past participle. This uses the information where it can change a specific decision about the query. The dependency analysis has a limited role in deciding what the system retains.
The two precautions operate at different levels. Chunking determines what the parser receives in each pass. Selective use of its outputs determines what kinds of grammatical commitment the correction method inherits. A reliable noun phrase boundary may be sufficient on one side of a preposition, while deciding how to represent the verb may call for the more specific link between the auxiliary and participle. The design accommodates those different needs without requiring a uniformly detailed parse of the sentence.
The authors regard this arrangement as adequate for the learner sentences they handled. They also envisage cases where the grammatical evidence would be too damaged to support a query. Their proposal for those cases is to order the repairs and address errors that interfere with analysis before attempting the preposition. This gives the preposition decision a dependency on earlier correction in difficult sentences. The tested procedure begins when the target is available and the surrounding material allows the query to be constructed.
Choosing what to search for
After the first stage, the algorithm has a phrase with a position for a preposition. It builds an inventory of alternatives for that particular input. Searching every preposition would increase the number of requests to the search engine. The restriction lets the system focus those requests on replacements that share a kind of use with the original or belong to a list given special treatment.
The authors organize prepositions by meaning, using 13 categories in a multilevel classification. Membership can overlap. A preposition can enter a set because of one use and have additional uses covered elsewhere. For duration, the paper gives pour, en, pendant and depuis as examples of prepositions that can be confused. Items with this shared interpretation are candidates for testing in context. The frequency comparison is then needed to decide which one actually fits the surrounding words.
Their treatment of common forms widens the set beyond those semantic groupings. The authors identify de, à, sur, avec, par and pour as common prepositions and treat them as confusable with every preposition. This allows a common candidate into consideration even when a shared category would fail to put it there. It also means that an error involving a very frequent form need not depend completely on the accuracy of the semantic categorization.
There are two distinct senses of frequency in this stage and the ranking stage. General frequency helps the authors decide that a preposition such as de deserves broad consideration. Frequency in a particular expression will later determine how that candidate fares against others. A preposition’s commonness earns it a place in the comparison. The actual count comes from the phrase in which it is tried. The naïve baseline in the evaluation isolates the first kind of evidence by always suggesting de.
This is a rule-based procedure for constructing alternatives. The paper reports the categorization and the common-word list as resources used by the algorithm, with no fitted candidate weights described. In effect, the list establishes which questions the system can ask of the corpus. If a valid replacement is absent from the candidate inventory for a case, even an abundance of relevant passages on the Web cannot give it a score. The design therefore joins a practical restriction on processing time with a restriction on achievable coverage.
Building comparable alternatives and ranking them
For each candidate, the algorithm substitutes that preposition into its own copy of the generalized phrase. This keeps the contextual description fixed during the comparison. In the running example each version concerns calling with reference to help. The changed item is the preposition in the designated position. The candidate phrases are sent to the search engine individually, and the number of hits reported for each query is recorded.
The intended evidence is recurrence of the particular combination. The search engine need not know which form was supplied by the learner or why the sentence was marked for correction. Its role is to return a count for the query it receives. The algorithm sorts the resulting phrases by count and takes the preposition associated with the highest one. This decision rule associates a preference with a construction the corpus supports more frequently than the other constructions under consideration.
The paper describes the rule in prose. In notation, the ranking can be expressed as follows.
p̂ ∈ arg maxₚ∈C H(Q(p))
Here p̂ is the suggested preposition, and p stands for a particular preposition being considered. C is the set of alternatives for the marked position. Q constructs a search phrase, so Q(p) is the generalized phrase with p in the target slot. H is the search engine’s hit count for that phrase. The expression arg max specifies the candidates achieving the largest count, with p ∈ C limiting the comparison to alternatives in C. The membership sign after p̂ allows the expression to state the largest-count rule while leaving ties unspecified, as the paper does.
The ranking compares raw hits for the constructed phrases. It uses neither a separate estimate of the overall frequency of each candidate in the reported score nor a learned preference for a candidate in a given category. The method gets its specificity from the query. A high count for a phrase with the wrong sense can still be misleading, which is a reason to keep useful lexical material on both sides. The system also has limited evidence when the best count is very low or multiple phrases have the same count. The paper specifies the ordering principle and leaves confidence and tie handling open.
The data used for the decision enter when these lookups are made. The learner corpus supplies cases on which the procedure is evaluated, while the search engine supplies the observations used to rank repairs. The paper describes grammatical processing with XIP, the semantic grouping and common-word list, and querying Yahoo! for the reported experiment. There is no reported training split or fitting procedure on the 133 test sentences. The experiment asks how this combination of rules and corpus counts performs when applied to those cases.
Representing a smaller source of evidence
The authors also describe a way to reuse the counts for a simulation. An n-gram is a contiguous sequence of words or other tokens. A stored collection limited to frequent n-grams can provide counts for many short phrases while omitting the rarer ones. The paper’s simulation captures the loss of rare phrases by scaling down Web counts and treating a scaled count below 1 as zero. The scaling rule can be written separately from the ranking rule.
r = h ÷ s
Here h is the original hit count for a phrase, s is the positive divisor shared by the counts in a downscaled condition, and r is the count after scaling. The division sign expresses the uniform reduction, and the equals sign defines r. The paper’s cutoff says that a phrase with r smaller than 1 is treated as absent, with a count of zero. Thus the simulation can make previously attested variants unavailable as evidence.
For the condition approximating a frequent-phrase resource, the result is reported for n-grams whose French Web frequency exceeds 40. Another condition simulates counts from a corpus on the scale of one thousandth of the French Web. Both start from the Web evidence already gathered. As long as the same positive divisor is applied to competing counts and both survive, their relative order is preserved. The operation that can erase a distinction is the cutoff. This matters for interpreting the results as tests of how much the procedure depends on low-frequency observations.
Experiments and results
The learner sentences and the accuracy measure
The evaluation collection contained 133 sentences written by intermediate learners of French as a second language. A sentence qualified by containing at least one preposition error. Many sentences also had problems outside preposition choice. The collection therefore includes some of the complications that motivate the parsing design. An evaluation limited to otherwise well-formed sentences would give the parser cleaner contextual material and would address a simpler version of the learner-writing task.
The paper calls its main outcome accuracy. For the correction procedure, the decision of interest is whether the suggested preposition is the correct replacement for the selected target. This understanding follows the way the algorithm receives the case and returns a suggestion, as well as the design of the baseline that always supplies the same preposition. The reported percentages compare success on the collected errors. They give neither the prevalence of such errors throughout free writing nor a measure of how frequently a checker would raise an alarm on acceptable text.
The study gives the checker and the replacement procedures different starting points. The Antidote baseline was measured by giving each sentence to the existing grammar checker. The authors’ procedure receives the selected preposition position. This distinction matters because an end-to-end checker can miss a case before it ever produces a suggestion. Antidote’s accuracy here describes how frequently presenting it with the sentence addressed the targeted problem. The score for the authors’ method describes how frequently the search-based procedure supplied a suitable replacement at its input location.
The systems compared
The constant baseline proposes de, which the authors identify as the most common French preposition. This gives a useful point of comparison for a system that searches for contextual evidence. A single answer can be right fairly frequently if it is a common repair in the collection. Any contextual method should demonstrate that the additional processing improves on that simple choice on the same cases.
The no-generalization version is a closer comparison. It skips the entire pruning and generalization stage and retains the rest of the replacement procedure. Candidates are still evaluated through Web queries, but those queries do not benefit from the shorter grammatical context constructed by the full method. This setting asks whether the size of the Web suffices to make searches useful when they preserve the learner’s sentence. The comparison with the full version tests what is gained when the query is deliberately reduced.
Correction accuracy on the 133 French learner sentences
The Web-based corrector leads when its queries are pruned and generalized.
The numbers
| System or setting | accuracy % |
|---|---|
| Antidote | 3.1 |
| Always suggest de | 24.8 |
| Web queries without pruning and generalization | 18.8 |
| Web queries with pruning and generalization (this paper) | 69.9 |
Antidote reached 3.1% accuracy on the learner sentences. The result bounds what this comparator achieved for the targeted errors when given each sentence in its ordinary checker role. The paper had already identified a gap in the kinds of collocation it handled. The evaluation measures the consequence for these cases, though the aggregate result gives little information about why the checker failed on any individual sentence.
Always suggesting de achieved 24.8% accuracy on the same collection. This gives the test set an empirical reference for a method that relies on the overall prominence of an answer. Its performance also makes the result for unpruned Web search informative. At 18.8% accuracy, the contextual search procedure with the first stage removed was less successful than using the same common form at every target. The authors’ reasoning about sparsity offers an explanation. A search phrase can be so detailed that the collection supplies weak evidence for alternatives that an ordinary writer would readily use in the underlying construction.
The version that pruned and generalized the sentence reached 69.9% accuracy. The best result therefore belongs to the combination of selective grammatical processing and Web counts. The contrast with the constant baseline supports the value of context in this test. The contrast with the unpruned variant shows that the way the system presents that context to the search engine is consequential. The experiment does not assign a share of the final score to each rule in the contextual analysis. It evaluates the complete procedure for constructing the query.
Processing time in the intended setting
The paper reports average processing times per correction of 13.2 seconds for the no-generalization variant and 21.4 seconds for the full variant. These are the timings of the implementations used in the experiment, which sent requests to Yahoo! The authors attribute most of the time to querying the remote engine. The difference between the reported averages alone cannot determine the cost of parsing, query handling or any other individual part of execution.
The timing question matters because the paper imagines use during learner writing. In a general-purpose text editor, someone might expect feedback as soon as a sentence is entered. The authors consider a learning exercise focused on preposition choice and judge that a wait of about 20 seconds could be acceptable there, particularly if corrections were sought in the background while the learner continued typing. This is their assessment of a possible interaction design. The experiment measured processing time and correction accuracy, leaving learners’ responses to the timing for a separate study.
The proposed resource change follows from where the authors believe the delay arises. A search index stored locally could avoid the need to contact a remote engine for each variant. An index of the entire Web would be impractical for the intended end users, in the authors’ view. A collection of often occurring short sequences is more plausible as a compact source of counts. The next experiment asks how much of the observed correction accuracy could survive the loss of the rarer entries.
Accuracy with less frequency evidence
The comparison keeps the correction procedure and the learner cases in view while changing the frequency evidence available to it. The Web condition uses the search counts directly. In the frequent n-gram condition, the simulated resource contains sequences that occur more than 40 times on the French Web. The smallest condition simulates the effect of evaluating phrases against a corpus on the scale of one thousandth of the French Web. The percentages measure correction on the learner sentences under those count conditions.
Correction accuracy on the learner sentences by source of counts
Keeping frequent phrases preserves more of the full system’s accuracy than the smallest simulated corpus.
The numbers
| System or setting | accuracy % |
|---|---|
| Simulated one thousandth of the French Web | 30.8 |
| Simulated n-grams with frequency > 40 | 59.4 |
| Whole French Web counts (this paper) | 69.9 |
The frequent-sequence simulation reached 59.4% accuracy. It remained above both the constant de baseline and Antidote on the learner cases. The authors take this result as a reason to pursue a compact phrase resource. They use the Google English n-gram collection’s compressed size of 24G to illustrate the order of storage they have in mind. The published collection they cite is for English. Its size is an analogy for deployment, while the scores come from simulated restrictions on counts gathered for the French experiment.
The smaller simulation reached 30.8% accuracy. This left the correction procedure closer to the constant baseline than the frequent-sequence simulation did. A plausible reading follows from the cutoff rule. The smaller setting makes more phrases disappear from the evidence and provides less opportunity to distinguish alternatives whose counts were informative in the full setting. The paper gives the outcome as an aggregate. It leaves open how frequently individual mistakes arose from complete abstention of the frequency evidence, ties among surviving candidates, or a change in which part of the evidence became decisive.
The count comparison is practical because preparing the query and providing a searchable collection are different implementation problems. A useful query can still fare poorly against a collection that lacks its wording. A large index can still be wasted on a query that demands the full surface form of a learner’s sentence. The two experiments vary those conditions separately. The first changes how the construction is expressed for search, and the second changes how much of the resulting frequency evidence is available.
What the ablations show
Removing the entire query preparation stage
The main ablation is the experiment that omits pruning and generalization. It leaves the rest of the procedure in place and asks how well queries work without the grammatical reduction. On the learner sentences, accuracy goes from 69.9% with the stage to 18.8% without it. This is direct evidence about the value of the first stage as implemented. The corpus is still large in both settings, and candidates are still ranked using counts. The changed condition is how the learner’s wording is turned into the query.
The lowest-detail interpretation supported by the comparison is that the search procedure needs some way of making the relevant construction observable. Natural variation creates differences in subject, tense, modification and other parts of a sentence, even where the choice of preposition follows the same pattern. Each additional word or inflected form retained in a query can place another condition on finding evidence. Removing a modifier like the one in the calling example gives a direct illustration of this effect. The help sought and the verb used to describe the action can continue to guide the search once the timing of the action has been left out.
The ablation is consistent with the authors’ explanation that full-sentence queries often yield no hits. The paper supplies that observation as motivation for the method and reports the accuracy of each complete setting. It gives no experimental breakdown by the number of zero-count candidates. This leaves room for several mechanisms within the reported advantage. A shortened query can turn a collection of zero counts into several positive counts. It can also increase the separation between candidates that already had evidence, or remove material that was directing a query towards an unrelated usage. Aggregate accuracy reflects the decisions at the end of the process.
The result also places the comparison with de on a more precise footing. The constant answer is a useful fallback benchmark because it needs no evidence from the surrounding sentence. The untreated sentence queries achieve lower accuracy than that benchmark. One cannot assume that adding context improves a system simply because the target decision depends on context. The evidence must be available in the form the decision procedure uses. In this experiment, the advantage appears when the authors represent the governing and governed units in a way that the corpus can support.
What remains combined inside that stage
The ablation removes pruning and generalization together. It therefore does not measure the effect of removing extraneous words while retaining all original inflections, or the effect of normalizing forms while keeping a longer context. These operations address different aspects of the lookup. Their joint success provides a reason to study both, but their individual contributions remain undetermined.
The parsing precautions are likewise part of the full preprocessing design. The authors report their judgment that splitting input around the target and leaning on shallow analysis limits the influence of errors. There is no independent accuracy comparison with an otherwise identical system that parses the complete sentence, uses the dependency analysis more extensively, or excludes it altogether. As a consequence, tolerance of additional errors is observed for the procedure as a whole. The experiment cannot locate that tolerance in a particular precaution.
The test collection also varies in the presence of additional errors. The authors point to that variation as a reason to make the parsing robust. Results grouped by the kind or number of accompanying problems would address a further question about where the design works. A nearby error within the lexical material needed for the query might have a different effect from an error in words the system will discard. The aggregate test offers a measure across the collected sentences and leaves that distinction unmeasured.
The candidate restriction is another unseparated part of the method. It has a stated design purpose of limiting the search requests. The paper gives no comparison with a search across all prepositions and no count of test cases in which the correct choice is absent from the restricted set. The evaluation thus does not quantify the accuracy cost of restricting candidates or the runtime attributable to that restriction. A poor final answer could reflect missing evidence for a good candidate, or it could reflect the candidate’s absence from the comparison. The reported test combines those possibilities.
Removing rare evidence
The corpus simulation controls a different choice. It changes the availability of frequency evidence after the query has been constructed. A uniform downscaling preserves the ranking of positive counts that survive the cutoff. Thus this experiment principally addresses the consequence of taking evidence away, while keeping the relative frequency information for surviving alternatives. It is especially informative about sensitivity to the rarer part of the phrases that the full system can query.
The frequent n-gram setting indicates that much of the successful comparison can be supported by phrases over the reported cutoff. For some cases, the leading variant can remain well attested even if its less frequent rivals disappear. In other cases, useful distinctions can depend on counts for variants near the threshold. The 59.4% accuracy under this condition shows the overall outcome of applying that restriction. It leaves open which constructions depend on rare evidence and how many of the missing observations concern the correct alternative.
The lower result in the one-thousandth-scale simulation shows that the answer depends on how aggressively counts are removed. Taken together, the experiments identify two conditions that can make Web evidence less useful. The query may specify more of the sentence than is necessary to distinguish the construction, or the resource may omit too much of the relevant phrase inventory. The intervention on the first condition has the clearest comparison with an otherwise similar correction pipeline. The intervention on the second is a simulation, useful for estimating the sensitivity of the design to coverage under the authors’ count rule.
Limitations
Limits the authors identify
The authors describe their pruning and generalization rules as basic. The rules retain enough structure to improve the results on the test sentences, but the authors propose investigating whether richer grammatical analysis would support better decisions about what to keep. They also suggest an alternative that uses neighboring words and discards items such as adjectives and adverbs. Such a strategy might depend less on the language-specific analysis and be less sensitive to faults in a parse. Both proposals are future directions. The experiments do not select between more detailed syntax and a simpler neighborhood.
The possibility of severely malformed input receives separate attention. The algorithm needs usable grammatical pieces around the preposition, and a sentence may contain enough problems to frustrate their extraction. The authors suggest assigning priority to repairs that would make the input easier to analyze, with preposition choice coming later in those cases. This identifies a condition on the method’s applicability. The reported system deals with some sentences containing multiple errors, while a general procedure for deciding the order of several repairs remains a proposal.
The authors also identify a runtime constraint. The system consults a remote search engine, and the measured per-correction times are long enough to matter in an interactive application. The paper examines a local resource indirectly through the frequency simulations and proposes testing an actual French n-gram collection. That would address whether a compact index can provide adequate evidence and shorten the wait in practice. The reported simulated accuracy gives no direct timing measurement for such an index.
Finally, the paper treats preposition choice as one member of a broader family of errors that depend on particular words. It proposes adapting the method to other errors of that sort and investigating classroom use. The imagined application would let learners write freely and would use relevant examples from the Web to explain corrections. The authors propose evaluating whether this feedback improves future preposition use. The study itself evaluates repairs of existing learner sentences. A longitudinal teaching outcome lies beyond that measure.
Limits of the evaluation
The experiment tests replacement of a selected preposition. An end-to-end system for free writing would have to decide which prepositions to examine and when to leave an acceptable sentence alone. With test sentences chosen for containing preposition errors, the reported accuracy gives no estimate of false alarms on writing where the prepositions are already appropriate. The test also does not establish coverage of omission and insertion errors, for which a replacement procedure would start from a different kind of input. This follows from the declared interface and the collection’s inclusion criteria.
The difference in interfaces affects the comparison with Antidote. A checker judged from its output on an entire sentence has to locate a problem and offer a correction. The proposed method has the target location for its search. The two accuracy figures show what happened under the paper’s respective procedures. They cannot tell us how Antidote would rank replacements if it received the same error position as the algorithm, or how the Web-based method would perform if it had to detect the position by itself.
There are also limits to what the sample establishes. The 133 sentences come from intermediate learners of French, and the paper reports aggregate accuracy for the collection. It does not show how the scores vary across learners, constructions or kinds of preposition error. Nor does it describe an assessment of multiple acceptable replacements or give enough detail to reconstruct how alternatives to a reference correction were judged. A substitution can be grammatical while changing the intended relation. The accuracy figure is easiest to interpret for cases where the intended repair and the evaluation decision are clear.
The percentages describe observed performance on the collected cases. The paper gives no uncertainty intervals or case-level comparisons from which to judge how stable the accuracy estimates would be on a fresh collection. Its evidence supports the relative success of the full procedure under the reported conditions. A broader claim about learners at other levels, other varieties of French or other languages would require cases and language resources suited to those settings. In particular, the parser behavior and the inventory of confusable prepositions are part of this French implementation.
Limits of Web frequency as evidence
The procedure uses search hit counts as a proxy for how often a construction occurs in observed writing. A count answers a question about the phrase the search engine receives. It has no direct access to the intention behind the learner’s sentence, and the procedure as described has no independent check that the matching passages use the phrase in the intended sense. The grammatical reduction is an attempt to make the proxy better by retaining the relevant lexical context. Its success depends on how much of that context survives.
Preference by frequency also has a limited interpretation. A common combination may be the conventional choice for the intended expression, which is the rationale for the method. A less common candidate can still be acceptable. Conversely, a phrase can attract hits for uses that carry a different meaning. The ranking shows which candidate has more search support within the chosen context. Judging every other candidate unacceptable would require more evidence than the count comparison supplies.
The study leaves open how stable the correction would be under a different search service or a different index. It reports querying Yahoo!, and its simulation starts from those observed frequencies. A real smaller corpus could have different relative frequencies as well as fewer occurrences. Its documents might favor different constructions, and phrases retained under a uniform count rule might be absent from the collection. The study gives a controlled account of dropping low-frequency evidence from the existing counts. It gives no direct result for an independently collected French corpus at either of the simulated sizes.
Together, these limits define the demonstrated result in concrete terms. A system with a marked target, a source of phrase counts and a grammatical way of reducing learner sentences can make useful preposition suggestions on this French collection. The move to unrestricted checking depends on detection and handling of acceptable input. The move to a smaller deployed resource depends on what that resource actually contains. The move to a teaching claim depends on evidence about how learners use the feedback and what they write afterwards.
What came after
The 2019 study Grammatical Error Correction with Transformers cites this work. Its title places transformers at the center of an investigation of grammatical error correction. That establishes a connection within the same broad research problem. The citation by itself leaves open whether the later study used the French learner sentences, reproduced the Web queries, compared against the preposition corrector, or took up the paper as earlier work in the field.
The question raised by the earlier paper helps put that citation in context. To choose a preposition, the system needs evidence about the expression in which it occurs. In the 2008 study, that evidence was explicit. A parser determined which pieces of a learner’s sentence to carry forward, the system inserted each candidate into those pieces, and the search engine returned a count. A reader can describe the resulting comparison in terms of particular strings and the words they retain. The later title identifies a different technical focus within correction. The established link is the citation, with no specific transfer of the earlier procedure documented here.
The earlier experiment remains especially precise about one distinction relevant to work in this area. The evidence that an expression is a good replacement depends on how the system represents its surroundings. The full Web supplied the counts in both main variants, yet success depended strongly on whether the learner’s wording was reduced to a construction that could recur in other texts. That is the paper’s demonstrated contribution to the history of the problem. It makes the choice of context an experimentally visible part of a particular correction decision.
Cite
Cite as Matthieu Hermet, Alain Désilets and Stan Szpakowicz. 2008. Using the Web as a Linguistic Resource to Automatically Correct Lexico-Syntactic Errors. Proceedings of the Sixth International Conference on Language Resources and Evaluation (LREC'08).
@inproceedings{hermet2008using,
title = {{Using the Web as a Linguistic Resource to Automatically Correct Lexico-Syntactic Errors}},
author = {Matthieu Hermet, Alain Désilets and Stan Szpakowicz},
booktitle = {Proceedings of the Sixth International Conference on Language Resources and Evaluation (LREC'08)},
year = {2008},
doi = {10.63317/2tjb7zqm2qsv},
url = {https://doi.org/10.63317/2tjb7zqm2qsv}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/hermet-2008-web-as-linguistic-resource-automatically/