---
title: "Developing a Spell and Grammar Checker for Icelandic using an"
description: "GreynirCorrect uses an Icelandic error corpus, spelling rules and sentence structure to flag errors, with stronger results for spelling than grammar."
canonical: "https://research.elamur.ai/free/en/papers/ladottir-2022-developing-spell-grammar-checker-icelandic/"
---
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/ladottir-2022-developing-spell-grammar-checker-icelandic/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Developing a Spell and Grammar Checker for Icelandic using an Error Corpus

# Developing a Spell and Grammar Checker for Icelandic using an Error Corpus

Paper · 2022 · Hulda Óladóttir, Þórunn Arnardóttir, Anton Ingason et al.

**Authors:** Hulda Óladóttir, [Þórunn Arnardóttir](https://md.research.elamur.ai/free/en/authors/thorunn-arnardottir/), Anton Ingason and [Vilhjálmur Þorsteinsson](https://md.research.elamur.ai/free/en/authors/vilhjalmur-thorsteinsson/) · **Year:** 2022 · **Venue:** Proceedings of the Thirteenth Language Resources and Evaluation Conference · **Licence:** [CC BY-NC 4.0 (ELRA, LREC proceedings)](https://creativecommons.org/licenses/by-nc/4.0/)

[**0** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W7160297187) · [Proceedings of the Thirteenth Language Resources and Evaluation Conference](https://aclanthology.org/volumes/2022.lrec-1/) · [licence](https://creativecommons.org/licenses/by-nc/4.0/)

- [Publisher's page](https://aclanthology.org/2022.lrec-1.496/)
- [PDF](https://aclanthology.org/2022.lrec-1.496.pdf)
- [DOI 10.63317/292h8vjn2edw](https://doi.org/10.63317/292h8vjn2edw)
- [OpenAlex](https://openalex.org/W7160297187)

Citations: OpenAlex, 2026-10-14.

## Summary

A spelling checker can look up a word and still have too little information to judge it. In Icelandic, a legitimate compound may be missing from the dictionary, while an ordinary-looking word can have the wrong grammatical case for its role in a sentence. GreynirCorrect tackles both problems. The authors describe it as the first open-source Icelandic tool to address grammar as well as spelling. They developed it within Iceland’s government-funded language technology programme and released it under the MIT license through the Icelandic CLARIN repository and GitHub. The work brings the problems of spelling and [grammatical error correction](https://md.research.elamur.ai/free/en/topics/grammatical-error-correction/) into the same checker.

The checker begins by identifying sentences, words and punctuation in the input. Rules and word lists catch problems such as a missing space or an incorrectly divided compound. The Database of Icelandic Morphology supplies possible readings of each word, including its inflection, and Icegrams supplies evidence about which nearby words tend to occur together. The sentence analyzer works with several possible readings at once, including readings made available by proposed spelling corrections. It uses a [context-free grammar](https://md.research.elamur.ai/free/en/concepts/context-free-grammar/) to build candidate sentence structures, with special rules that recognize some departures from the written standard. A further search through the resulting syntax tree picks up problems such as a verb paired with the wrong prepositional phrase.

The Icelandic Error Corpus gave the authors examples of how native speakers actually write, including passages that depart from the standard. They used the development portion to study recurring errors, decide which ones to address and turn examples into regression tests. They also evaluated the checker against annotations in the corpus test set. For finding the annotated span of an error, GreynirCorrect reached F0.5 of 73.41 on token-level errors excluding punctuation and 29.35 on sentence-level grammar and vocabulary errors. A separate, smaller evaluation that judged corrections in light of the checker’s output yielded higher scores at both levels. Journalists who tried the checker in their editorial workflow generally found it beneficial, and their feedback led to bug fixes and changes in how suggestions were presented.

The difference between the spelling and grammar results matters for interpreting the project. An inflection can be legitimate in one sentence and unsuitable in another, and an acceptable correction can differ from the edit a corpus annotator happened to make. Icelandic also has living variants, such as Dative Substitution and the New Passive, that the written standard treats as departures. The corpus helps the developers see where these problems arise, while the grammar and spelling standards guide what the checker should propose. The authors argue that this development procedure can be used for other morphologically rich languages with limited resources. The evaluation establishes how it worked for Icelandic.

## Deep dive: Developing a Spell and Grammar Checker for Icelandic using an Error Corpus

GreynirCorrect uses an Icelandic error corpus, spelling rules and sentence structure to flag errors, with stronger results for spelling than grammar. · about 34 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 checker has several jobs

A writer who receives a warning needs to know where to look and what to do about it. A tool can tell that something is wrong somewhere in a sentence, point to a particular passage, explain the kind of problem it sees or supply a replacement. Those decisions can succeed or fail independently. A warning can identify the right ending of a sentence and give an unsuitable replacement. A checker can also suggest a word that would fix the error but select the wrong part of the text to replace. The distinction becomes important both when designing what the checker displays and when assessing whether it worked.

The authors distinguish error detection, localization, categorization and correction. Localization identifies the error span, the stretch of original text to which a warning applies. Categorization can tell a writer, for instance, whether a flagged form has a spelling problem or fails to agree with another word. The value of that explanation depends on who is using the checker. A person revising a document can use a diagnosis to judge a suggestion and understand why it was made. A system whose only task is to produce a revised sentence can be assessed directly on the resulting text.

Some errors can be recognized in a word or punctuation mark on its own. Others depend on which word the writer intended, what the adjacent words are or how a phrase is attached to a clause. A list of familiar misspellings helps when a form is consistently wrong. It offers less guidance when both alternatives are legitimate words and the choice depends on context. The paper distinguishes context-independent and context-sensitive checking in part for this reason. A language can have good coverage of the former and still offer writers relatively little help with the latter.

#### What Icelandic writers already had

The authors describe an uneven range of options for Icelandic. Hunspell had an Icelandic implementation with a dictionary containing grammatical tags and information about inflection. Aspell used a pronunciation-oriented algorithm to find candidate spellings. Púki was a commercial checker available for common text editors. It could draw on word stems and affix rules, learn terms from text and suggest synonyms through a thesaurus. The paper describes Microsoft Editor’s Icelandic support as covering context-independent spelling and hyphenation. LanguageTool had Icelandic spelling rules defined, with those rules still outside its release at the time described.

Skrambi brought context-sensitive checking to part of this landscape. It began as a way to repair errors made by software that converts images of text into machine-readable characters. Its later development used confusion sets, groups of alternatives that writers or automatic systems may substitute for one another. An earlier Icelandic research project had also used classifiers with selected confusion sets to resolve such choices in context. The authors mention a separate resource that documented a broader collection of sets and their frequencies. These efforts addressed a harder spelling problem than rejecting unknown words. GreynirCorrect took on sentence grammar and selected issues of style as well.

The open-source requirement also shaped the project. The government programme made its deliverables available through an Icelandic language resource repository. GreynirCorrect was already in existence when the work described here began, and the authors used newly assembled evidence and existing linguistic software to extend it. Much of the paper therefore concerns how to decide what an existing checker should learn to recognize, and how to show that a new rule helps. That was a practical problem for a language the authors describe as having limited technology support despite already possessing substantial linguistic resources. It belongs to the wider problem of building tools for [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/).

#### How Icelandic makes apparently simple errors harder

A dictionary entry can account for a number of written forms. The base form that identifies the entry is its [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/). An inflected form adds information relevant to its use, such as case or number. In Icelandic, the same written form can sometimes be associated with different lemmas or different grammatical features. A checker needs these alternatives because a form’s suitability may depend on its place in the sentence. Identifying a word as a noun or a verb gives part of the answer. Agreement and case checking also require details of its [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/).

The order in which words appear gives some clues to those roles. Icelandic permits relatively flexible word order, which makes it harder to write grammar rules that cover the possible sentence structures. The facts needed to interpret a noun phrase can also be several words away. In the paper’s example about a man who fell into a pond, the phrase that identifies the man contains a relative clause. The main verb, meaning “need,” governs the man’s case even though another verb occurs closer to the noun. A checker has to distinguish what happens inside the relative clause from the grammatical relationship that holds in the containing sentence.

Compounds pose a different problem. Icelandic can write several constituents together as one word, and the paper treats the number of constituents as theoretically unrestricted. Its example, *Samsetningagreiningarvandamál*, refers to problems in analyzing compounds. A lookup may find the parts and miss the full form, and a collection of common word sequences can be sparse at the same point. A checker that interprets every lookup failure as a typo would therefore have trouble with a regular feature of Icelandic word formation. Analyzing the constituents gives the checker another source of evidence, although the paper notes that the relationship in meaning between those constituents can itself be difficult to determine.

#### Which variety of Icelandic the checker is judging

Some decisions concern variation within Icelandic. In the form *Mig langar*, the subject of the verb meaning “want” is accusative. With *Mér langar*, the corresponding subject is dative. The person who has the feeling or desire is called an experiencer. The paper describes Dative Substitution as a shift toward dative subjects with certain experiencer verbs. Both cases in this example differ from the default nominative subject case. The prescriptive target is specifically the accusative licensed for the verb under the standard, so applying a general preference for nominative subjects would miss the point.

The New Passive makes the need for structural analysis particularly clear. In the authors’ example, an elf beats a boy. The canonical passive gives the boy the properties of a subject. The New Passive uses a passive participle while retaining the boy as an object. The paper describes the newer construction as gaining ground among speakers while remaining outside the prescriptive standard. A flag recommending the canonical construction accordingly expresses a judgment about the standard the checker implements. The variation explains why the authors discuss [historical linguistics and language change](https://md.research.elamur.ai/free/en/topics/language-change/) as part of a practical checking problem.

These cases also explain why an error corpus and a usage standard have distinct roles. A corpus can reveal that people use a construction and show the environments in which they use it. A standard supplies the convention against which the checker evaluates it. A usage can be common enough to matter greatly to development and still be something the checker is designed to flag. Later in the pipeline, the same distinction governs how the developers use frequent word sequences. Frequency can support a spelling suggestion when the text supplying those frequencies has been curated with the intended standard in mind.

#### Earlier approaches to building and measuring checkers

The paper places its work among systems that encode explicit rules and systems that learn correction behavior from examples. Rule writers specify which patterns the checker should recognize. A parser can expose a known error structure, and a failed analysis can draw attention to a sentence that might be problematic. The approach needs less annotated training material than the neural alternatives the authors describe, although it depends on people formulating the rules. A [grammar checker for Latvian based on context-free grammar](https://md.research.elamur.ai/free/en/papers/deksne-2011-cfg-based-grammar-checker-latvian/) is among the earlier examples they cite.

In the authors’ account, data-intensive approaches can train separate classifiers for different decisions or error types. Another approach treats a sentence with errors as input for translation into a corrected sentence in the same language. A direct rewrite then gives the correction, while locating and categorizing the change require a separate interpretation of that output. The paper presents these as established options whose suitability depends in part on the resources available for a language. The Icelandic project could draw on a substantial dictionary, an existing parser and a smaller collection of manually documented errors, a combination that favored writing rules with close attention to corpus evidence.

An error corpus can come from ordinary writing inspected by annotators or from deliberate alterations to otherwise correct text. Attested errors can reveal which mistakes writers actually made and how frequently they appeared in the material collected. Artificial errors give researchers more control over which patterns occur and how often, which can be useful when collecting enough writing and annotating it would be costly. The paper points to manual correction in earlier work on [a benchmark corpus of English misspellings](https://md.research.elamur.ai/free/en/papers/flor-2019-benchmark-corpus-english-misspellings-minimally/).

The writer population also matters. A collection for a general-purpose checker and a collection designed to understand the writing of language learners can have different priorities. The authors discuss earlier corpora from native speakers, learners and writers with dyslexia. They cite work on [incorporating an error corpus into a spellchecker for Maltese](https://md.research.elamur.ai/free/en/papers/rosner-2012-incorporating-error-corpus-into-spellchecker/) in connection with native-speaker material and [error annotation for dyslexic texts in Arabic](https://md.research.elamur.ai/free/en/papers/alamri-2017-new-error-annotation-dyslexic-texts/) for a more specifically targeted population. Their observation that much of the available benchmark material focused on English learner writing helps explain the decision to collect evidence from native Icelandic writers for GreynirCorrect.

### The method, step by step

#### Building a record of errors and acceptable forms

The Icelandic Error Corpus, abbreviated IceEC, contains modern Icelandic texts written by native speakers and manually marked for errors. The authors report 56,794 errors in the corpus. They designate the development portion as 90% of the corpus, with 52,312 annotated errors, and the test portion as 10%, with 4,482 annotated errors. The counts refer to errors. The development portion is also described as the training set. Its principal role in this project was to supply examples, frequencies and evidence for rule development.

Each error has a code at the most specific level of a hierarchy. The scheme as published contains 258 error codes, 32 subcategories, and six main categories. The broad levels let the developers see where the checker needs work across groups such as orthography or grammar. At the finer level, annotators can distinguish a particular kind of problem from nearby ones that may require a different remedy. The scheme was designed around the errors encountered in the Icelandic material and the needs of the checker. Assigning labels and corrections in this way makes the corpus a resource for more than counting mistakes. It is a form of [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

Orthography covers such issues as spelling and capitalization. Grammar includes the relationships involved in case, agreement, aspect and syntax. Vocabulary covers problems of meaning and word choice. Style describes concerns such as register and the use of foreign words or symbols. Coherence concerns grammatical context across a text, and the remaining category allows annotators to mark a dependent error. This hierarchy organizes the corpus. The implementation has its own practical distinction between problems it can address around an individual token and problems for which it uses a sentence tree. Some of the work consists in deciding which kind of evidence an annotation calls for.

The spelling rules of the Icelandic Language Council helped establish corrections for orthographic issues and decisions about punctuation. *Málfarsbankinn*, the Language Usage Bank, supplied guidance on grammar, conventional phrases and usage. These resources also guided the people who proofread and annotated IceEC. Accordingly, an example in the corpus could show the circumstances of an error, while the standard could explain why its correction was appropriate. This division of labor matters when evidence of frequency and a recommendation for formal writing point in different directions.

The Database of Icelandic Morphology, or DIM, supplies the vocabulary and inflectional information. The authors report approximately 287,000 lemmas with their inflectional paradigms, the sets of forms associated with each entry. The checker accesses this resource through the compressed Python package BinPackage. DIM also includes Ritmyndir, which associates some observed token errors with their corrected forms and supplies tags, error categories and relevant standards guidance where available. A lookup in that collection can give the checker a likely remedy directly. A lookup in the rest of DIM helps establish which analyses a written form can have.

Other lists supplied known bad forms and their replacements. The authors used nonwords from the IceEC development portion, material from earlier vocabulary collection, inventories of systematic spelling and inflection mistakes and search queries that returned no entry on the DIM website. The latter resource is called Icelandic Search Query Errors, or IceSQuEr. The lists used by the checker pair erroneous and corrected forms, and some also identify the intended part of speech. Compound analysis extends the useful reach of the vocabulary for words assembled from known constituents. For sentence-level rules, the authors relied chiefly on the IceEC examples and the spelling and usage standards.

#### Preparing evidence from neighboring words

Icegrams supplies local evidence about what word forms are likely to occur together. The source is the Icelandic Gigaword Corpus, which the paper describes as containing roughly 1550 million running words from sources including books, news, parliamentary material and social media. Words in that corpus carry a lemma and a morphosyntactic tag. For Icegrams, the authors randomly sampled from curated document collections. They removed duplicates, texts from before 1980 and material from sources they considered less reliably proofread. The resulting sample contained over 100 million tokens.

The team corrected token-level errors in this material before using it to count sequences. An early version made the reason for this work tangible. Some widespread errors occurred more often than their standard counterparts, so the checker could flag an acceptable form and recommend the prevalent mistake. Removing sequences with a frequency of 1 or 2 was another way the authors tried to limit the presence of errors in the resource. They report over 14 million distinct trigrams in the final data, alongside counts for shorter sequences. A trigram is a sequence of three adjacent items, an instance of an [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/).

This preparation gives Icegrams a purpose different from that of IceEC. IceEC intentionally preserves the evidence of erroneous writing, along with annotations identifying the problems. Icegrams supplies frequencies intended to be informative about acceptable wording. One resource lets a developer ask what a writer did and how the error is classified. The other lets the running checker ask whether a possible replacement makes sense among nearby words. The early reversal of correct and incorrect suggestions illustrates why the same raw text would serve those purposes differently.

#### From a passage of text to a set of possible readings

The checker’s processing units are tokens. A token can be a word or a recognized punctuation item, and the checker divides the passage into sentences as part of this preparation. Its Tokenizer package does this in layers, with later layers recognizing more complex units. At the same time it can normalize punctuation. The paper gives examples involving foreign quotation marks, repeated marks, unsuitable dashes, abbreviation punctuation and periods used where the standard calls for an ellipsis. It keeps the original text associated with a token so that the final warning can still refer to what the writer entered. This linking back to the original is important whenever correction begins during [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/).

How GreynirCorrect locates errors and proposes corrections The steps in order.

An early checking layer looks for mistakes it can identify without constructing the sentence. A familiar compound can have been written as separate tokens. Conversely, a conventional phrase can have been erroneously joined into a single unit. The checker also looks for duplicated words. Configuration lists of words and smaller meaningful units handle many such cases. A decision about whether to join or split text is already a correction decision, even though the underlying characters may be correctly spelled. The operation changes which stretch of the original the checker should flag.

Next the tagger collects the plausible readings of each word. These include its part of speech, its lemma and its inflectional features. It looks the form up in DIM and uses compound analysis where appropriate. A word that could fill different grammatical roles accordingly carries several candidate readings forward. The tagger leaves the final choice to the parser, which can compare the readings with the roles available in a whole sentence. This is the collecting stage of [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/).

Morphological information also gives the checking layer access to errors for which a simple list lookup is insufficient. The paper includes more complex splitting errors, capitalization issues and taboo words among the phenomena dealt with at this stage. For problems that depend on nearby words, the system can look for semi-fixed phrases and common erroneous variants. It stores the words in these phrases by lemma, letting related inflected forms match the same pattern. A genuinely fixed phrase can be checked against exact forms. These two ways of representing phrases allow the checker to tolerate inflectional variation where the expression permits it and recognize a precise sequence where its wording is fixed. Both are useful for checking [idioms and multiword expressions](https://md.research.elamur.ai/free/en/topics/multiword-expressions/).

#### Generating and ranking spelling suggestions

When a form is unknown or rare, the checker searches for possible replacements in its vocabulary resources. These candidates come from the Icelandic Gigaword Corpus, DIM or auxiliary vocabularies and have a Levenshtein distance of 1 from the input form. This distance measures how many single-character edits separate two strings. A candidate can be reachable through an insertion, deletion or substitution. The rule bounds the search to close spellings. It also illustrates that candidate generation and candidate selection are distinct decisions. A form can be a close spelling without being a plausible word for the passage.

Icegrams helps rank those candidates by their probability in context. A replacement that commonly occurs with the surrounding words can outrank another that is equally close in spelling. If a candidate is judged sufficiently probable, the system can mark the original as an error and offer the candidate as a possible correction. The candidate’s grammatical tags are also added to the alternatives available to the parser. The spelling layer thus gives the sentence analysis additional possibilities to consider alongside the readings of the original word.

A suggestion that fits its immediate neighbors can still give the wrong grammatical analysis of the whole sentence. Conversely, the sentence may provide evidence for a less obvious reading of a word than the local context suggests. By passing both kinds of word reading into the next stage, the checker lets sentence structure inform the error decision. The preserved original token matters here as well. Whatever analysis makes the most sense, the eventual annotation has to indicate which part of the writer’s text it concerns.

#### Reading the sentence before choosing a grammatical analysis

GreynirPackage contains the parser. It uses grammar rules to combine words and groups of words into larger structures. A rule that allows a noun phrase to fill a certain position can be applied wherever that kind of phrase is licensed by the grammar. Several combinations of tags and phrase boundaries may satisfy the rules for the same sentence. The collection of possible trees is called a parse forest. Constructing these trees is the stage of [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/).

The checker’s tagger and parser are bundled because they solve linked parts of the same problem. The tagger supplies candidates and the parser chooses analyses that can participate in a sentence tree. A tag that looks plausible in isolation can become unsuitable if it gives the word features that conflict with a required grammatical relationship. A tag supplied by a possible spelling correction can make a suitable tree available. Decisions about words are therefore informed by the structures in which they appear, and the possible structures reflect the alternatives retrieved for the words.

The parser ranks the possible trees from their smaller constituents upward. At a point that represents a grammatical category, such as a type of phrase, it selects the highest-scoring family of children according to its heuristics. A terminal represents something at the word end of the tree, while a nonterminal stands for a grammatical category that is expanded into further material. Choosing among the possible groups of children at nonterminals is how the parser resolves competing constructions as the ranking proceeds upward. The paper describes this procedure as heuristic and supplies no scoring equation.

The effect is easiest to see in a sentence with a phrase nested inside another phrase. In the example about the man who fell into a pond, the noun that refers to the man belongs to a larger subject phrase. The relative clause supplies more information about him. The main verb still determines the case of that subject. In a sequence of adjacent words, several intervening items separate the head of the subject from the verb that matters. In the tree, the checker can examine the relationship between the main verb and the whole subject phrase without treating the internal relative clause as part of that relationship.

#### Finding sentence errors during and after parsing

One way to catch a grammatical error is to let the parser recognize the very structure the checker wants to flag. For that purpose, the authors added special grammar rules for known departures from the written standard. Most are enabled for grammar checking and left out during ordinary parsing. An error rule can give the sentence a recognizable structure with a marked node. The checker then has somewhere precise to look for the problem. This is more informative than treating a failed analysis of the complete sentence as the only available sign of trouble.

The paper illustrates the procedure with the verb *vanta*, meaning “need.” Under the standard illustrated, it takes an accusative subject. The example uses the dative form *Manninum* where the expected form is *Manninn*. A rule can flag the case mismatch even with the relative clause about the pond intervening. The proposed correction comes from changing the case of the subject noun phrase in the tree. The identity of the phrase and the features needed to revise it are already available from the analysis.

Other problems appear in sentences that ordinary grammar rules can analyze. A tree may contain a prepositional phrase attached to a verb, for example, and the combination may still be unsuitable for that verb. A structurally recognizable object may also appear with the wrong case. To address such cases, the checker searches the selected tree for patterns. The search language borrows the idea of a regular expression, but its patterns can describe both sequences and relationships across levels of a tree. A pattern can require particular wording, match a grammatical category or leave some material unspecified with a wildcard.

A tree match can therefore collect information from distinct places in a sentence. The pattern can identify the governing word and the phrase associated with it, even when other words intervene. A handler for the specific rule or pattern can then decide how much of the matched material to mark. It can inspect the tree for the features it needs to supply a correction and an explanation. The annotation attached to the original span is the result of that additional work. The internal match may be wider than the stretch the writer actually needs to change.

#### Turning corpus examples into implementation tests

The corpus supported iteration in two ways. Frequencies in the development portion showed which error categories appeared frequently in the collected writing. Automatic scores from the test portion showed where the checker was detecting poorly. The developers prioritized frequent categories with low scores, then opened examples from those categories in the development material. This let them work from actual cases and see where a general rule might need to accommodate different phrasings or inflections.

After implementing support for common cases in a category, the authors reviewed the checker’s behavior on the examples. The review exposed missed errors and bugs in how rules handled them. The team then added examples to the software’s test suite so that later changes could be checked for regressions. These software tests had a different job from the IceEC test portion. A regression test can preserve the expected behavior for a particular construction. A corpus evaluation describes how the checker performs over a collection of annotations.

The procedure also explains how the roles of the resources fit together. Familiar nonwords and systematic inflection mistakes can suggest entries in configuration files or cases to cover with token rules. Annotated passages can suggest a new error grammar rule or a pattern worth searching for. Standard usage guidance supplies the target form, while the existing morphological and parsing software supplies a way to find it in other sentences. For most of the checker, development means writing and testing those procedures. The large-corpus counting procedure supplies the separate statistical component for local spelling choices.

### Experiments and results

#### What the evaluation gives credit for

The authors approached evaluation through automatic comparison with manual annotations, a closest-gold assessment and trials with journalists. The corpus comparison asks whether GreynirCorrect locates errors as the IceEC annotators did. Closest-gold evaluation gives a human judge a way to use an acceptable output that differs from the original reference correction. The editorial trial examines what happens when someone writes with the checker and responds to a suggestion. The three procedures concern different aspects of the same work, and their units of evidence range from an annotated span to a writer’s decision.

For the automatic evaluation, a span is the portion of a sentence that should be changed. The paper gives an Icelandic example about a year being new. The checker is expected to recognize that the adjective form *ný* should be replaced by *nýtt*. The reference expresses both where the error lies and what should replace it.

```
[2, 3, nýtt]
```

The brackets enclose the reference edit. The first two entries, 2 and 3, are the start and end coordinates of the error span in the paper’s example. The commas separate the entries. The last entry, *nýtt*, is the proposed replacement for the original *ný*.

Span-based detection gives credit when the predicted location agrees with the reference. The replacement can be wrong for this measure. Span-based correction also requires the right replacement. In the paper’s example, a prediction over the correct span that proposes *nýr* instead earns detection credit only at the span level. The paper’s looser token-based measure can give credit even to its example of a differently bounded edit. The main quantitative results use span-based detection, so they describe where the checker finds errors and leave the accuracy of its actual replacements as a separate question.

Precision asks what share of the checker’s flagged errors match the reference. Recall asks what share of the reference errors the checker finds. F0.5 combines these measures with greater emphasis on precision. The authors describe the weighting as giving precision twice the importance of recall and choose it in preference to F1. Their aim is a checker that can assist someone as they write without repeatedly interrupting them with unreliable warnings. The paper specifies the metric and this rationale in prose.

The earlier evaluation literature discussed in the paper also includes GLEU, which uses weighted precision over sequences of words and is related to [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/). The authors cite the CoNLL-2014 and BEA 2019 shared-task data as established English benchmarks with manual annotations. They give a range of 65–76 in F0.5 for leading English systems as orientation for future development. Those results concern other data and systems. The Icelandic experiments use IceEC and the separate closest-gold exercise, and the paper gives no same-corpus system baseline for the full Icelandic checker. The difference between a point of reference and an experimental comparison is especially important in [evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/).

#### Automatic detection against the IceEC test annotations

On the IceEC test material, the checker achieved F0.5 of 73.41 for span-based detection of token-level errors with punctuation excluded. For grammar and vocabulary errors handled at sentence level, the corresponding score was 29.35. The paper reports typo detection at 92.66 F0. 5 and reports that approximately one in three errors at the token level in the test data is a typo. These outcomes are consistent with the development sequence. The team began with token-level coverage and subsequently addressed sentence-level grammar and vocabulary.

The subcategory results help explain what the aggregates contain. In the IceEC test set, typos had a reported precision of 100.00 and recall of 72.86, with a frequency of 210 annotated errors. The high precision describes the reliability of the typo flags under this span-based evaluation. The recall makes clear that the checker still missed some annotated typos. Spacing errors had a frequency of 209 and reached 77.62 F0.5. Their reported precision was 96.89 and recall was 55.50. These two sizable subcategories show how locating a substantial share of common errors can coexist with missed cases even when issued flags are usually right.

Other token-level outcomes were less strong. The spelling subcategory had 60 instances and reached 80.95 F0.5. Capitalization reached 44.86 with 114 instances, and nonwords reached 44.84 with 74. The reported precision and recall profiles of those last two categories were different. For capitalization, precision was 63.26 and recall was 21.93. For nonwords, precision was 48.99 and recall was 74.32. Similar F0.5 results can therefore describe quite different experiences for the writer. One set of warnings may be relatively sparse, while another captures more reference errors and flags more items that the reference does not count as errors.

Punctuation is reported separately from the headline token-level result. It had a frequency of 498 in the test set and a reported F0.5 of 47.56. Keeping this result visible matters because punctuation is part of what writers encounter when using the system. The reported aggregate of 73.41 has the paper’s specific punctuation exclusion. Including punctuation in the description of the implementation and keeping it outside that aggregate are compatible choices, provided that the scope of the score is clear.

Among grammar subcategories, agreement had 76 examples and reached 32.15 F0.5. Preposition errors had 45 examples and reached 22.48. The preposition result pairs a reported precision of 90.22 with recall of 13.33. This is compatible with a checker that recognizes certain preposition errors reliably while leaving most annotated instances in that subcategory uncovered. Case reached 62.50 F0.5, with reported precision of 100.00 and recall of 25.00. The category had a frequency of 4 and consequently provides limited evidence about how the checker would perform across case errors more generally.

Vocabulary shows another range of outcomes. Insertion reached 52.91 F0.5 with 18 examples, collocation reached 54.32 with 15, and semantic errors reached 25.10 with 14. A collocation is a conventional combination of words, so the suitability of the individual words leaves the appropriateness of their combination to be judged. The sentence-level aggregate includes issues of this kind alongside grammatical ones. It measures a mixture of challenges with different kinds of context and different amounts of annotated evidence.

The authors explain why they leave direct comparisons with other Icelandic tools unresolved. Available systems generally cover spelling and often concentrate on the token level, so only part of GreynirCorrect’s behavior would be comparable. Tools and corpora use different error categories. A grammar warning from a broader checker can also complicate the measurement of spelling errors if the two affect the same stretch of text. An aggregate across different capabilities gives little help in establishing which tool is better at a strictly shared task.

#### Judging acceptable alternatives with closest gold

A single corpus reference records one editorial decision. A minimal-edit annotation tries to reach an acceptable sentence while changing as little of the input as possible. There can still be several acceptable choices, and an automatic score may penalize a system that takes a different route. The closest-gold procedure addresses this by starting the human annotator from the checker’s output. The annotator makes as few changes as possible to reach an acceptable version. A correction the system has already supplied can stay if it satisfies the standard, even when an annotator working from the original sentence would have chosen a different edit.

The authors manually annotated system output for 100 sentences from the IceEC development portion using this procedure. They present that assessment beside the original automatic results against IceEC references. At token level, the closest-gold evaluation yielded 86.48 F0.5, alongside the original IceEC score of 73.41. At sentence level, the values were 51.47 and 29.35 respectively. The original results come from the test material, while the closest-gold values come from the development sample. The contrast shows what the paper observed under two evaluation setups whose sentence samples as well as reference construction differ.

GreynirCorrect token-level F0.5 on the IceEC test set and closest-gold development sample The closest-gold assessment reports the higher token-level score.

**The numbers**

| System or setting | F0.5 |
| --- | --- |
| IceEC test references, excluding punctuation | 73.41 |
| Closest-gold development sample (this paper) | 86.48 |

GreynirCorrect sentence-level F0.5 on the IceEC test set and closest-gold development sample The closest-gold assessment reports the higher score for grammar and vocabulary.

**The numbers**

| System or setting | F0.5 |
| --- | --- |
| IceEC test references | 29.35 |
| Closest-gold development sample (this paper) | 51.47 |

The authors read the comparison as evidence that the standard corpus reference can give a conservative picture of the checker’s performance. That interpretation is plausible when several revisions are legitimately available. At sentence level, changes to a phrase or to the choice of words can be particularly sensitive to how the acceptable reference is written. The comparison is best understood as support for checking whether the output is acceptable to an annotator, alongside measuring agreement with a fixed reference.

#### What journalists experienced in use

The team also made the checker part of an online news organization’s editorial environment. Journalists used it while preparing news articles and other items. They could accept a suggested correction or reject it and give a reason. Acceptance served as positive feedback on both the warning and its proposed wording. A rejection invited more detail so that the developers could distinguish a misleading flag from other reasons for declining a suggestion. This distinction matters when an editor agrees that a sentence needs work but prefers a different revision.

Feedback was sent to a database together with the error code and the location of the affected text. The record also included the original span, the suggested replacement and the sentence around it. This gave the developers the context needed to reproduce an issue and inspect what the checker did. Journalists also gave informal feedback. The paper describes bug fixes and changes to the way the checker offered its suggestions, including an option to see the five most likely corrections and choose among them.

The authors report that the journalists generally regarded the tool as beneficial to their editorial workflow. A publicly accessible version, updated during development, brought additional feedback. These observations describe usefulness in an environment where writers retained control of changes. The paper presents the exercise as a source of feedback and reports its practical effect on development. The numerical detection results come from the annotated evaluations.

### What the ablations show

The paper reports no component ablations. Its evidence about the design comes from an early failure in the word-frequency resource, comparisons among kinds of error, a change in the evaluation reference and examples that show how individual rules operate. Each of these observations answers a narrower question about the system.

The strongest direct clue about the importance of corpus preparation came from the first version of Icegrams. The authors encountered cases in which a frequent mistake outweighed the standard form in the frequency data, leading the checker to reverse the intended correction. That failure shows how the statistical ranking can amplify the habits of the texts from which it learns. The team responded by using curated material, correcting token errors and filtering the least frequent sequences. The paper gives the reason for those choices and describes the resulting resource. Their individual effects on F0.5 remain unmeasured.

There is a similar distinction between demonstrating that a mechanism can handle a particular structure and knowing how much it improves aggregate results. The *vanta* example shows how the error grammar reaches a subject across an intervening relative clause. The checker has an identified noun phrase, knows that its case is dative and has a rule requiring accusative in the illustrated construction. This is a concrete account of how the system produces its warning and correction. The example leaves open how many corpus errors would be missed if the special error grammar were disabled, or how often the compound, spelling and parsing components help one another in other cases.

The category results expose differences in precision and recall within the completed system. For instance, high precision paired with low recall for preposition errors is compatible with narrowly specified patterns that work reliably where they apply. The figures alone leave the cause of each missed error open. A pattern could be missing, the parser could select an incompatible analysis, or the resulting warning could cover a different span from the annotation. The paper’s development procedure addresses such questions through inspection of individual examples. Its category results give a reason to inspect the examples in the first place.

Case and agreement also illustrate why a higher category score does not automatically establish greater competence over the underlying phenomenon. The paper observed substantially fewer case examples than agreement examples in the test data. A successful rule for a well-documented construction can have a large influence on the smaller category. Agreement results draw on a larger set of annotated instances, with their own range of constructions and difficulties. A comparison between the categories characterizes observed performance, while sensitivity to particular rules can only be inferred case by case from the paper’s descriptions.

Closest gold varies the way a reference is constructed and gives the completed checker a higher reported score at both levels. This points to the evaluation as one source of apparent error, especially when an annotator accepts a revision different from the fixed reference. The use of a different sentence sample makes it difficult to isolate the magnitude of the reference effect. What the exercise adds is evidence that human judgment of the actual output can reveal acceptable corrections obscured in a standard corpus comparison.

The newsroom trial adds feedback tied to the presentation of suggestions. A writer who receives a single replacement may reject it even when another plausible replacement is available, which helps explain the addition of a selectable list. The tool’s overall feedback led to this option and other changes. The paper leaves the resulting effects on acceptance or editing behavior unquantified. Its contribution here is to connect an observed interaction with a practical change, much as its corpus inspection connects a recurring error with a rule or a test.

### Limitations

#### Limits the authors identify

The authors describe detection as the emphasis of this development phase. They started by widening the coverage of error categories, first at token level and then at sentence level. They identify better corrections, categorization and explanations as priorities for subsequent work. A detection result therefore supports a claim about raising a warning at the annotated location. The quality of the proposed rewrite is a further question, as is the information a writer receives about why it was proposed.

The paper also identifies problems that resist a vocabulary lookup or a narrow rule. Long compounds can be legitimate and absent from both the vocabulary and the trigram data. Analysis of their constituents can help, but the relation in meaning among the parts can be subtle. Flexible word order increases the range of structures that grammar rules must cover. Rich inflection creates competing readings even where the spelling of every individual word is acceptable. These features matter most when several uncertainties coexist, such as a rare compound within a phrase whose role the checker has yet to decide.

Close variants in actual usage give the approach another boundary. The authors use the standard as a guide and give examples of constructions that remain current among speakers. The resulting warning can be apt for a writer seeking guidance on standard Icelandic. Its status is different for a writer preserving a speaker’s form or deliberately choosing an informal register. The paper’s discussion of variants shows why a checker needs a defined target and why some categories of feedback depend on the intended writing situation.

The closest-gold study is explicitly small, and the authors describe it as suggestive. They also explain why the existing spell checkers provide a poor basis for comparing the system as a whole. Capabilities and annotation categories differ, and a broader checker can introduce warnings that complicate scoring on just one part of the task. The English results cited in the paper are an indication of what other work had achieved under other conditions. They supply no matched comparison on Icelandic writing.

#### What the design leaves uncertain

The IceEC test portion supplied reference annotations for automatic evaluation, and the authors also say they used its category scores to direct development. This gave the team a way to locate weak spots. It also means that some development decisions were informed by the test results. The paper does not describe a further blind evaluation on a separate comparable set after those decisions. How closely the reported scores would carry over to fresh writing drawn from a similar population therefore remains uncertain.

The category results also vary in how much evidence lies behind them. A seemingly strong result on a category with few annotated errors is sensitive to how well the checker handles the particular examples selected. The reported frequencies make this visible without requiring a new statistic. The paper gives no uncertainty intervals. The more detailed categories are valuable for finding where to work next, while the precision of any general claim about a rare error type is limited by its support in the test material.

The closest-gold comparison would have a different evidential force if both reference procedures were applied to the same sentences under documented conditions. In the paper, the original numbers come from the test portion and the closest-gold annotations come from development material. Consequently, the improvement associated with accepting alternative corrections cannot be disentangled from possible differences in the kinds of sentences and errors sampled. The strongest reading is that the alternative assessment found more successful output in its sample and that the treatment of legitimate alternative edits warrants attention.

Likewise, the journalistic trial establishes a setting in which the checker was used and broadly welcomed. It supplies concrete examples of feedback making its way into the system. The paper leaves the scale of acceptance, the amount of revision time saved and the consistency of the experience across writers unreported. There is also a small ambiguity in its account of rejection feedback. One explanation describes the original as correct while assigning the detection a positive label. The intended distinction between an unnecessary warning and an appropriate warning with an unsuitable replacement is clear from the surrounding discussion, but the account leaves that particular coding example ambiguous.

The case for applying the procedure in other languages concerns how to build a checker from examples, standards and available linguistic resources. A transfer would depend on the writing population for which errors were collected, the vocabulary and inflection data available, and the coverage of the sentence grammar. Within Icelandic, the paper similarly points to separate corpora for second-language writers, native writers with dyslexia and children. Sharing an annotation scheme makes these resources suitable for a similar development procedure. Performance on those populations remains outside the reported experiments.

### What came after

[Beyond Error Categories: A Contextual Approach of Evaluating Emerging Spell and Grammar Checkers](https://md.research.elamur.ai/free/en/papers/arnardottir-2024-beyond-error-categories-contextual-approach/) (2024) cites the GreynirCorrect paper and takes the context of evaluation as its subject. That emphasis connects with a distinction already visible in the earlier work. An error code can identify the phenomenon under review, while the sentence and the writer’s treatment of the suggestion provide additional evidence about the output. The title establishes the later paper’s focus on contextual evaluation. It leaves the precise evaluation procedure, any reuse of GreynirCorrect or IceEC, and the findings unspecified.

The GreynirCorrect paper also sets out directions for subsequent development. The authors planned to improve the content of corrections and the guidance given to writers, incorporate more confusion sets and standards information, and explore classifiers for difficult error categories. They proposed generating erroneous Icelandic text with a distribution resembling the mistakes they expected to see, then using those examples to develop a system that rewrites incorrect sentences. They also anticipated more sentence-level evaluation to address style and fluency and wider integration into editing environments. These were plans for extending the work reported in the paper.

The resources named for different groups were the Icelandic L2 Error Corpus, the Icelandic Dyslexia Error Corpus and the Icelandic Child Language Error Corpus. The last contains writing by children aged 10–15. They share the IceEC structure and annotation scheme, so the same development process could begin with the errors of the intended writers. That possibility and the later paper’s contextual emphasis both follow questions the original evaluations make concrete. The source of the reference determines which variation is represented, the unit of evaluation determines what counts as a successful warning, and the writing situation helps determine whether a valid suggestion is one the writer can use.

## Cite

Cite as Hulda Óladóttir, Þórunn Arnardóttir, Anton Ingason and Vilhjálmur Þorsteinsson. 2022. Developing a Spell and Grammar Checker for Icelandic using an Error Corpus. Proceedings of the Thirteenth Language Resources and Evaluation Conference.

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

```bibtex
@inproceedings{oladottir2022developing,
  title = {{Developing a Spell and Grammar Checker for Icelandic using an Error Corpus}},
  author = {Hulda Óladóttir, THórunn Arnardóttir, Anton Ingason and Vilhjálmur THorsteinsson},
  booktitle = {Proceedings of the Thirteenth Language Resources and Evaluation Conference},
  year = {2022},
  doi = {10.63317/292h8vjn2edw},
  url = {https://doi.org/10.63317/292h8vjn2edw}
}
```

> 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)
