---
title: "DanProof: Pedagogical Spell and Grammar Checking for Danish"
description: "DanProof uses Danish sentence structure to rank spelling corrections, recognize compounds, and explain grammar errors to writers."
canonical: "https://research.elamur.ai/free/en/papers/bick-2015-danproof-pedagogical-spell-grammar-checking/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/bick-2015-danproof-pedagogical-spell-grammar-checking/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2015](https://md.research.elamur.ai/free/en/papers/2015/) / DanProof: Pedagogical Spell and Grammar Checking for Danish

# DanProof: Pedagogical Spell and Grammar Checking for Danish

Paper · 2015 · Eckhard Bick

**Authors:** [Bick](https://md.research.elamur.ai/free/en/authors/bick/), [Eckhard](https://md.research.elamur.ai/free/en/authors/eckhard/) · **Year:** 2015 · **Venue:** Proceedings of the International Conference Recent Advances in Natural Language Processing · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**10** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2408243249) · [Proceedings of the International Conference Recent Advances in Natural Language Processing](https://aclanthology.org/volumes/R15-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/R15-1008/)
- [PDF](https://aclanthology.org/R15-1008.pdf)
- [OpenAlex](https://openalex.org/W2408243249)

Citations: OpenAlex, 2026-10-14.

## Summary

A Danish spellchecker has to decide when to leave an unfamiliar word alone and when to question a familiar one. Writers can form compounds that are perfectly legitimate even when the complete word is missing from a dictionary. They can also use an infinitive where the sentence calls for a present-tense verb, producing a word that passes a dictionary check. Eckhard Bick’s DanProof addresses both problems. It uses Constraint Grammar, a way of applying linguistic rules to the possible readings of words in a sentence, to assess spelling suggestions and diagnose grammatical errors.

DanProof starts with a list of known errors and a large lexicon of written forms. It looks for replacements using similarity in spelling and pronunciation, along with word frequency. Its [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/) component analyzes the structure of unfamiliar words, including possible compounds. DanGram, the Danish parser that supplies the sentence analysis, then compares the original form and the strongest proposed replacements in context. A separate error grammar identifies problems such as a wrongly split compound, a noun with the wrong number, or a verb with the wrong ending. The system can turn a diagnosis into a corrected form and use the same diagnosis to display an explanation in Microsoft Word.

The evaluation used 6632 words of Danish high school exam essays written by Greenlandic speakers. In the broadest setting, DanProof found around two thirds of the errors, with recall of 65.1 and precision of 91.7. The spelling setting that included compound errors reached an F-score of 88.6. The narrower lexical and classical settings reached 95.2 and 99.1, respectively. On the same essays, Word2007 detected fewer errors in the comparable settings. When DanProof had assigned the right error type, it suggested the correct form in 95.8% of cases. The paper reports that Word included a correct suggestion in 84.4% of cases and put it first in 68.9%.

A separate newspaper test examined the decision to accept a word through compound analysis. DanProof used its `@new` acceptance tag 347 times in a 178,000-word portion of Korpus2000, with 99.4% accuracy for those decisions. Word2007 flagged 54.2% of the same list as errors. The essay results expose a different side of the system. Missing and unnecessary words were difficult to detect, and confusion between the subject pronouns *det* and *de* frequently escaped the rules. Word order and comma checking lay beyond the evaluation. The paper establishes the performance of the proofing system on these texts. The effect of its explanations on learning remained a question for classroom testing.

## Deep dive: DanProof: Pedagogical Spell and Grammar Checking for Danish

DanProof uses Danish sentence structure to rank spelling corrections, recognize compounds, and explain grammar errors to writers. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A vocabulary that grows as people write

A straightforward spellchecker looks up each item in a vocabulary and offers nearby entries when a lookup fails. The approach starts from a sensible observation. Many slips produce a sequence of letters that has no entry, and the intended word is often close enough to recover through a small change. A vocabulary can therefore do double duty. It supplies a test for whether a written form is familiar and a source of possible replacements. The paper presents this as a practical tradition with considerable influence from English. Danish exposes weaknesses in the assumptions behind the lookup.

Compounding makes the first assumption especially fragile. A speaker can join familiar words and produce a new written form. A list can contain the components and still lack the whole. If absence from the list triggers a warning, productive word formation produces a steady source of false alarms. The check can even encourage the opposite of the intended behavior. A writer can insert a space and watch the warning disappear because each component is in the vocabulary. The system has approved the parts separately, while the writer has introduced a spacing error in the compound.

That is a problem in both directions. A checker needs to recognize a sound compound when it is written together. It also needs to notice when separate words belong together. The evidence needed for these tasks differs. Inside an unfamiliar token, the component words can support a plausible analysis of its structure. Across a space, the checker has to establish whether neighboring tokens form a compound in that sentence. A pair of valid words may be acceptable separately elsewhere. Deciding to close the space requires evidence about how the pieces fit their surroundings.

Bick also raises a consequence for ordinary writing. When a checker repeatedly accepts the separated versions of compounds, writers may come to treat the split form as the safe choice, particularly in informal text. This is a motivation for recognizing compounds rather than a measured effect on writing habits. It explains why the paper treats an unfamiliar but well-formed compound as something the software should actively recognize. Suppressing a warning in that case matters as much to its behavior as detecting a misspelling.

#### A valid word can be the error

The second assumption is that a correctly spelled word is safe to accept. Danish offers a clear counterexample in *købe* and *køber*. The former is an infinitive and the latter is a present-tense form. Both can appear in a spelling lexicon. To tell whether the writer has used the intended form, a checker has to see what the verb is doing. An auxiliary or an infinitive marker can license an infinitive. In another construction, a subject and the absence of a reason for an infinitive can support a finite reading, which is the form the clause requires of its main verb.

The paper treats confusion between these endings as socially consequential. It describes the error as a stigmatized feature of Danish writing, making the distinction particularly relevant to educational feedback. The diagnosis also changes what a reader can learn from a warning. “Unfamiliar spelling” would give a misleading account of a legitimate verb form used in the wrong setting. An explanation about the verb’s relationship to an auxiliary gives the writer a grammatical reason for the proposed change.

Other confusions offer less leverage. The paper uses *det* and *de* as an example of one properly spelled word appearing where another was intended. Both can occur as subjects. Finding a subject position can narrow the interpretation of the sentence and still leave both possibilities open. The contrast with the verb endings is important for the task. Sentence analysis can expose a grammatical requirement such as an infinitive. Choosing between two words whose local functions are similar can require evidence that the checker’s rules have little access to.

#### From a list of candidates to a preferred correction

A warning is only part of the work. An editor can show a menu of words close to a suspected error, but users differ in their ability to choose from it. Someone who already knows how the word is spelled may recognize it at once. The same menu can be much less helpful to someone who is uncertain about the spelling or who has confused two endings that both look plausible. The paper therefore makes the ranking of suggestions a central part of the task. The first choice should reflect evidence that the proposed form belongs in the sentence.

The same issue appears in automatic processing. The paper mentions pre- and postprocessing for [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) and correction in optical character recognition as cases in which a useful first choice matters. A person can inspect alternatives in a menu. An automated stage may need a preferred form to pass on. These uses help explain the interest in prioritization. The experiment focuses on essays and lexical decisions in a newspaper corpus, so those applications set the context for the design.

Edit distance, a measure of the changes needed to turn one string into another, gives one source of evidence. Two plausible corrections can be close in letters and differ in pronunciation, frequency, or grammatical function. A writer’s form may preserve the sound of the intended word better than its conventional spelling. A rare form may resemble a typo more closely on paper while a common form is a stronger candidate in general use. Once candidates enter a sentence, an auxiliary can favor a verb over a visually similar noun. The design treats these as different sources of information about the same choice.

#### The systems DanProof builds on

The paper identifies Hunspell and work with finite-state transducers as responses to the lexical variability of languages with productive word formation. It describes the use of detailed sentence analysis as less common in proofing. Within Scandinavia, it points to earlier Swedish and Norwegian checking systems based on Constraint Grammar, including tools distributed by Lingsoft. DanProof belongs to that tradition. Its role is to make existing analyses of Danish supply information for several proofing decisions, from candidate selection to the description of a grammatical fault.

Its immediate predecessor is OrdRet, an earlier Danish checker designed with dyslexic writers in mind. DanProof changes the intended domain to ordinary writing, including text that may already have passed a spellcheck. This changes what the checker can assume about an unfamiliar form. The paper expects the intended correction to be closer in spelling in the newer domain and describes the texts as having longer words and more compounds. A broader list of possible replacements was valuable for OrdRet’s intended use. In DanProof, restricting the list gives the sentence rules a more manageable set of interpretations and makes it easier to give a prominent place to a good suggestion.

The paper also draws on work about Swedish learner errors when discussing errors that occur regularly among people learning Danish. It uses that work to motivate attention to recurring problems with inflection, including noun gender and past-tense endings. The relationship between Danish and Swedish makes the comparison a rationale for which error patterns to consider. The paper identifies the absence of corresponding Danish learner data, so the comparison provides a starting point for rule development instead of a Danish inventory derived from a matched corpus.

### The method, step by step

#### Following a token through the system

DanProof’s main operations are easier to follow if the original word and its possible corrections are treated as competing interpretations. An unfamiliar spelling is first given a small list of candidates. The system asks what each candidate could be grammatically and whether the original can be analyzed as it stands. DanGram then looks for readings that fit the rest of the sentence. Alongside that analysis, a grammar devoted to errors proposes diagnoses and possible repairs. Some diagnoses can be made when the words have several readings. Others become safe only after the roles in the sentence have been established.

How DanProof turns written input into diagnoses and suggestions The steps in order.

A token is an item the checker works on after segmenting the input, a process known as [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/). One token can carry multiple readings. A reading records what a form might be, such as a noun or a verb, and relevant properties, such as number or tense. A correction candidate can also have several readings. This arrangement brings possible replacements into the same representation as the original. The grammar can use an ordinary fact about the sentence, such as the presence of an auxiliary, to decide which of those readings has a place there.

The paper describes a command-line use for corpus work and automatic processing, as well as a Word-facing application. Both use the linguistic pipeline. The Word application adds a way to present the diagnosis to a writer and explain what prompted it. That division lets the same analysis support a replacement in one setting and a lesson about the construction in another.

#### Retrieving likely replacements

The first pass is a conventional word-based spelling check. It attaches suggestions when the token matches a known error pattern or when the lexicon cannot verify the form. The two sources have different jobs. The manually prepared substitution list has 5,800 entries. An entry can represent a single form, a combination of words, or a partly variable pattern. It comes with proposed replacements whose weights already express how plausible the substitutions are. This gives the system a direct route from a recurring mistake to the forms suited to correcting it.

The full-form lexicon contains 1,100,000 word forms. An entry is a form that can appear in running text, so the database can be used directly when testing a spelling or looking for a replacement. Trying every entry for every unfamiliar token would be impractical in the system described. The matcher instead searches databases organized around partial matches. These give it a smaller pool to compare with the input. It also runs a corresponding search over a version of the database represented phonetically.

The phonetic pass is useful when the writer has captured a word’s sound more closely than its letters. The matching procedure also accounts for recurring letter changes, such as permutations, doubled letters, and silent letters. For another comparison, it can use separate consonant and vowel patterns from the phonetic representation. The paper calls these patterns skeletons. They let the system compare parts of the sound structure even when a mismatch makes the complete forms look less similar.

The scoring component, called the Comparator, assigns separate weights for written similarity, spoken similarity, and frequency. The paper labels the three quantities `w`, `s`, and `f`. The first concerns the graphemes, or written units. The second concerns the phonemes, or sound units represented in the phonetic transcription. The third reflects frequency. Levenshtein distance is among the criteria used to compare the written and phonetic forms. It represents how many edits are needed to change one sequence into another. The paper describes normalization by word length, which relates the size of an edit to the length of the forms under comparison.

The Comparator combines its evidence into an overall similarity value. The paper gives a cutoff of 40% below the maximum for inclusion in the correction list. It also retains markers for the best written, spoken, and frequency match individually. A candidate can therefore be identified as particularly close in sound even if it has a different standing in the overall ranking. The paper specifies these signals and the cutoff in prose. It supplies no explicit equation for the normalization or the combination of weights.

The score at this point expresses how plausible a candidate is as a word-level replacement. The context can still change which candidate should appear first. A close sound match may be a verb in a position that calls for a noun. A highly frequent form may have the wrong inflection. The spelling pass makes these candidates available at reasonable cost, and its scores carry information that the next stages can use.

DanProof uses tighter similarity thresholds than OrdRet because its intended input is expected to contain fewer errors and to require smaller changes to spelling. Keeping the list short is also a condition for effective context analysis. If each of several words in a sentence brings many alternative spellings and grammatical interpretations, a rule assessing one word can encounter ambiguity in the very words it needs to consult. A useful candidate list has to be broad enough to contain the intended correction and compact enough for the surrounding sentence to help choose it.

#### Giving the original spelling a fair analysis

Candidate retrieval starts from lexical familiarity. Morphological analysis lets an unfamiliar form show that it has a recognizable structure. DanProof extends DanGram’s compound analyzer and its ability to guess the grammatical properties of an unknown item from its ending. The compound analyzer can assemble a reading from constituent parts. The ending-based guesser can offer evidence about how an unfamiliar form might behave. These readings enter the same decision as the proposed spelling corrections.

The system adds a confidence marker for a plausible compound using the length and frequency of its parts. This matters because a decomposition into familiar pieces is itself only evidence. A productive analyzer can often find coincidences in a string, and some analyses are more credible than others. With a confidence marker, a rule can exercise caution before replacing an unfamiliar compound or a technical term. An original spelling with a strong analysis can survive even when the conventional spelling component has supplied an attractive alternative.

The paper’s later distinction between `@new` and `@check!` comes from this part of the system. `@new` means that DanProof has accepted a word through productive compound analysis. It communicates a positive reason for accepting a form that the lexicon alone could fail to verify. `@check!` expresses uncertainty. The system has found neither a plausible productive analysis nor a correction that warrants treating the item as securely wrong. The distinction allows the checker to accept a novel formation and to leave a different kind of unfamiliar item open for review.

The morphology component also recognizes regular patterns in errors. One example concerns Danish words that lose an *e* in certain inflected forms. Applying a more general plural pattern to *minister* can lead a writer to produce *ministere*. The intended plural is *ministre*. DanProof can recognize the attempted inflection and relate it to the appropriate form. From an educational perspective, the error reflects a plausible rule applied in a place governed by another spelling pattern. The diagnosis can therefore identify what the writer was trying to do.

The extensions cover errors connected with distinctions writers must learn, including noun gender and regular past-tense endings. The paper observes that these distinctions cannot always be predicted from strict rules about the written form alone. It uses systematic spelling and sound confusions alongside the morphological treatment. Other learner phenomena would require different evidence. The paper identifies alternation between languages and compound formations borrowed from another language as cases for which rules or substitution lists tailored to the writer’s first language would be needed.

#### Ranking candidates with an ordinary parser

DanGram’s first analysis pass concentrates on [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) and grammatical features such as inflection. The relevant stage has about 6,000 rules. It uses evidence about syntax implicitly, drawing on the patterns in which particular words and readings occur. Explicit assignment of syntactic functions comes later. For the spelling task, the important decision at this early stage is that the parser sees readings for both the original form and the best suggestions. It can apply much of its ordinary rule set to the new ambiguity created by those suggestions.

Consider *vært* after the auxiliary *har*. The original can be analyzed as a noun. The correction *været* supplies a verb reading that makes sense with the auxiliary. The comparison therefore involves more than the small difference in spelling. Each candidate supplies a different analysis of the sentence. A rule that expects a verb form after the auxiliary can promote *været* on grounds that a ranking based on string similarity alone would have no way to express.

The architecture diagram illustrates a different choice with the written form *indsater*. A candidate list can favor *indsatser* as a plural noun on one kind of evidence and *indsætter* as a present-tense verb on another. In the illustrated sentence, the form comes after *disse* and a modifier. A plural noun can complete that phrase. The verbal option, in spite of its strong phonetic score in the example, cannot fill the same position. The diagram makes the progression concrete. A candidate’s strongest isolated feature can get it considered, while a grammatical constraint determines which reading serves the sentence.

DanProof adds rules aimed specifically at spellchecker suggestions, which run before the general DanGram tagger. It uses only the top candidates and omits the least conservative general rules at this stage. These choices address a tension in the use of [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/). A parser helps when the surrounding words provide stable evidence, but a sentence with multiple errors may leave those surroundings open to several readings too. Forcing a choice on the basis of a heuristic in such a sentence can remove evidence needed for a later decision.

The final ranking in the user interface preserves a role for both stages. The replacement preferred in context is put first. Candidates removed from contention during grammatical analysis can then be shown farther down the menu, ordered by their original spelling scores. Their presence gives a writer access to alternatives if the preferred reading is wrong. The top position communicates the sentence analysis, while the remaining positions retain the useful ordering from the spelling pass.

#### Adding an error diagnosis to a reading

DanGram reduces ambiguity by discarding readings that conflict with contextual evidence. The dedicated error grammar uses Constraint Grammar to add information. It contains roughly 1450 rules. A rule can mark an existing word as the wrong form for its context and attach a tag telling the correction generator what grammatical feature to change. In the system’s notation, `@pl` requests a plural form, `@vfin` requests a finite verb, and `@utr` identifies the need for common gender. These tags are also available for error classification.

Take the paper’s example of *menneske* following *disse*. The demonstrative gives evidence for a plural noun. DanProof can retain the noun analysis and attach the plural diagnosis. The correction generator then produces *mennesker*. The input and output belong to the same lexical item, and the error is in the feature chosen for this use. From a writer’s viewpoint, this diagnosis explains why changing the ending repairs the phrase.

Agreement within a noun phrase gives a similar opportunity. In *en stort oplevelse*, the system can compare the determiner, adjective, and noun. Their features support the common-gender form *stor*. The diagnosis identifies the adjective as the source of the conflict and supplies an inflectional repair. The information used here lies close to the affected word. Even then, the system must choose which word in an inconsistent sequence should change. An agreement conflict in the abstract says that the features clash. Resolving it requires deciding which readings of the surrounding words are reliable.

The infinitive example shows how the direction of the correction can vary with context. The system can look left for an infinitive marker or an auxiliary that licenses an infinitive. Conversely, the presence of a possible subject and the absence of contexts that call for an infinitive can support a finite-verb diagnosis. In the paper’s example, a subject phrase about adult Danes precedes *leve*, and the proposed replacement is *lever*. The rule checks several conditions to guard against cases in which the infinitive is legitimate. A simple test based on proximity to a noun would give weaker evidence.

The system also diagnoses some substitutions involving distinct words. In a construction with *ønsker* followed by *hjælpe*, the paper gives an instance in which *og* appears where the infinitive marker *at* is expected. The verb on the left and the infinitive on the right help justify the replacement. A global substitution from *og* to *at* would catch plenty of correct uses of *og*, so the error has to be associated with a particular context. DanProof can implement such proposals by appending a full reading. The `APPEND` operation in CG-3 permits the new reading to carry its own part of speech and inflection. Disambiguation rules can then assess the new form alongside the original.

Other rules deal with casing, apostrophes, hyphenation, and certain errors at sentence boundaries. The system also attempts to mark unnecessary and missing words. For compounds, a rule may recognize that adjacent forms should be joined. In the example involving *barndoms veninden*, the form and position of the first noun and the definiteness of the following one support an analysis as a split compound. These diagnostics share the same principle. The checker attaches a description to the problematic construction, giving the repair stage or the interface information about what kind of change to make.

#### Letting diagnosis and disambiguation take turns

The order of the rules matters when the input contains errors. A general parser seeks a coherent interpretation. Suppose an apparent noun has a feature that disagrees with its determiner or adjective. If that written form also has a verb reading, a disambiguation rule may drop the noun analysis. A proofing rule using agreement would then lose the evidence it needed. The conflicting noun reading was precisely the clue that the writer might have chosen the wrong ending. An early error rule can preserve that possibility by diagnosing the conflict before ordinary analysis removes the reading.

Early diagnosis has its own difficulty. Several readings may still survive for each word, and the source of the conflict may be unclear. A string with an apparently inconsistent determiner, adjective, and noun does not by itself show which item should be altered. A later pass can use the readings that DanGram has managed to narrow. The early and later passes give the rules access to different states of the analysis. The former can see relevant possibilities while they still exist. The latter can act when the readings that provide the context have become more secure.

In the sequence described in the paper, the safest error rules run before a loose stage of morphological disambiguation. Fuller error marking and stricter analysis follow. The safest mapping rules can apply again after DanGram has resolved some of the uncertainty. Contextual disambiguation can sort out competing error tags as well as competing readings. A subsequent syntactic pass of DanGram, with 5,000 rules, assigns functions that a final round of error mapping can consult.

One of the final-stage examples is *Bægeret var fuld*. The adjective is a complement describing the subject *Bægeret*. It must take the neuter form *fuldt*. To make that correction, the checker needs to know which noun is the subject and which adjective is predicated of it. Looking only at the nearest word offers little help because the linking verb intervenes. A syntactic function tag and the relationship between the subject and the complement supply the relevant evidence. The case shows why the final pass has a different job from the earlier check on adjacent words inside a noun phrase.

These passes also explain how grammatical analysis serves two purposes at once. A syntactic expectation can rank one spelling candidate above another, as in the correction after *har*. An error rule can use a similar expectation to mark a change of inflection on a form that already exists in the lexicon. Both decisions depend on interpreting the surrounding sentence. In one case the plausible forms come from the word matcher. In the other, the diagnosis gives the correction generator the feature that the new form must express.

#### From a diagnosis to feedback

At the end of the analysis, inflectional tags can be turned into written replacements. The diagnostic tag also has a role in Word. A writer can see an error-marked passage and a short description of the problem, with a longer explanation and examples. The paper describes about 35 error types with pedagogical material, including references from the interface to exercises and textbook passages. The linguistic rule is responsible for deciding when a tag applies. The associated material explains what that kind of tag means to a reader.

For the extra *-r* case, the explanation relates the ending to the difference between a finite verb and an infinitive. It points the learner toward cues on the left, such as *at* or forms of modal verbs. An example can show the same verb used with and without such a cue. This gives the correction a reason that applies beyond the sentence on the screen. The paper describes how the material is attached to diagnoses. Its evaluation measures whether the diagnoses and corrections are accurate.

The interface design includes a sidebar for passages containing errors and changing comment fields, along with optional colored underlining in the text. Users can enable grammatical checking as a group or choose individual categories. The paper motivates that control with differences in users’ needs and writing practices. Someone deliberately using capitals for emphasis may have little use for repeated casing flags. Someone struggling with a particular ending may want that diagnosis even at the cost of an occasional false alarm. Common forms that differ from the stricter orthographic choice can receive markers such as `<frequent>` or `@green`, allowing the interface to distinguish them from other spelling errors.

The procedure relies on a manually compiled error resource, a lexicon, and rule-based analyses, including the existing general-purpose DanGram rules and additions for proofing. The paper gives the sizes of the main resources and describes how they contribute to the pipeline. It presents the essays as material for evaluation, with manual inspection of the system’s output and an additional search for missed errors. The essay results consequently measure the behavior of the assembled checker on that collection.

### Experiments and results

#### Finding mistakes in school essays

The evaluation uses Danish high school exam essays written by Greenlandic speakers, totaling 6632 words. The paper wanted material with enough errors to test more than dictionary coverage, while better reflecting the intended use than the dyslexic writers’ texts used for OrdRet. These essays contained conventional misspellings, grammar errors, and valid words used in place of other valid words. That mixture makes it possible to compare narrow spelling checks with the wider proofing task on the same material.

DanProof first processed the essays. The evaluator then inspected the markings and corrected the assessment manually. A further pass added false negatives, which were errors that had escaped the system. Recall expresses the share of the reference errors found by the checker. Precision expresses the share of its evaluated warnings that correspond to errors. The F-score summarizes the two together. The evaluation also considers whether the checker assigned the right error type and whether the chosen replacement was correct. Each question has its own denominator.

The essay study reports several ways to count errors. `All` includes the full range of evaluated markings. `Spell` limits the task to spelling, including wrongly joined or split compounds and handling of hyphens and case. `Lex` applies rules based on the Danish spelling dictionary Retskrivningsordbogen. In this setting, a warning on a word absent from the dictionary is excluded from the false-positive count, and a missed error involving a dictionary-listed form is excluded from the false-negative count. A real-word confusion can thus count under `Spell` and disappear from the corresponding error total under `Lex`.

`Classic` uses the `Lex` conventions and treats words that DanProof recognized as possible compounds despite their unfamiliarity as if they were marked. This is a change to what counts as an error marking in the classical evaluation. It should be interpreted alongside the paper’s separate examination of valid words accepted by compound analysis, which asks how frequently that acceptance is justified in running text.

Under `All`, DanProof’s recall was 65.1 and its precision was 91.7, for an F-score of 76.1 on the essays. Under `Spell`, recall was 86.8 and precision was 90.8, yielding an F-score of 88.6. The extended task thus kept precision at a similar level while adding errors the checker was much more likely to miss. The `Lex` evaluation gave recall of 93.7, precision of 96.7, and an F-score of 95.2. The `Classic` evaluation gave recall of 100.0, precision of 98.3, and an F-score of 99.1. The latter values describe the increasingly restricted scoring conditions. The broad results describe the more difficult task of identifying errors in complete sentences.

#### Comparison with Microsoft Word

The paper ran Word2007 on the same essay material as a practical baseline. Under the `All` evaluation, it reached recall of 20.8 and precision of 54.6. In `Spell`, its recall was 75.0 and precision was 51.1. In `Lex`, the corresponding values were 81.8 and 54.9. The chart compares the two systems on the reported F-score in each shared setting.

DanProof and Word2007 F-scores on Danish high school essays DanProof scores higher than Word across the shared evaluation settings.

**The numbers**

| System or setting | F-score |
| --- | --- |
| Word2007, All | 30.1 |
| DanProof, All (this paper) | 76.1 |
| Word2007, Spell | 60.8 |
| DanProof, Spell | 88.6 |
| Word2007, Lex | 65.7 |
| DanProof, Lex | 95.2 |

The broad comparison reflects differences in scope. Word identified some grammatical errors with few false positives among those markings, but it found relatively few of them. It was also less successful on missing or extra words, and it failed to find the compound errors discussed in the comparison. The paper regards its low broad score as an imperfect reflection of what the product was intended to check. Word also reported some spacing and punctuation problems that lay outside the DanProof test. The common `Spell` and `Lex` settings offer narrower comparisons, and DanProof retains an advantage under those definitions.

Proper names explain some of Word’s false alarms. The paper reports alternative scores with names excluded. Word’s precision reaches 71.6 for `All-nonprop`, 70.3 for `Spell-nonprop`, and 77.6 for `Lex-nonprop`. Recall remains at the corresponding full setting’s value in each comparison. Removing names changes which warnings enter the precision calculation. It gives an indication of how much that category affected the measured false-alarm burden. The paper also identifies legitimate compounds that Word marked, including *boginteresse* and *middagsræs*. Excluding names leaves that source of errors in place.

#### When the warning leads to the right repair

The paper next asks what happens when DanProof has identified an actual error. The type assigned to a recognized error was right in 95.7% of cases under `All` and 96.6% under `Spell`. For errors with a correct type assignment, the proposed new form was right in 95.8% of cases in either setting. This is an evaluation of decisions after the checker has found the error and classified it properly. The recall results are needed to understand how often it gets the opportunity to make such a decision.

For Word, the paper reports a correct option somewhere in the suggestion list in 84.4% of cases and a correct option at the top in 68.9%. A correct suggestion farther down the list can still help a writer who recognizes it. Top position matters when the writer is unsure or when another process must choose a single form. DanProof’s reported correction result is conditional on a correct diagnosis, and the paper describes Word’s figures in terms of suggestion availability and position. The measures answer related questions about correction output under different stated conditions.

The comparison with OrdRet addresses ranking in another way. OrdRet’s evaluation gave credit to correction suggestions according to their inverse rank in the list, so a correct form lower down still contributed to its score. The paper approximates a comparable weighted result for DanProof by assigning zero weight where the correct form was missed. It reports the resulting all-weighted figures as recall of 61.6, precision of 86.7, and an F-score of 72.0. The corresponding figures reported for OrdRet are 43.0, 58.0, and 49.4. DanProof’s figures come from the school essays, while OrdRet’s come from its dyslexic writers’ evaluation. The paper highlights the value remaining in OrdRet’s lower-ranked suggestions and the difficulty of comparing performance across these texts.

The study also reports the number of false alarms and missed errors a reader would encounter per page. The full `All` setting produced 0.7 false positives and 4 false negatives per page of the essays. The `Spell` setting produced 0.4 false positives and 0.4 false negatives per page. Page counts give a direct view of warning burden in this collection. They depend on how often errors occur in the input, so they describe the essays alongside the precision and recall figures.

#### Accepting unfamiliar words in newspapers

The newspaper experiment examines a different decision. It uses a 178,000-word portion of Korpus2000 to inspect forms that DanProof handled through productive analysis or left uncertain. The test looks at the checker’s decisions about these marked words. It gives a way to examine the benefit of recognizing valid forms without relying on essay-wide scores that combine spelling, grammar, and ranking.

DanProof assigned `@new` 347 times. Only 2 of the decisions were wrong, giving accuracy of 99.4% for the tagged items. Word2007 marked 54.2% of the same list as errors. The comparison deliberately concerns forms the compound analyzer accepted. It tests whether the strategy of recognizing new compounds works on those selections, and it shows substantial difficulty for Word on that particular list.

The `@check!` category had 120 instances. Of those, 23.3% were spelling errors, 17.5% were foreign words, and 8.4% were names. The paper mentions names such as brands and pharmaceutical names among the unresolved cases. Ordinary Danish words also accounted for a substantial part of the group. Word accepted 1/3 of those ordinary Danish words. The mixed outcome gives the uncertainty tag a concrete interpretation. Some items warrant a spelling intervention, others need broader lexical coverage, and some are names or foreign forms whose treatment depends on what a checker is designed to recognize.

The newspaper result is particularly informative about warnings that a user would otherwise see. The `@new` label identifies a reason to accept a legitimate form outright. `@check!` sets aside a less consistent collection for which the system lacks evidence. Bick sees some complementarity in Word’s ability to recognize words from the latter group and DanProof’s ability to analyze compounds in the former. The paper discusses a possible combined checker with a way to arbitrate between their decisions. No combined system is evaluated.

### What the ablations show

The paper reports no controlled component ablation and instead offers analyses by evaluation setting and error type, a comparison with Word on the same essays, and an inspection of lexical confidence tags in newspapers.

#### Which mistakes have usable contextual cues

The error-specific results distinguish problems that the full essay score groups together. Wrong splits of compounds under `@comp-` had recall of 76.0 and precision of 100.0. The `@comp-:-` category had recall of 90.9 and precision of 95.2. For `@vfin`, which marks the need for a finite verb, recall was 66.7 and precision was 85.7. Those results show that contextual evidence frequently sufficed to recognize the relevant construction. They also show that a readily explained type of error can still escape detection.

DanProof recall by selected error type in the school essays Uppercase and compound errors were detected more consistently than missing words and lexical confusions.

**The numbers**

| System or setting | Recall |
| --- | --- |
| Uppercase marking, @upper (this paper) | 100.0 |
| Compound marking, @comp-:- | 90.9 |
| Split compound, @comp- | 76.0 |
| Finite verb marking, @vfin | 66.7 |
| Extra word, @nil | 28.6 |
| Missing word, @insert | 8.3 |
| Contextual substitution, @: | 5.7 |

For extra words, the checker achieved recall of 28.6, and for missing words it achieved 8.3. Both categories had precision of 100.0 in the essays. That combination means the few emitted warnings were reliable while the great majority of the corresponding errors escaped. A missing word presents a different problem from a wrong ending. With an ending, the system sees a form carrying features it can compare with nearby words. With an omission, it has to infer that a position should have been filled. An extra word presents the reverse problem. Its form may be legitimate and may attract some plausible analysis even though the sentence would be better without it.

The broad contextual substitution category achieved recall of 5.7 and precision of 50.0. The paper traces a substantial share of these cases to confusion between *det* and *de* in subject position. It also discusses idioms and preposition choice among the difficulties, with cases beyond the system’s scope. A rule can obtain strong evidence for a change from an explicit requirement such as plural agreement. The subject pronoun confusions allow similar surface analyses for both choices. That helps explain why broad claims about catching real-word errors would obscure substantial differences among tasks.

Some rows in the paper have very few instances. The `@inf` category, for instance, has 4 listed cases and scores of 100.0 for both recall and precision. That row documents the outcomes for those items. The finite-verb row and the examples of infinitive detection give a fuller view of how the checker treats the two directions of the ending confusion. They concern different error tags and conditions. A perfect result for one small group leaves the broader question of verb coverage open.

#### What changes when the scoring changes

The widening from `Spell` to `All` changes the population of errors being measured. The reduction in recall with similar precision means that the broader inventory contained many errors on which the checker remained silent. The high figures under `Lex` and `Classic` reflect different rules for deciding what counts. These evaluations show how a checker can look excellent at the conventional vocabulary task while leaving many problems for a writer who wants the full service. Since they score different decisions and reference sets, they supply evidence about task difficulty and coverage.

The proper-name exclusion in the Word comparison has a similarly specific interpretation. Recall stays the same while measured precision rises. The same system output is judged under different inclusion rules. The change gives direct evidence that names accounted for a meaningful part of the evaluated false alarms and helps isolate what is left after that part is taken away. The remaining difference includes the valid compounds Word marked and the joined or split forms it missed.

The corpus audit gives complementary evidence about compound analysis. DanProof’s `@new` decisions were accurate on the forms it accepted, and Word frequently rejected those same forms. This bears directly on whether those particular compound analyses were useful. The audit does not estimate how many compounds lay outside `@new`, or how the full DanProof pipeline would perform with the compound analyzer disabled. Similarly, the examples of candidate ranking show that DanGram has evidence capable of resolving an ambiguous correction. The paper gives no matched score for the same candidate lists ranked by spelling alone. The results support the behavior of the integrated system while leaving the size of each component’s contribution unresolved.

### Limitations

#### Limits stated in the paper

Bick identifies grammatical error detection as the area with the clearest room for improvement. The broad setting leaves many errors undetected, even though the warnings it does issue are typically reliable. Missing and unnecessary words are weak categories. Valid words used in place of other valid words are also difficult when the grammar gives little reason to prefer one. The paper links some of this difficulty to the distribution of confusions in the Greenlandic speakers’ essays. The frequency of *det* and *de* in the error analysis makes that point concrete.

The scope is strongest for errors expressed in a word or a close relationship between words, such as an agreement conflict or an inappropriate verb ending. Word order was identified as a syntactic problem to add. Comma checking was being pursued in a parallel project and was outside the reported evaluation. The system had rules for some casing and boundary problems, but the paper’s scores should be understood in terms of the inventory actually examined. Word’s warnings for spacing and punctuation outside that inventory are another reason to read the comparison in light of its scope.

The Word integration was still unfinished when the paper was written. The description of the sidebar and explanation fields establishes what the interface was designed to present. The paper calls for classroom use and feedback from teachers to assess it further, possibly alongside existing teaching materials. The study gives accuracy figures for the labels that could drive explanations. It gives no result on whether readers understood the comments, learned to avoid repeated errors, or revised their writing more successfully with the comments displayed.

The paper also explains why the predecessor comparison could go only so far. The original OrdRet installation could not be reconstructed for a common test. The available scores come from different types of writers and different evaluation procedures. DanProof deliberately uses stricter candidate thresholds because its intended input differs. The numerical comparison describes the reported outcomes in each system’s domain. It leaves open how the two would behave on the same essays, with the same candidate-ranking metric and the same reference annotations.

Another stated concern is lexical coverage. Some `@check!` items were ordinary Danish words that Word recognized. Bick sees a larger lexicon as a way to supplement productive analysis. The design also acknowledges practical limits in learner coverage. A general Danish rule can target an ending confusion that recurs across writers. Forms influenced by a particular first language can require more specialized resources, and the paper lacks a corresponding Danish learner corpus for validating the Swedish-derived comparison of error inventories.

#### Limits of the evaluation design

The essays give a concrete result for a carefully chosen collection. Their error distribution reflects an exam genre and a particular writer population. The paper’s intended domain also includes ordinary text, possibly after a spellcheck. Those settings may contain other mixtures of vocabulary, compound formation, and erroneous inflection. Precision can change when genuine errors are less frequent, and recall can change when the mix of errors shifts towards categories with weak rules. The per-page figures are especially dependent on that mixture and on the density of errors in the essays.

The reference was assembled by examining DanProof’s markings and then searching for errors it had missed. The second pass matters because a standard based only on the checker’s output would leave missed errors unmeasured. The paper’s account leaves open how consistently another evaluator would identify the same missed cases or resolve ambiguous repairs. Some errors have an evident intended correction. Cases involving pronoun choice or a possible omission can require an interpretation of what the writer meant. Reliability in that part of the reference set matters to both error detection and correction evaluation.

The definitions of `Lex` and `Classic` condition the strongest F-scores on a particular view of spelling. A word can be a useful target for a warning even if it is listed in the dictionary, and a dictionary can omit legitimate writing. Those are two of the reasons DanProof exists. Scores under the restricted definitions give a view of lexical checking under familiar conventions. The full and spelling settings provide the evidence for claims about how users would fare when they ask for checks beyond those conventions.

The newspaper comparison has a different selection issue. Its accuracy for `@new` describes a set that DanProof itself selected as well analyzed. It shows that the checker can accept many legitimate compounds within that set. It leaves unanswered how frequently the system fails to recognize an acceptable compound in the wider corpus or confidently accepts a misspelling outside the selected material. The counts for `@check!` reveal what happens in another flagged group, without supplying a complete inventory of compounds or lexical errors in the corpus. An overall estimate of compound recognition would require that wider reference.

Finally, the system combines a substantial lexicon, manually recorded errors, spelling and sound matching, morphological analysis, general disambiguation, and dedicated diagnostic rules. The design explains why these resources can reinforce one another. The shared essay test and the newspaper audit measure the outcomes of the assembled system. They leave unresolved how much of the observed advantage would survive a change to any one resource, or how many of the correct first choices depend specifically on contextual reranking. The paper establishes those mechanisms in concrete cases and reports their combined performance.

### What came after

No subsequent work is documented here, so there is no reported follow-up showing whether another checker adopted DanProof’s method or whether the teaching feedback was tested in classrooms. The paper’s endpoint is a Danish proofing system with measured results for detection, diagnosis, and correction, and a proposed educational use for the resulting error labels.

## Cite

Cite as Eckhard Bick. 2015. DanProof: Pedagogical Spell and Grammar Checking for Danish. Proceedings of the International Conference Recent Advances in Natural Language Processing.

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

```bibtex
@inproceedings{eckhard2015danproof,
  title = {{DanProof: Pedagogical Spell and Grammar Checking for Danish}},
  author = {Eckhard Bick},
  booktitle = {Proceedings of the International Conference Recent Advances in Natural Language Processing},
  year = {2015},
  url = {https://aclanthology.org/R15-1008/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
