Granska–an efficient hybrid system for Swedish grammar checking
Paper · 2000 · Rickard Domeij, Ola Knutsson, Johan Carlberger et al.
Summary
A Swedish grammar checker has to decide when an ordinary-looking word is wrong because of the words around it. An article can be spelled correctly and still disagree with its noun. A space can turn a correctly formed compound into a pair of words that a spelling checker would accept individually. Granska addresses these problems by giving words grammatical labels and then looking for specific patterns among those labels. Its authors want the checks to run fast enough to help people while they write, and they describe how the checker can identify a problem, suggest a repair and explain the suggestion.
Granska first divides the text into units it can process, then uses statistical part-of-speech tagging to assign a grammatical category and inflectional features to each word. The tagger draws on SUC, a manually tagged Swedish corpus of one million words, and uses a lexicon of 160,000 word forms supplemented with entries from SAOL, the Swedish Academy’s word list. It estimates tags for words outside the lexicon from their endings. Handwritten rules examine the tagged text. A rule can request local parsing of a phrase when its decision depends on a larger unit. The authors illustrate this with a check that follows the subject of a sentence across a prepositional phrase to an adjective that describes it.
The authors give particular attention to agreement and incorrectly split compounds. An agreement rule can change an article to match a noun in gender, number and definiteness. A compound rule can instead use disagreement with the first noun, agreement with the second and recognition of the joined spelling as evidence that a space should be removed. The phrase ett cykel ställ, intended to mean a bike rack, can trigger both checks. Other splits are harder to distinguish from a legitimate expression, and an incorrect tag can cause a warning on grammatical text.
Running on a SUN Sparc station Ultra 5, the tagger handles over 22,000 words a second. It tags 97 percent of words correctly in previously unseen text, with 92 percent accuracy for words outside the dictionary. The whole checker, with tagging included, processes about 2,800 words per second and contains 250 error rules across about 20 rule types. The authors interpret preliminary tests as grounds to expect recall above 50 percent and precision above 90 percent for agreement and split-compound errors. They report that Granska handles split compounds, a capability they say Grammatifix and other commercial checkers of the time lack. The implementation runs under Unix and can be tried through a simple web interface. The authors were developing a PC interface for interactive writing and planned to study how people used it.
Deep dive: Granska–an efficient hybrid system for Swedish grammar checking
Granska combines statistical tagging with Swedish grammar rules to spot agreement errors and split compounds quickly enough for interactive checking. · about 32 minutes to read
The problem and its context
Why word-by-word checking falls short
The paper starts from a gap in writing support. English users had been able to check spelling, grammar and style in common word processors for some time. Comparable facilities for Swedish had been scarce. By the time of the paper, a Swedish checker had appeared in Word 2000 and was also available as the stand-alone Grammatifix. The authors saw an opening for further work because Swedish writing raises problems that require knowledge of how its own words and phrases are formed. They also saw demand for tools that could improve the quality of a text while making it easier to revise.
The difference between finding a spelling problem and diagnosing a grammatical one is apparent in an article–noun mismatch. In the paper’s example ett röd bil, the intended meaning is a red car. The article ett is a Swedish word with a recognizable grammatical use, and the intended noun bil is recognizable too. The error emerges when the checker asks whether the article and the noun belong together. It needs to recover enough information about both words to test that relationship. Once it has done so, it can offer en röd bil, which preserves the intended description of the car.
A split compound presents a different problem. Swedish compounds are regularly written solid, a convention the paper contrasts with English. Two adjacent items may each resemble a word and still belong together as a single Swedish compound. The checker has to identify environments in which the space is suspicious, then decide whether the joined form is plausible. This requires evidence from the surrounding phrase as well as from spelling. A grammatical description of the separate items can help expose an error whose repair consists of removing a space.
These classes of error also differ in what a checker needs to tell a writer. A warning about agreement points to a relationship between words and proposes a change in inflection, the form a word takes to express features such as number. A warning about compounding proposes a different division into words. Both can involve the same stretch of text. To produce usable feedback, the checker has to connect its diagnosis to a concrete edit and make the reason for that edit intelligible. The paper treats this as part of grammatical error correction.
An analysis that can work with faulty input
A grammar checker must analyse sentences that can violate the grammatical expectations on which the analysis is based. An ordinary parser can use agreement as a condition for recognizing a phrase. When agreement fails, the same condition can prevent the parser from recognizing the structure needed to explain the mistake. The authors describe a common response in earlier rule-based systems. A system starts with a complete grammar and uses relaxation techniques to accept a construction with a violation of a particular constraint. Relaxing an agreement requirement, for example, can allow the surrounding structure to be recognized while exposing the feature that failed to agree.
Granska gives the initial analysis a different job. The tagger can identify a determiner and a noun as such even when their features form an unusual combination. The rules can then ask directly whether the combination is evidence of a known error. This strategy depends on the tagger preserving the relevant properties of the writer’s words. If a determiner has the wrong gender for its noun, the disagreement needs to survive the initial analysis for the error rule to see it. A statistically plausible tag for a word in ordinary text can be less helpful if it disguises a departure from ordinary usage.
The paper places Granska alongside another Swedish research prototype, Scarrie, and describes earlier work on Swedish checking in connection with both complete grammars and commercial development. Grammatifix is the practical point of reference. The paper points to the accompanying account of error detection in Lingsoft’s Swedish grammar checker for that line of work. Granska’s research question is whether selective analysis, informed by statistical tagging, can give an interactive checker adequate grammatical evidence without requiring extensive structure for every sentence.
Why the interaction matters
The intended setting is a writer at work. In that setting the checker needs to respond promptly, and the writer needs to understand what a warning refers to. The authors describe both needs as reasons to continue developing Swedish grammar checking. Efficient computation makes it possible to run the checks during writing, while a clear diagnosis lets someone judge whether the highlighted text should be changed. The second requirement matters when the checker is uncertain or when more than one edit could explain what it found.
The authors also connect grammar checking to a wider problem in language technology. Systems that process text frequently need ways to deal with ungrammatical input, and a checker is forced to make that problem explicit. It cannot assume that an apparent irregularity is a mere obstacle to analysis. The irregularity may be exactly the evidence the user wants it to recover. The article and noun must remain individually analysable when their combination is suspect, and the elements of a split compound must remain available for the checker to propose joining them.
The paper distinguishes this linguistic problem from questions about how the tool affects a writer. Detecting a departure from a feature pattern, choosing a repair and helping someone revise are related tasks with different criteria for success. The authors argue for closer study of functionality, usability, writing and writing ability. An interactive setting makes these questions concrete. A writer can be presented with a suggestion that is technically feasible, then decide whether it fits the sentence and the intended meaning. The design therefore needs to account for the text as written and for the explanation shown alongside it.
The method, step by step
From text to grammatical labels
Granska gives each stage a different kind of decision. The tokenizer identifies the units present in the input. The tagger supplies a grammatical description of each word. The checker looks for arrangements of those descriptions that suggest a specific problem. In the simplest case a rule can work directly with a short run of words. For a check whose evidence spans a larger construction, a helper rule can identify the relevant phrase. The result of a match can include the portion of text to highlight, a suggested replacement and a message to the writer.
How Granska turns Swedish text into editing suggestions
The steps in order.
Tokenization is the stage that recognizes possible words and special characters in the input. The split-compound problem makes the significance of this stage especially clear. The words on either side of an erroneous space reach the tagger as separate items. A later rule can inspect them as adjacent nouns and propose combining them. The same separation lets the checker highlight the specific pieces involved. The linguistic decision about the space relies on what happens after the initial segmentation.
A grammatical tag carries more information than a label such as noun or adjective. The checker also needs information about morphology, the structure and forms of words. In the rule examples, the relevant features include gender, number and what the paper calls species, the feature concerned with definiteness. Gender is the grammatical category that distinguishes the uses of articles such as en and ett. Number distinguishes forms such as singular and plural. Definiteness distinguishes forms of the kind used for an indefinite reference from those used for a definite one. The noun-phrase helper also makes case available as a feature of the phrase.
The lexicon is organized around word forms, the forms that can appear in text. It has 160,000 entries measured as word forms and was built from SUC, a corpus of one million words with manual linguistic annotation. Entries from SAOL supplement that corpus-derived resource. The corpus supplies statistics about words and tags in context. The word list extends the resources available for analysing word forms. In the paper’s description, the corpus and the word list thus serve different purposes, even though both contribute to the lexical information used by Granska.
The tagger uses a hidden Markov approach. In this setup, the words are visible and the corresponding grammatical labels must be inferred. The choice relies on SUC statistics about how words and tags occur in context. For a word covered by the lexicon, the tagger chooses its most probable analysis on that basis. For a word outside the lexicon, it uses probabilities associated with word endings. An ending offers a clue about the sort of word that may carry it, even when the whole word supplies no entry to look up. The paper describes these sources of evidence and the resulting choice of a tag in prose. Its formal examples specify the checking rules.
The outcome that matters to those rules is a single selected tag for each word. A rule can ask for the gender of the noun it has found or test whether a token is an adjective without having to work through every possible analysis of the input. The convenience comes with a dependency. If the tagger assigns an unsuitable category or feature, the rule sees that assignment. The authors describe using error rules to retag sentences in circumstances where a tagging mistake is known to recur. This gives grammatical rules a way to intervene in disambiguation as well as to detect errors after it.
How a match becomes a diagnosis
Each error rule has a condition and an action. The condition describes a sequence and places requirements on the tokens in it. The action specifies what the checker should do with a successful match. A sequence can contain a required word class, an optional phrase or a repeatable category. Feature tests can refer to values carried by another part of the match. The rule therefore connects observations about individual words to a statement about a grammatical relationship.
Consider the paper’s article–noun check. It looks for a determiner, then allows adjectives between that determiner and a noun. A determiner is a word such as an article that helps specify the noun phrase. The check compares the noun’s gender, number and definiteness with those of the determiner. A difference in any of those features is sufficient to trigger the rule. The logic of the matching condition is:
X: determiner, Y: adjective*, Z: noun
with (g(Z) ≠ g(X) ∨ n(Z) ≠ n(X) ∨ d(Z) ≠ d(X))
X denotes the determiner, Y the adjective position and Z the noun. Each colon pairs a variable with its required word class, and the commas give their order in the pattern. The star allows the adjective position to occur zero or more times. g, n and d give the gender, number and definiteness values of the item in parentheses. ≠ tests for different values. ∨ joins alternatives, so any of the feature differences inside the outer parentheses satisfies the mismatch condition.
In ett röd bil, the relevant difference is gender. The tagger recognizes ett as an indefinite, singular, neuter determiner. The noun supplies the features that the new article should carry. The rule marks the span and asks the lexicon for the form of the determiner with those target features. It then builds the suggested phrase using the retrieved determiner and the existing adjective and noun. A diagnostic message identifies the article and the noun involved, giving the writer a reason for the change.
The adjective position does useful work in this rule even though its features do not enter the displayed test. It allows the rule to reach the noun across modifiers. In the car example, röd belongs in the span that will be marked and in the phrase offered as a replacement. The rule’s diagnosis concerns the determiner and noun, so the adjective can be carried through the correction. Tests for specific errors can use intervening words to locate the relation they need while leaving those words outside the feature comparison.
The same pattern covers distinct reasons for a disagreement. In en röda bilen, the paper identifies a mismatch in definiteness. In its example involving a singular determiner and a plural form of the noun for cars, the trigger is number. The feature test does not require a separate sequence of word classes for each case. The same rule can find the relevant determiner and noun and use the noun as the source of the features for a replacement. The examples show how the lexicon supports a repair that goes beyond classifying the input. The checker can retrieve the form that expresses the intended feature combination.
The choice to repair the determiner is part of this rule. The mismatch itself is symmetric in the sense that it identifies a difference between two values. The action gives that information a direction by treating the noun as the guide. A correction comes from this combination of a test and an editorial choice about which word to replace. When another diagnosis calls for a different edit to the same stretch of text, the distinction between recognizing a mismatch and interpreting its cause becomes important.
When the relevant unit is a phrase
A determiner and a noun can be located in a compact sequence. Other agreement relations span material that the checker needs to recognize as a unit. The paper illustrates predicative agreement with a sentence about a little house by the lake being red. The adjective after the verb describes the house. The intervening phrase about the lake makes a check based on the nearest noun inappropriate for the example. The rule needs a description of the entire expression referring to the house and a way to pass over the phrase locating it.
In Granska, reusable helper rules can provide definitions for a noun phrase and a prepositional phrase. A noun phrase is a group centred on a noun, potentially with a determiner and adjectives. In the paper’s simplified noun-phrase definition, the noun provides the phrase’s feature values. A prepositional phrase begins with a preposition and can use the noun-phrase helper to recognize the material that follows it. The helper patterns are:
NP = determiner? adjective* noun
PP = preposition NP
NP names the noun-phrase pattern and PP names the prepositional-phrase pattern. = introduces the definition of each pattern. The question mark allows the determiner to be absent. The star allows the adjective position to occur zero or more times. The words on the right name grammatical categories and appear in the order in which they must match. NP on the right of the definition of PP calls the noun-phrase pattern as part of recognizing the prepositional phrase.
When the noun-phrase helper succeeds, it supplies the noun’s gender, number, definiteness and case for use by the calling rule. This makes the phrase available both as a stretch of text and as a bearer of grammatical features. A main rule that needs the gender of the subject can ask for the gender of the noun phrase. The source of the value is the noun inside that phrase, even when a separate phrase with its own noun follows immediately afterward.
The predicative check seeks a noun phrase and allows prepositional phrases to follow it. Then it expects a copula, a linking verb of the kind used to connect the subject with a description. The next word must be an adjective whose gender or number differs from the features of the noun phrase. The condition includes guards on both sides of the core construction:
T, NP, PP*, X, Y, Z
with (g(Y) ≠ g(NP) ∨ n(Y) ≠ n(NP))
T is the preceding context position, required to have a word class other than preposition. NP is the noun phrase with the features supplied by its helper. PP* allows zero or more prepositional phrases. X is a verb identified as a copula, Y is the adjective and Z is the following context position, whose word class must be neither adjective nor noun. The commas indicate sequence. g and n retrieve gender and number from the item in parentheses. ≠ means that the values differ, and ∨ means a difference in either feature is sufficient.
The left guard reduces the chance that the chosen noun phrase belongs inside a preceding prepositional phrase. The right guard helps the rule avoid treating the adjective as a predicate when it is part of a larger noun phrase. The guards encode local clues about boundaries. Between them, the use of PP allows the expression for the house and the predicate adjective to be separated by the words indicating the house’s location. The intended source of agreement stays the house phrase.
In the paper’s example, det lilla huset refers to the little house, and vid sjön places it by the lake. The copula is är, and the adjective röd has the gender mismatch that triggers the check. The action asks for an adjective form that uses the noun phrase’s gender and number, with the definiteness setting specified as indefinite in the correction. It then offers a replacement in its context and constructs a message about the disagreement between the noun phrase and the adjective. The inflectional request is focused on the predicate. The prepositional phrase remains part of the sentence represented in the suggestion.
A helper rule thus gives the checker a limited form of phrase structure. A noun phrase can be recognized inside a prepositional phrase, and both kinds of unit can appear in the main rule. The analysis is called for by the error under investigation. An article–noun check can work with word tags alone, while this predicative check uses phrase boundaries and features. The authors attribute part of the efficiency of the design to doing this amount of analysis where it is needed.
Using spelling inside a compound rule
A split compound begins as a problem about the disposition of the text into words. The evidence that Granska uses depends on the status of the first part. Some first parts have a recognizable form in compounds and cannot stand by themselves. The paper gives pojk byxor, in which pojk is the initial part derived from pojke, meaning boy. The lexicon can classify such forms so a rule can look for one followed by a noun. The category assigned to pojk makes the divided spelling a strong candidate for joining.
The more difficult case occurs when both constituents look like complete words. The authors study noun–noun compounds and draw on the expectation that the first noun appears in its uninflected form, an expectation that applies only to the first of the two nouns. They describe that form as indefinite and singular. In grammatical text, an uninflected noun immediately followed by another noun is sufficiently unusual to provide a clue. Even so, the architecture uses more context before recommending an edit. The example with a determiner gives the rule a way to ask which noun fits the visible grammatical features of the phrase.
In ett cykel ställ, the determiner disagrees with cykel but agrees with ställ. If the phrase is intended to refer to a bike rack, the appropriate form is ett cykelställ. The compatibility with ställ makes sense once cykel and ställ are interpreted as constituents of the same compound. The rule links that observation to a spelling test. The simplified condition shown in the paper can be expressed as:
D, A*, B, C
with (g(B) ≠ g(D) ∨ n(B) ≠ n(D) ∨ d(B) ≠ d(D))
∧ (g(C) = g(D) ∧ n(C) = n(D) ∧ d(C) = d(D))
∧ S(J(t(B), t(C)))
D denotes the determiner, A an adjective position, B the first noun and C the second noun. The commas in the sequence specify order, and the star means that the adjective position can occur zero or more times. g, n and d return gender, number and definiteness. t returns the item’s text. J joins its two text arguments in the given order, with the comma separating those arguments. S tests whether the spelling component recognizes the joined form. The parentheses delimit function arguments and group conditions. ≠ and = test for unequal and equal feature values. ∨ allows any of the first noun’s feature mismatches to satisfy that group, and ∧ requires all the joined conditions to hold.
The distinction between the general account and this particular rule matters. The prose describes the usual uninflected form of the first noun as a cue for finding candidates. The simplified rule displays a disagreement test for that noun, a complete agreement test for the second noun and a spelling check. The printed condition therefore shows the contextual feature relations for this pattern, while the general discussion explains the morphological observation that motivates searching for adjacent nouns.
The spelling component receives the joined text from the rule and checks it as a possible compound. The check is embedded in the matching condition. Once the condition succeeds, the rule marks the two nouns, suggests the joined form in place of the separate words and gives a message about the space. The determiner and any intervening modifiers are preserved in the suggested phrase. In the bike-rack example, the correction uses the agreement on the right as evidence for preserving ett. The same determiner was the point of departure for the competing agreement diagnosis.
The spelling module can therefore help with an error that is visible only when text is examined at more than one level. The token sequence gives the rule the two nouns and their grammatical context. The rule constructs a candidate word that the original tokenization never supplied. The spelling component can assess that candidate and pass the result back into the grammatical decision. The paper describes a spelling detection and correction component capable of handling Swedish compounds. This use of it concerns recognition of the particular joined form proposed by the rule.
What the writer receives
The rules distinguish the text found by a pattern from the text that should be highlighted or replaced. In the article–noun example, the matching words form the phrase whose agreement is in question. In the split-compound example, the determiner can be essential to the decision even though only the separate nouns need to be marked as the split. In the predicative example, context helps identify the relevant construction, while a new form is requested for the adjective. These choices follow from the action attached to each rule.
The explanations are constructed with information from the match. A message about agreement can name the article and noun it has compared. A message about a compound can show the two items proposed for joining and the form that results. This gives a writer access to evidence in the original sentence. The system implementation is in C++ under Unix. A simple web interface was available for trying it, and the authors were working on a graphical interface for PCs that they intended to use in studies of interactive writing.
Experiments and results
Tagging accuracy on previously unseen text
The paper reports results for the tagger on previously unseen text. Accuracy here is the share of words that receive the correct tag, with the tag including the grammatical category and associated inflectional information. Across the text, the reported accuracy is 97 percent. For words outside the dictionary, the reported accuracy is 92 percent. The first result includes the whole reported population, while the second isolates the case in which word endings must provide evidence in the absence of a dictionary entry.
Granska tagging accuracy on previously unseen text by dictionary coverage
The accuracy on words outside the dictionary is below the accuracy across the whole text.
The numbers
| System or setting | Tagging accuracy % |
|---|---|
| Granska on all words (this paper) | 97 |
| Granska on words outside the dictionary | 92 |
The comparison describes performance for different scopes of the same tagging task. The overall score can include both dictionary-covered and out-of-dictionary words. The more restricted score answers a practical question for the rule stage, which is how often it receives a correct analysis for a word that lacks a lexical entry. The paper does not give the number of evaluation tokens or the proportion outside the dictionary. The share of correct tags on dictionary-covered words cannot be determined from the reported figures alone.
The numbers concern the quality of the checker’s input representation. An error rule may need an adjective to be identified correctly so that it can reach a following noun. It may depend on the gender or definiteness of a singular word even when most of the other tags in the sentence are irrelevant to the decision. A word-level accuracy figure distributes attention across all words. For the rule stage, the consequences of tagging errors vary with the location of the word and the feature that was assigned incorrectly.
The paper considers the tagging result good in international comparison. For evaluation and benchmarks, the concrete evidence reported here is the result on unseen text and its dictionary-coverage subset. The authors supply no named international baseline with a score on the same text. SUC’s stated size concerns the manually tagged resource used to construct the lexicon and derive statistics. It gives no size for the unseen evaluation text.
Processing speed for the tagger and the checker
On a SUN Sparc station Ultra 5, the tagger tags upwards of 22,000 words a second, exceeding that rate. The full checker processes about 2,800 words per second with tagging included. At the time of that report it contained 250 error rules organized into about 20 rule types. The tagger’s figure measures the throughput of assigning grammatical labels. The checker’s figure measures throughput with the subsequent error checking included. These are different amounts of work on the input.
Reporting both rates helps connect the implementation to its intended use. Tagging is a preparatory operation carried out across the input text. The checker also has to find matching conditions and perform their actions, with selected rules invoking phrase analysis or spelling recognition. The full-system rate is the relevant throughput for a reader asking how quickly the system can look for errors after receiving text. The tagger rate locates the scale of the basic analysis within that process. Neither figure gives a breakdown of the time spent on individual sorts of rules.
The authors regard this performance as evidence that statistical analysis can provide enough grammatical information at a rate compatible with real-time computation. They also caution that other systems’ speed results are often difficult to compare because they lack sufficient accompanying detail. Grammatifix serves as a reference point for a possible comparison with a developed Swedish checker. The paper leaves an evaluation on shared data and common operating conditions for later work.
Preliminary checks of agreement and compounding
The checker’s error decisions are discussed in terms of recall and precision. Recall asks what share of the errors in the text are found. Precision asks what share of the warnings are correct. Recall penalizes missed errors. Precision penalizes false alarms. Each measure is needed to interpret the other. A conservative rule can produce a high share of correct warnings while overlooking many errors, and a rule that matches many suspicious patterns can catch more errors while burdening the reader with irrelevant alerts.
For agreement errors and incorrectly split compounds, the authors say the preliminary tests give reason to expect recall above 50 percent and precision above 90 percent. These are bounds stated as expectations from early testing. The paper supplies no separate score for each error type, no counts of errors and warnings and no detailed account of the test material. The bounds describe the authors’ assessment of the targeted detection rules at this stage of development. They do not supply an evaluation of every rule type in the checker.
The error classes in the estimate matter. Agreement in the paper includes a local determiner–noun pattern and a predicative pattern with optional intervening phrases. The discussion of split compounds chiefly concerns the noun–noun category, estimated in earlier work cited by the authors to account for about 70 % of the varieties of split-compound errors. That percentage characterizes the prevalence of the category in the authors’ description. It does not measure recall for Granska, the proportion of test cases it gets right or the share of all error warnings that concern compounding.
Detection and correction also have different success conditions. A detected mismatch can be real while a particular proposed edit misidentifies the writer’s intention. A rule can highlight a relevant part of the text and still give a competing diagnosis for the same span. The stated recall and precision bounds concern the detection of errors. The worked examples show how Granska generates repair suggestions and explanations. The authors give no separate score for the adequacy of those suggestions.
What the comparison with Grammatifix establishes
The contrast with Grammatifix is about available functionality. The authors say Granska can detect split compounds and that Grammatifix and other contemporary commercial tools lack that facility. The example rules make the claim about Granska concrete. They describe which kinds of split it seeks, which signs it uses and how it can suggest a joined form. This is a specific capability claim about an error category.
A broader comparison would have to account for the kinds of errors both systems check, how warnings are evaluated and how processing speed is measured. The authors say they want more development and testing before presenting final results and comparing Granska with fully developed systems. The evidence here gives a throughput figure for Granska, tag accuracy on unseen text, a feature comparison concerning split compounds and preliminary bounds for detection of the error types in focus. Each result answers a different question about the design.
What the ablations show
The paper contains no formal ablation experiment. Its analyses instead use worked rule matches, tag accuracy by dictionary coverage and throughput at the component and system levels to show where the design obtains its information and where problems arise.
What the rule examples isolate
The article–noun example isolates the contribution of feature comparison. The sequence of categories identifies a place where agreement can be tested. A comparison between the actual determiner and noun then supplies the reason for the warning. In the gender example, the selected tag for ett is important precisely because it preserves the neuter feature that makes the phrase deviant. This demonstrates how a probability-based tagger can support a rule that intentionally searches for combinations that are atypical in ordinary text.
The predicative example isolates a different requirement. The head noun supplying the adjective’s agreement features is farther away than another noun inside a prepositional phrase. A helper rule gives the main rule access to the house phrase as a unit and lets it treat the location phrase as intervening material. This explains the role of local phrase analysis in one construction. The authors give a design rationale for the corresponding efficiency choice. They provide no experiment that times the same grammatical coverage with and without the helpers.
The compound example shows why the rule requires more evidence than a feature mismatch. In the bike-rack phrase, the mismatch with cykel is real if the words are considered individually. Agreement with ställ supplies a second clue about the intended structure. Recognition of cykelställ by the spelling component adds evidence that the suspected structure has a possible written form. The paper’s chain of reasoning is visible from the order of these conditions. It reports no test that Removes the spelling check and counts the additional warnings or misses, so the examples establish the role of that check without quantifying its contribution.
Overlap exposes the difference between a match and a diagnosis
The same bike-rack phrase is also the paper’s example of rules that collide. The local article–noun check can find an unmatched feature value before the compound rule considers the next noun. The split-compound check can then reach a wider interpretation of the sequence by finding agreement farther to the right and checking the joined form. Both rules fulfil their stated conditions. They point towards different edits.
This example exposes an unresolved decision about overlapping warnings. Matching all the required conditions gives a rule permission to issue its diagnosis. It does not settle competition with another rule whose conditions also hold. The authors suggest that further disambiguation within rules can sometimes prevent such overlap. For harder cases, they consider ordering rules by the probability of the error in its context. They also consider showing the writer the plausible alternatives. The paper describes these possibilities as responses to ambiguity and gives no comparative result for them.
A second example reveals a different kind of ambiguity. In en exekverings enhet, the final -s on exekverings can be interpreted as part of the compound formation or as a genitive ending, which would give a reading like a unit belonging to an execution. The author’s diagnostic difficulty is that the forms have the same relevant syntactic distribution. A local grammatical test can therefore leave both interpretations open. The collision between determiner agreement and compounding offers competing rule matches. The linking-s example shows why even a convincing local pattern may fail to reveal the intended reading uniquely.
What the tagging comparison can explain
The reported accuracy comparison distinguishes all words in unseen text from the subset outside the dictionary. It shows that the second group poses a harder tagging task in the reported evaluation. Because the groups have different scopes and the overall group contains the subset, this comparison does not measure the causal effect of adding a dictionary entry. It also gives no estimate of how many grammar warnings are caused by errors on words outside the dictionary.
The authors identify tagging mistakes as one source of false alarms and describe the possibility of rule-driven retagging when failures are known. The agreement example explains why such intervention can matter. The wrong category can prevent a rule from recognizing a determiner–noun sequence, and the wrong feature can create an apparent disagreement or hide a real one. The paper’s overall tagging result cannot distinguish those different consequences. It leaves the size of any benefit from retagging unresolved.
Limitations
Limits the authors identify
The authors describe the checker and its evaluation as work in progress. The rules were still being improved, and the recall and precision figures for the selected error types were preliminary. They reserve a comparison with a fully developed Swedish checker for a later evaluation. They also say that published results for other systems are hard to compare when those results lack sufficient detail. Their claim about split-compound capability is specific. Their broader hope of matching or improving on the results of rule-based parsing remains an aim for evaluation.
The overlapping diagnoses in ett cykel ställ are a known limitation of the described implementation. The system has no general procedure at that stage for choosing between the two matching interpretations. A rule author can sometimes improve a condition to avoid overlap, but the authors leave the decision about probabilistic ordering open. They also argue that a writer may be better served by seeing plausible alternatives in some cases. Their discussion exposes the choice about what to display without reporting an evaluation of any proposed resolution.
The exekverings example limits what can be inferred from context. If the same visible form and local distribution fit both the genitive and the first part of a compound, success on easier candidates need not transfer to that case. Granska’s use of a spelling check helps assess whether a joined form is plausible. The writer’s intention is a further question when the separated form has a plausible grammatical reading as well. The authors take this ambiguity seriously in their assessment of attainable recall and precision.
Tagging can also supply the wrong evidence. A suspicious sequence of tags may reflect a mistake by the tagger rather than a mistake by the writer. A rule that accepts the tags as supplied can then mark acceptable text. The authors describe retagging in situations where the statistical analysis is known to fail and expect rule-based correction of the tags to offer room for improvement. The paper gives examples of the dependency between components and does not measure how much the proposed intervention reduces false alarms.
The authors also treat usability as a question for direct study. They want to know how the check affects writing and writing ability, and they plan to use a graphical interface in tests with actual users. At the time of the paper, the PC interface was scheduled for spring 2000, with user tests planned before the end of the year. Those plans clarify the purpose of the interactive design. The reported results concern computational throughput and linguistic checking. The planned studies address how those operations affect people who encounter the warnings in the course of writing.
Limits visible in the evaluation setup
The evaluation figures leave open how the checker behaves across kinds of text. The tagging result is presented for previously unseen text, with a separate result for words outside the dictionary. Its size and composition are unspecified. The preliminary checking results do not describe the error sample, how the examples were selected or how their correct diagnoses were established. The aggregate outcomes therefore have a clear scope as figures reported by the authors, but there is insufficient detail to tell how sensitive they are to a new collection of texts.
The tests also leave the relationship between recall and precision mostly unexplained. The paper gives threshold statements for agreement and split compounds. It does not state whether either category was easier to detect under the tested rules or how often each produced false alarms. Its account of noun–noun compounding explains why that class motivated development. The frequency cited for that class offers no direct estimate of the results for other compound constructions. A reader can learn what evidence makes the illustrated rules fire and still lack a coverage estimate for the wider system.
The examples specify correction actions in considerable detail, yet there is no independent outcome measure for the suggested edits. A correct diagnosis could be followed by a repair that is unsuitable in the full sentence. The right repair may also depend on intended meaning, as the authors’ ambiguous examples illustrate. Precision for detection cannot by itself describe the quality of explanations, the usefulness of repairs or the frequency with which a writer accepts them.
Similarly, word-level tag accuracy is an incomplete guide to the needs of the checker. Agreement rules depend disproportionately on feature values at particular positions. A tag error on an irrelevant word can leave the decision intact, while a feature error on the relevant noun can reverse it. A test of the rule system with independently verified tags would answer a different question from the reported accuracy test. The paper does not supply that comparison, so the effect of tagging on errors downstream is visible in examples without being quantified across the test material.
Finally, the throughput results answer how rapidly the components process words under the reported conditions. Interactive experience can also depend on when checks are invoked, how quickly a warning appears for a particular edit and what the interface does with simultaneous suggestions. The authors motivate the architecture with the need for real-time operation and report a processing rate for the whole checker. Direct observations of writing and revision were still forthcoming.
What came after
The later citations connect Granska to research on evaluating a Swedish checker, developing a checker for Amharic and automatically constructing a Swedish news corpus. The connections concern different aspects of the original paper. Granska depended on a corpus for grammatical statistics, used explicit morphology in its error rules and raised questions about how to evaluate a checker intended for writers. The titles of the citing studies identify their respective subjects. The citation relationships establish that they refer to Granska. More specific claims about reuse of its components or findings would require details of those studies.
Different Ways of Evaluating a Swedish Grammar Checker (2002) takes up the evaluation question directly. In Granska, several different sorts of evidence appear together. Tag accuracy says something about the grammatical information fed to the rules. Precision and recall concern which deviations those rules detect. Throughput concerns the cost of running the stages. The authors also call for studies of the user’s experience and the checker’s effects on writing. The later work’s focus on different ways to evaluate a Swedish checker connects to that distinction between the task of analysing text and the task of assessing a writing aid. The citation alone specifies neither which measurements were retained nor what the later evaluation found.
The Amharic grammar-checker study (2013) brings together morphological features of words and probabilistic methods based on n-grams, sequences of neighbouring items. Its subject connects to Granska’s use of probabilities and explicit grammatical information in a checker for a particular language. In Granska, the statistical stage gives the rules tags, and those tags make inflectional contrasts available for diagnosis. The Amharic title identifies the use of morphological features and n-gram probabilities in the development of its checker. It leaves the division of work between those methods, and any direct adoption of Granska’s rule architecture, unspecified.
Internet as Corpus–Automatic Construction of a Swedish News Corpus (2001) cites Granska from the direction of Swedish language resources. Granska uses a manually tagged corpus to supply contextual statistics and help construct a lexicon. The later study’s stated task is to build a Swedish news corpus automatically from Internet material. The connection is the role of text collections in computational work on Swedish. The activities themselves address different stages of that work. One uses an annotated resource to support the analysis of new text, while the other concerns the creation of a collection of texts. The citation does not establish that the news corpus trained Granska or that Granska processed the corpus.
Taken together, these lines of work show why the distinction between the parts of Granska matters when tracing its reception. Evaluation research can take up the question of how a checker is judged. Grammar-checker development for another language can draw a connection through morphological evidence and probability. Corpus construction can cite the paper in the context of language resources. Within the Granska paper, those concerns meet in a concrete task. Corpus statistics give words grammatical descriptions, rules turn selected relationships into warnings, and an interactive checker has to present those warnings in a form a writer can assess.
Cite
Cite as Rickard Domeij, Ola Knutsson, Johan Carlberger and Viggo Kann. 2000. Granska–an efficient hybrid system for Swedish grammar checking. Proceedings of the 12th Nordic Conference of Computational Linguistics (NODALIDA 1999).
@inproceedings{domeij2000granska,
title = {{Granska–an efficient hybrid system for Swedish grammar checking}},
author = {Rickard Domeij, Ola Knutsson, Johan Carlberger and Viggo Kann},
booktitle = {Proceedings of the 12th Nordic Conference of Computational Linguistics (NODALIDA 1999)},
year = {2000},
url = {https://aclanthology.org/W99-1005/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/domeij-2000-granska-efficient-hybrid-system-swedish/