---
title: "DaLAJ-GED - a dataset for Grammatical Error Detection tasks on"
description: "DaLAJ-GED turns Swedish learner writing and coursebook sentences into a benchmark for judging acceptability, locating errors, and testing…"
canonical: "https://research.elamur.ai/free/en/papers/volodina-2023-dalaj-ged-dataset-grammatical-error/"
---
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/volodina-2023-dalaj-ged-dataset-grammatical-error/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / DaLAJ-GED - a dataset for Grammatical Error Detection tasks on Swedish

# DaLAJ-GED - a dataset for Grammatical Error Detection tasks on Swedish

Paper · 2023 · Elena Volodina, Yousuf Ali Mohammed, Aleksandrs Berdicevskis et al.

**Authors:** [Elena Volodina](https://md.research.elamur.ai/free/en/authors/elena-volodina/), Yousuf Ali Mohammed, [Aleksandrs Berdicevskis](https://md.research.elamur.ai/free/en/authors/aleksandrs-berdicevskis/), Gerlof Bouma and Joey Öhman · **Year:** 2023 · **Venue:** Proceedings of the 12th Workshop on NLP for Computer Assisted Language Learning · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**3** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4376645520) · [Proceedings of the 12th Workshop on NLP for Computer Assisted Language Learning](https://aclanthology.org/volumes/2023.nlp4call-1/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2023.nlp4call-1.11/)
- [PDF](https://aclanthology.org/2023.nlp4call-1.11.pdf)
- [DOI 10.3384/ecp197011](https://doi.org/10.3384/ecp197011)
- [OpenAlex](https://openalex.org/W4376645520)

Citations: OpenAlex, 2026-10-14.

## Summary

A sentence can be easy to understand and still contain a mistake. A learner writing in Swedish might leave out a required word, for instance, while giving the reader enough information to follow the sentence. DaLAJ-GED gives researchers a way to test whether an automatic system can tell that a sentence of this kind needs a correction. It also records where the problem occurs, what kind of problem it is, and how it was corrected. The official task in SuperLim 2.0 asks for a judgment on the whole sentence. The additional annotations support more detailed tasks in [grammatical error correction and learner language](https://md.research.elamur.ai/free/en/topics/grammatical-error-correction/).

The authors build the incorrect examples from SweLL-gold, a collection of essays by adults learning Swedish. When a learner sentence contains several errors, the authors start from its corrected version and restore a single erroneous segment at a time. The resulting sentences are hybrids. The error comes from learner writing, while the surrounding words can include repairs made by an annotator. Several labels may describe the same segment. The broad categories cover punctuation, orthography, vocabulary, word forms, and sentence structure. For errors involving an omission, the annotated span can be an empty position, with the missing text supplied in the correction field.

The collection contains 44,654 sentences and 753,225 tokens. Its 22,539 incorrect sentences come from SweLL-gold. The 22,115 correct sentences come from SweLL-gold and COCTAILL, a corpus of Swedish coursebooks for adults. The coursebook material was selected to match the distribution of beginner, intermediate, and advanced levels among the incorrect sentences. The records distinguish the source of a sentence and include course level and, for learner writing, the writer’s first language or languages. The development and test sets underwent manual proofreading, and the released data are available in JSONL and TSV.

The paper reports benchmarks for the correct-or-incorrect decision. The highest published Krippendorff’s α is 0.753, shared by KBLab’s Swedish Megatron BERT large and its Swedish BERT base. The large system has the higher accuracy of the pair, 0.877, and the paper identifies it as the overall leader. XLM-RoBERTa large reaches 0.738 in α, while the strongest traditional baseline, a support vector machine, reaches 0.518 with accuracy of 0.758. An always-incorrect baseline illustrates why SuperLim reports agreement as well as raw accuracy. It scores 0.492 in accuracy and −0.340 in α. The benchmark results establish a starting point for sentence-level acceptability. Error location, category assignment, and correction are supported by the release, with their performance left open.

## Deep dive: DaLAJ-GED - a dataset for Grammatical Error Detection tasks on Swedish

DaLAJ-GED turns Swedish learner writing and coursebook sentences into a benchmark for judging acceptability, locating errors, and testing corrections. · about 31 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

#### From learner writing to a repeatable judgment

A teacher examining an essay can use the surrounding paragraphs to decide what a learner intended and which changes would help. An acceptability benchmark asks a narrower question. It presents a sentence on its own and expects a decision about whether it contains an error. That reduction makes many judgments comparable. It also requires the people building the benchmark to decide which mistakes can still be identified when a sentence is removed from its original setting.

DaLAJ-GED addresses this problem for Swedish. Its labels give “acceptability” a concrete meaning within the experiment. A correct example is an example entered as acceptable in the dataset. An incorrect example contains a segment that the annotation identifies as requiring repair. A prediction is scored against that recorded decision. A broader question about how different readers might judge a sentence is a separate empirical matter, since the paper reports no human baseline. The dataset’s operational definition lets the authors both compare systems and trace the reason for an incorrect label back to an annotated change.

Learner essays are valuable for this purpose because they show which expressions people actually produced while learning Swedish. The observation is at the level of the underlying writing. A released incorrect item can differ from the sentence as it appeared in the essay, since the construction procedure can change its other errors. What survives in that item is the error that the authors chose to expose. This distinction matters most when using the material to investigate how errors behave. The dataset gives examples of actual learner mistakes in contexts prepared for sentence-level analysis. The essay corpus contains the original combinations of mistakes.

An essay corpus usually provides material of uneven convenience for a benchmark. Some sentences have several marked changes. Some can only be corrected by changing where one sentence ends and the next begins. Some become clearer in light of an earlier sentence. Starting from an already annotated corpus allows the authors to use those distinctions when selecting examples. A correction attached to an aligned segment provides a much more direct target for a detection task than a sentence identified only as problematic. Correspondingly, the kind of annotation available constrains the kind of evaluation the authors can build.

There is also a practical issue with the acceptable examples. The learner essays supply fewer fully correct sentences than sentences with mistakes. A benchmark built simply by collecting everything available from each category would inherit that imbalance. The authors instead draw on teaching materials to supplement the correct class. Those materials have their own language-level labels, which lets the authors control one aspect of the combination. The decision connects the benchmark’s composition to the language-learning setting, where a beginner course and an advanced course can make different demands on readers and writers.

#### The acceptability benchmarks that preceded it

The paper credits English CoLA with inspiring DaLAJ. The shared idea is to ask whether a sentence is linguistically acceptable and use the answers to evaluate automatic judgment. The authors place that question in a broader family of language-specific evaluations. They name RuCoLA for Russian, NoCoLA for Norwegian, ItaCoLA for Italian, and CLiMP for Chinese. Their comparison concerns how evaluation resources are built and what examples they ask a system to distinguish.

In the authors’ account, most resources in this family use deliberately constructed unacceptable sentences. Constructed examples give a designer direct control over the change used to make a sentence unacceptable. DaLAJ obtains its changes from corrections already attached to learner writing. This means the pool of possible examples is governed by what appears in the corpus and what its annotators can identify. DaLAJ introduces control at a different stage, by choosing which recorded mistake survives in each released item. An item can therefore have a well-defined target edit while preserving an error someone made in an essay.

DaLAJ-GED extends DaLAJ.v1. The paper treats the earlier Swedish releases as the origin of the construction approach and describes the current resource as the official improved version of a dataset previously explored in an experimental setting. The contribution here is a release with a documented division into training and evaluation data, a classification benchmark, and record fields suitable for tasks that go beyond classification. The authors also describe NoCoLA as a follow-up to the earlier DaLAJ approach. Its source was ASK, a corpus of writing by learners of Norwegian. The relationship concerns how a learner corpus can supply material for acceptability judgments.

The institutional setting is SuperLim, which the paper describes as the Swedish counterpart of the English SuperGLUE evaluation collection. DaLAJ-GED appears in the expanded SuperLim 2.0 release. Joining that collection gives its sentence-level acceptability task a common evaluation setting alongside other tasks in Swedish. In the paper’s broader account, resources like these also address the concentration of language technology evaluation on English. A task with Swedish data and fixed splits can serve both people studying Swedish and people investigating whether methods developed for one language transfer to another.

For computer-assisted language learning, the practical motivation extends beyond the binary benchmark. A correct-or-incorrect decision can tell a learner that a sentence warrants attention. Locating the error would tell the learner where to look. Assigning a category would help distinguish a word-form problem from a vocabulary or sentence-structure problem. Producing a correction would give the learner a possible revision to examine. These are different outputs even when they concern the same sentence. By preserving the original correction annotation in usable fields, DaLAJ-GED makes it possible to formulate those tasks separately.

#### Why the unit of evaluation matters

An error that takes up little space on the page can still require a sentence-level judgment. Conversely, a mistake in a long sentence may involve a relationship between words, instead of an isolated spelling. The authors’ definitions account for this by distinguishing the sentence as the item presented to the system from the segment to which the correction is attached. A span records where the annotator made the change. The error category records how the annotator interpreted it. These are distinct pieces of evidence about the same item.

The authors also distinguish work at the sentence level from related Swedish resources made from SweLL-gold. Swedish MultiGED addresses token-level detection, while Swedish Mu-ClaGED concerns token-level error classification. A token-level task makes individual text units the focus of prediction. DaLAJ-GED presents whole sentences and can ask for a decision on the complete item, or for a segment within it. The resources are related through the corpus and the general aim of studying learner errors, with their units of evaluation determining what an experiment can ask.

### The method, step by step

#### Begin with essays and their corrected versions

SweLL-gold supplies the errors. It contains 502 essays by adult learners of Swedish, with writers attending beginner, intermediate, or advanced courses. The authors report 81 distinct first languages across 117 different combinations of 1–4 languages. A combination represents the languages associated with a writer. It is possible to have several first languages recorded for a single learner, so treating every record as if it had one language would lose information already present in the corpus.

The essays span assignments such as describing a home, discussing marriage and other ways of living, and reviewing books or films. This matters to the construction because the original setting supplies the vocabulary, topics, and sentence patterns around the errors. The corpus also supplies corrected versions of the essays. The corrections were produced after the essays had been pseudonymized. The annotated differences between a learner version and a corrected version record where the two diverge and what kinds of change were made. In the paper’s terminology, the corrected text is the normalized version. [Linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/)

The normalized text gives the authors a starting point for building an example around an individual error. With the corrected sentence in hand, they can restore an original learner form at the place where a correction was made. That procedure depends on being able to identify which sentence in the learner text corresponds to which corrected sentence. It also depends on having a correction whose scope and label make sense for the sentence as a stand-alone item. The authors apply several filters before and during construction to meet these conditions.

From annotated Swedish essays to DaLAJ-GED The steps in order.

#### Keep sentence pairs with clear boundaries

The first selection concerns whether the sentences can be paired. A learner may write a stretch of text as a single sentence that an annotator divides into several sentences. The reverse can occur when a correction joins material the writer separated. The paper illustrates the splitting case with a mock-up in which one original sentence corresponds to five corrected sentences, a 1-to-5 relation. The label P-Sent identifies a punctuation correction that leads to a change in sentence boundaries.

The authors retain 1-to-1 sentence correspondences. Here the same unit of text can be identified as a sentence on both sides of the correction. This makes it possible to take the corrected sentence as a working base and restore an original segment without first deciding what to do with the neighboring material. The sentence split illustrated in the paper would require a different kind of item. Its correction changes how many sentences the passage contains, while the records in DaLAJ-GED are organized around one sentence at a time.

This is a condition on sentence alignment. It permits differences in the content and length of a pair. A corresponding corrected sentence can include a word absent from the original or omit an unnecessary word. It is the existence of one unambiguous sentence on each side that makes these edits usable within the procedure. In that sense the method uses alignment at two scales. The sentence correspondence identifies a suitable pair, and the correction annotation within the pair identifies the actual change to restore.

The authors also remove sentences containing the labels X and Unid. X marks text that annotators could not understand, while Unid indicates that the correction could not be assigned an identified type. These labels signal different difficulties. In the first case, the interpretation of the source wording is at issue. In the second, there is no identified category for the change. Excluding both gives the release a closer fit to its intended use, where the incorrect side is meant to have an interpretable target and an error label that describes it.

#### Restore an original mistake in an otherwise corrected sentence

For a sentence with several separately annotated errors, the authors generate variants by restoring original errors one segment at a time. Each variant starts from the normalized sentence. It reinstates the learner’s original text for the selected segment, with the other corrections still in place. If the learner’s mistake was an omission, reinstating it means leaving out the relevant material. The result is an incorrect sentence in which the annotation identifies a particular place to repair.

This changes the relationship between sentences in an essay and items in the release. An original sentence with several usable error segments can supply several items. The items share the corrected base sentence, and each retains a different original problem. The entire collection’s sentence count therefore counts benchmark examples. Someone using those counts to describe how much learner writing was collected would be asking a different question from someone using them to describe how many judgments can be scored.

The method gives the authors a useful compromise for detection. An original sentence with errors in several places can require several spans as an answer. Here the input already has the other known problems repaired. That lets a span-level task focus on one annotated segment, including a segment that comprises several tokens. It also means the restored error can be presented in a somewhat different context from its occurrence in the essay. The paper calls these examples hybrid because the restored material is learner-authored and the rest may reflect normalization.

A single segment can carry several error labels. The paper illustrates this with `Jag i Stockholm borr`. The form `borr` exhibits a spelling problem and is also implicated in the positioning of the finite verb. A finite verb is the verb form that carries the clause’s grammatical marking for tense or a related distinction. The annotations for the segment include O, the orthographic tag, and S-FinV, the tag for the placement of the finite verb. Where there is a cluster of labels on a segment, the authors project the cluster together.

The distinction between segments and labels keeps the procedure coherent. An item with a cluster still has one location to detect. Its description can legitimately refer to more than one kind of error. A detector could consequently identify the right location while supplying an incomplete error description. A sentence-level classifier can get the entire item right by identifying it as incorrect, regardless of whether it distinguishes the spelling and word-order aspects. The dataset stores the information needed to tell these prediction problems apart.

#### Resolve changes made for consistency

The label C marks consistency corrections inherited from SweLL-gold. It is used when one change follows from another change. The paper’s example begins with `I slutligen`, containing an erroneous preposition at the start of the sentence. Once the preposition is removed, `slutligen` becomes the first word and requires capitalization. In the full correction of the essay, the lower-case-to-upper-case change can be understood in relation to the removal that preceded it.

When a sentence is repackaged around a single error segment, the general C label may describe the history of the editing without telling the reader what remains wrong. The authors reviewed these cases in post-processing. They removed some sentences and assigned a more specific label to others. For the capitalization of `slutligen`, O-Cap identifies the visible orthographic issue directly. The change in labeling makes the annotation interpretable when the preceding editorial decision is unavailable.

This review shows that dataset construction involves more than copying corrected strings and offsets from the source corpus. The corrected text was annotated for one purpose, to mark changes made to learner essays. The new resource uses those changes to support judgments about separate sentences. A label that makes sense when neighboring edits can be inspected may become less informative once an edit has been isolated. Retaining a reason for the correction required some judgments about which annotations could travel with the sentences in their new form.

#### Add correct examples at comparable teaching levels

The acceptable side draws on correct SweLL-gold sentences and on COCTAILL. The latter is a corpus of textbooks used to teach Swedish to adults learning it as a second language. Its texts include stories, dialogues, informational writing, and instructions. The different kinds of material supply examples of acceptable sentences at the levels taught in the books. They also have a different route into the resource from the incorrect examples, which begin as annotated pieces of learner work.

The coursebook labels start at the chapter level. Each chapter is associated with a level from the Common European Framework of Reference, and that label is inherited by the texts in the chapter and then by their sentences. For assembly of DaLAJ-GED, the authors group A1 and A2 under beginner and B1 and B2 under intermediate. C1 represents advanced, because COCTAILL has no C2 material. The paper describes the mapping to the three broad course bands as approximate.

The authors selected coursebook material to preserve the distribution of the proficiency bands found among the incorrect items. This choice addresses class balance and the representation of course levels together. If all supplementary correct examples came from one level, the benchmark would couple the correctness label with course level in an obvious way. Matching the proportions makes the intended comparison more even along that dimension. The published level field still refers to the learner’s course or to the chapter from which a coursebook sentence came. Those are different ways of assigning the same broad band.

The incorrect examples were divided into training, development, and test sets, in proportions the paper describes as roughly 80:10:10. The authors manually proofread the development and test material and describe supplementing the incorrect sentences with correct coursebook material. The released sentence order is randomized to prevent recovery of the original essays from their sequence. This was a condition for sharing the resource openly. The fact that ordering is randomized concerns the presentation of items. It does not specify the unit used to decide which items went into which partition.

#### Represent an error as a place and a change

Each record contains the sentence and a label indicating whether it is correct or incorrect. For an error, the record can identify the start and stop of the affected segment, the text occupying that segment, the replacement string, and the error category or categories. It also carries the teaching level and data source. Learner examples have a field for the writer’s first language or languages, with the language names given in Swedish. That field describes the source of the learner text. It is independent of Swedish being the language of the sentence.

To explain the fields, the example poses a question about whether something truly matters more than anything else in life. The Swedish input is `Är de verkligen viktigaste i livet?`. The form `viktigaste` needs the determiner `det` in this context. The dataset’s target is `Är de verkligen det viktigaste i livet?`. The correction field holds `det`, while the field for the incorrect string is empty. The case illustrates why an annotation scheme for detection needs to accommodate an error without an offending word on the page.

```
[16, 16) → M
```

In this example, the first `16` is the start character index and the second `16` is the stop character index. The paper counts characters from `0`. The opening bracket means the start is included and the closing parenthesis means the stop is excluded. With identical endpoints, the range identifies an empty position at index `16`. The arrow associates the indicated segment with its category, and `M` is the code for [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/).

A zero-width span and an empty incorrect string describe the same omission from different perspectives. The span locates it in the sentence, and the string records that there is no existing material to replace there. The correction field states which material is missing. The example’s course level is `Fortsättning`, the intermediate band, and its first-language field contains `Polska`, Swedish for Polish. The source field places the sentence on the learner side of the collection. Together these fields show how the record combines an annotation of the error with information about how the sentence entered the dataset.

The broad error categories are summarized as POLMS. P is punctuation, O is orthography, L concerns vocabulary, M is morphology, and S is syntax. Punctuation covers problems involving marks or their placement. Orthography concerns written forms, as in the spelling and capitalization examples. The lexical category addresses choice of vocabulary. Morphology concerns grammatical forms, and syntax concerns how words and phrases are arranged. These definitions help explain the distinctions at the top level. The examples also show that different categories can bear on the same segment.

The authors distribute the data as part of SuperLim 2.0, principally in JSONL, with a TSV version as well. JSONL represents records as objects on separate lines. TSV arranges fields in columns separated by tabs. The two formats expose the annotated material for the same tasks. Their representation of sentence labels and error fields lets readers distinguish an acceptable record from an incorrect one whose source span is empty because the correction is an insertion.

#### Use different fields for different tasks

In the official task, the input is a sentence and the output is its acceptability label. A prediction is complete once it chooses correct or incorrect. This is binary [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). In the paper’s Swedish omission example, the answer is simply incorrect. The correct classification gives no information about whether the system noticed the absent determiner or relied on some other feature of the sentence.

The detection task uses the coordinates of the error. For the same example, the expected answer locates the gap in the sentence. The indices are character indices, even though the affected material in other cases can be described in terms of words or tokens. Keeping that distinction matters when the input has been segmented into pieces for processing. An internal representation of the text can divide it one way, while the answer must point back to the original character span. [Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/)

The category task adds a linguistic description of the error. The example assigns M to the gap. An error such as the finite-verb example can have a cluster of applicable labels associated with the same segment. The paper refers to the task as multi-class detection, and the record design also preserves cases with several labels. This permits a distinction between finding a segment that needs attention and explaining all the problems the annotation associates with it.

In grammatical error correction, the output is a corrected sentence. Inserting `det` produces the annotated target in the omission example. The correction task therefore uses information beyond the binary label and the boundaries: it has to recover the revised wording. DaLAJ-GED provides the source sentence, local edit, and recorded repair to formulate that task. The experimental portion of the paper uses the binary task, so the other outputs illustrate what is supported by the data rather than additional benchmark measurements.

### Experiments and results

#### What was available for training and evaluation

The final collection comprises 44,654 sentences, with 22,115 labeled correct and 22,539 labeled incorrect. The paper counts 753,225 tokens across those sentences. The approximate allocation described in the method yields a large training partition and smaller development and test partitions. The release reports class totals and token totals for each partition, which make it possible to see how the balance in the full collection carries over to the actual evaluation material.

| Split | Correct sentences | Incorrect sentences | Total sentences | Total tokens |
| --- | --- | --- | --- | --- |
| Train | 17,472 | 18,109 | 35,581 | 603,625 |
| Dev | 2,424 | 2,278 | 4,702 | 77,251 |
| Test | 2,219 | 2,152 | 4,371 | 72,349 |

The training partition has more incorrect than correct sentences. The development and test partitions each have more correct than incorrect sentences. This detail matters for interpreting the baseline named “Majority label (incorrect)” in the paper. Incorrect is the more common label in training and in the collection overall. Predicting it everywhere means making the same decision on the test cases where correct is more frequent. The low accuracy of that rule is therefore consistent with the reported composition of the evaluation data.

The task over these sentences is acceptability judgment, with a single label predicted per input. The error category is part of the resource, but no category prediction is required for this score. Similarly, the predictor can assign the correct class without returning the span coordinates or generating a repair. The empirical comparison concerns how reliably systems reproduce the dataset’s distinction between acceptable sentences and the hybrid sentences marked as containing an error.

#### How the initial systems were trained

The paper compares pretrained [transformers](https://md.research.elamur.ai/free/en/concepts/transformer/) with traditional supervised methods and simple baselines. For the transformer systems, training had already produced a general-purpose representation of text. The authors adapt each system to the benchmark by training it on the labeled sentences with a binary classification objective. This stage is [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/).

Training uses the training split, and the development split guides early stopping and coarse hyper-parameter selection. Early stopping uses development behavior to decide when to finish training instead of requiring every run to use its full epoch allowance. A hyper-parameter controls the learning process itself. The search permits the experimenters to compare some choices while leaving the rest at the Hugging Face defaults. The paper states that the settings explored were inspired by RoBERTa.

The learning-rate candidates are `1e-5`, `2e-5`, `3e-5`, and `4e-5`. The learning rate sets the scale of the adjustments during training. The batch-size candidates are `16` and `32`, which control how many examples are grouped for an update. The paper specifies `0.06` for the warmup ratio, the share used to bring the learning rate up at the start, and `0.1` for weight decay, a setting that discourages large parameter values. The maximum is `10` epochs. An epoch is a pass over the training data. Those numbers describe the fine-tuning configuration, separate from the earlier pretraining runs.

Among the traditional approaches, the paper reports a support vector machine, a decision tree, and a random forest. A support vector machine learns a decision boundary in a feature representation. A decision tree assigns a label by following a series of feature tests. A random forest combines predictions from a collection of trees. The table includes a random prediction baseline and the fixed incorrect-label baseline. The paper identifies scikit-learn as the implementation library for the traditional systems and reports that the source code and instructions for reproducing the benchmarks are public. The pretrained systems are publicly available through Hugging Face.

#### What the two scores measure

Accuracy is the fraction of prediction decisions that match the recorded label. This makes it easy to interpret as a measure of performance on a collection of examples. It also allows a system that predicts only one label to receive credit whenever that label happens to be correct. The amount of credit in this case is determined entirely by the prevalence of the chosen class in the evaluated data.

SuperLim’s primary score is Krippendorff’s α, which the authors explain as a measure of agreement. A value of 1 corresponds to perfect agreement. A value of 0 is the chance reference, and clearly negative values indicate systematic disagreement. The scores in the paper compare the predicted labels with the dataset’s labels. Because α evaluates agreement in relation to chance, it distinguishes between systems that achieve similar accuracy while using the labels in very different ways.

That difference is consequential for the weakest reported baselines. An accuracy near the midpoint can reflect guesses distributed across the classes, a policy of always predicting one class, or a learned rule that tends to choose one label too frequently. The α results make the fixed or badly skewed prediction strategies more apparent. The authors include both metrics so readers can see the familiar proportion correct alongside the agreement score used for the official comparison.

#### The strongest results on acceptability

The paper identifies KBLab’s Swedish Megatron BERT large system as the best overall result. It reaches 0.753 in Krippendorff’s α and 0.877 in accuracy. KBLab’s Swedish BERT base reaches the same published α, 0.753, with accuracy of 0.876. The table therefore shows a tie at the reported precision on the primary metric. The star in the chart identifies the system that the authors single out as the overall leader, whose reported accuracy is also the highest.

Transformer systems on DaLAJ-GED acceptability by Krippendorff’s α The leading Swedish systems share the highest reported agreement, with XLM-RoBERTa large close behind the leading group.

**The numbers**

| System or setting | Krippendorff’s α |
| --- | --- |
| KBLab Swedish Megatron BERT large (this paper) | 0.753 |
| KBLab Swedish BERT base new | 0.753 |
| AI-Nordics Swedish BERT large | 0.745 |
| KB Swedish BERT base | 0.740 |
| XLM-RoBERTa large | 0.738 |
| KBLab Swedish Megatron BERT base | 0.718 |
| XLM-RoBERTa base | 0.701 |
| NbAiLab Norwegian BERT base | 0.644 |

AI-Nordics’ Swedish BERT large records α of 0.745 and accuracy of 0.872. KB’s Swedish BERT base records 0.740 in α and 0.870 in accuracy. The multilingual XLM-RoBERTa large records 0.738 and 0.869 on those respective measures. It falls just below these Swedish systems while scoring above the Swedish Megatron BERT base, which reaches α of 0.718 and accuracy of 0.860. The chart consequently supports a tendency in favor of Swedish pretraining across the reported comparison, with differences among the individual systems.

XLM-RoBERTa base scores 0.701 in α and 0.851 in accuracy. The Norwegian NbAiLab BERT base reaches 0.644 in α and 0.822 in accuracy. These entries expand the language and size comparisons beyond the systems at the top. A Swedish base configuration ties for the best displayed α. A multilingual large configuration outperforms some of the base configurations. The observed ordering therefore depends on which configurations are compared as well as on the general pretraining categories.

The descriptions of the leading systems help explain what varies across the rows. The large KBLab system, `KBLab/megatron-bert-large-swedish-cased-165k`, has 340M parameters. Its pretraining used 165K steps and a batch size of 8K. The paper describes its approximately 70GB of text as consisting mainly of OSCAR and Swedish newspaper material curated by the National Library of Sweden. Those are settings for creating the pretrained system. The binary acceptability fine-tuning uses the dataset and the search procedure described above.

The paper describes `AI-Nordics/bert-large-swedish-cased` as having the same size, with 600K pretraining steps and a batch size of 512. It used about 85GB of internet data from various sources. The other Swedish system described in detail, `KB/bert-base-swedish-cased`, used 15-20GB of material from National Library holdings and internet data. Its pretraining began with 1M steps at sequence length 128 and batch size 512, and continued for 100K steps at sequence length 512 and batch size 128. The results put these systems on a shared classification task after pretraining histories that differ in several respects.

#### Traditional baselines and one-sided predictions

The support vector machine is the strongest traditional baseline at 0.518 in α and 0.758 in accuracy. The decision tree reaches 0.269 and 0.636. Both scores separate those methods from the fixed-label rule. They also leave a clear gap between the strongest traditional baseline and the reported transformer systems. Even the lowest-scoring transformer entry, the Norwegian BERT base, registers higher agreement and accuracy than the support vector machine.

Reference and traditional systems on DaLAJ-GED acceptability by Krippendorff’s α The support vector machine leads the traditional methods, while random forest and the fixed-label rule score below chance agreement.

**The numbers**

| System or setting | Krippendorff’s α |
| --- | --- |
| KBLab Swedish Megatron BERT large (this paper) | 0.753 |
| Support vector machine | 0.518 |
| Decision tree | 0.269 |
| Random | 0.007 |
| Random forest | -0.312 |
| Majority label, incorrect | -0.340 |

The random baseline has accuracy of 0.503 and α of 0.007, near the chance reference for agreement. The random forest has accuracy of 0.498 and α of −0.312. The always-incorrect rule has accuracy of 0.492 and α of −0.340. The closeness of their accuracies conceals a sizable distinction in the agreement measure. The authors attribute the negative α results of the bottom systems to pronounced overprediction of a single label.

For the fixed-label baseline, the behavior follows directly from the rule. Every incorrect example yields a matching prediction and every correct example yields a mismatch. The resulting accuracy provides a useful reference for a collection whose classes are close in size. An agreement score adds information by exposing how one-sided those predictions are. For the random forest, the paper’s diagnosis likewise concerns the label distribution. The aggregate scores alone give no account of which linguistic phenomena it identified successfully.

Overall, the experiment gives a baseline for supervised acceptability judgments on the release. Systems adapted from pretrained transformers produce the best numbers across both measures. The authors take the outcomes as evidence that the dataset has sufficient size and quality to support this kind of training. Their results quantify agreement with the recorded labels for this benchmark. The paper gives no corresponding figures for error span detection, classification of error types, or reconstruction of the corrected sentence.

### What the ablations show

The paper reports no formal ablation study and instead offers comparisons among system families, pretrained configurations, and scoring measures.

The most direct comparison is between systems fine-tuned for the task and the traditional or trivial baselines. All are evaluated on the same acceptability decision, so the table can answer which approaches supplied stronger reference results for DaLAJ-GED. The group of transformer systems consistently scores above the traditional group in the published comparison. A fully controlled ablation would hold an approach fixed while removing or altering a component. Here the systems differ in their representations, training histories, and learning procedures. The observed gap supports the comparative benchmark result and leaves its underlying causes bundled together.

Comparison within a named family narrows the question. XLM-RoBERTa large has α of 0.738 and accuracy of 0.869, compared with 0.701 and 0.851 for XLM-RoBERTa base. The Swedish Megatron BERT entries show the same direction. The large entry has α of 0.753 and accuracy of 0.877, and the base entry has α of 0.718 and accuracy of 0.860. These pairs support the authors’ observation that larger configurations usually perform better. The large and base entries also represent pretrained systems with their own histories, so the comparison measures the available configurations as a whole.

When the comparison is extended across families, the ordering is less simple. KBLab’s Swedish BERT base matches the reported α of the overall leading large system. Its 0.876 accuracy is also near the large system’s 0.877. The result matters because a coarse comparison based only on the words “base” and “large” would miss an entry that performs at the top of the table. The evidence for a size tendency comes from the observed system pairs and rankings. It does not provide a measured gain attributable to changing parameter count in isolation.

The paper also compares systems pretrained for Swedish with multilingual systems. Its leading results come from the Swedish group, and the strongest multilingual configuration falls below that leading group on the reported measures. The comparison includes a useful exception to a blanket ordering. XLM-RoBERTa large exceeds the Swedish Megatron BERT base. Language coverage is one property of the systems, alongside capacity, corpus composition, and the amount and schedule of pretraining. The results let readers compare their combined effects in these configurations.

A separate comparison holds the predictions fixed and changes what is measured. Accuracy and α tell much the same story for the higher-scoring systems. The lower-scoring group exposes why the measures can come apart. The random baseline is close to chance agreement, while the random forest and always-incorrect baseline have strongly negative α values despite having accuracies in the same vicinity. Changing the metric reveals the penalty for one-sided labeling. In this part of the analysis, the point is about what the measurement captures, since the same classifiers and predictions underlie the two columns.

The construction method supplies a further set of potentially relevant factors, though the paper does not vary them experimentally. Proofreading, isolating one error segment, removing the cases with difficult alignments, and supplementing the acceptable class are all part of the one benchmark tested. The reported numbers consequently apply to their joint outcome. For example, the results provide no score for the same systems on original sentences with all learner errors retained, and no paired comparison with a version built entirely from SweLL-gold. The design decisions can be explained from the annotation and class balance objectives. The paper gives no separate estimate of how each decision changes predictive performance.

The same distinction applies to linguistic categories. The record format supports an analysis of punctuation, spelling, vocabulary, word forms, and syntax. The experiment aggregates incorrect examples into a single class. It establishes which systems perform best at that aggregate judgment. It does not establish that a system’s success is distributed evenly across categories, whether the Swedish-pretrained systems have a particular advantage on one kind of error, or how often a correct judgment coincides with finding the annotated span.

### Limitations

#### Limits identified by the authors

The authors explicitly discuss pseudonyms inherited from SweLL-gold. In the learner essays, anonymization introduced forms such as `D-stad` and `A-linje`. These preserve the role of the entity while obscuring identifying details. The paper suspects that strings with this form can interfere with automatic processing. It suggests representing them with more realistic-looking names, some of them invented, and gives alternatives for several types of place or institution. The benchmark results contain no comparison that quantifies the effect of those replacements. Their benefit is a proposal from the authors.

The authors also identify a human baseline as a worthwhile next comparison. All published scores are for automatic classification and simple reference rules. A human evaluation could show how frequently readers agree with the recorded labels when they make judgments from the same isolated sentences. In particular, it could help put disagreements into context where the original essay or the normalization decision would clarify an item. The paper reports manual proofreading of the evaluation data, which concerns preparation of those items. It does not provide a human performance score obtained by asking readers to solve the benchmark independently.

The authors distinguish the present release from work on generating feedback and correcting learner text in a larger, authentic context. In the benchmark, one sentence supplies the input and one segment supplies the target of an incorrect example. A response to a learner may need to decide how to explain the issue and which repair best preserves an intention expressed elsewhere in the essay. The authors identify datasets for those broader settings as future work. The scope here is a sentence-level resource with recorded corrections.

They also describe cross-language transfer as a potential use. A researcher could take an approach developed for another language and evaluate its Swedish acceptability judgments using these data. In the reported experiments, the systems are fine-tuned on the Swedish training split. The results compare different pretrained starting points under that setup. They leave performance without Swedish task-specific training, and performance after transferring an error detector or corrector from another language, as separate questions.

#### Limits that follow from the setup

The first constraint is the treatment of authentic writing. SweLL-gold supplies original errors, but DaLAJ-GED presents many of them surrounded by text that has already been corrected. This isolates the target well for evaluating local decisions. It also limits what can be concluded about essays in which several errors interact. The nearby mistakes that an automatic system would encounter in the original essay can be absent in the benchmark variant. A result on the release therefore describes performance on the hybrids and should be interpreted in light of that construction.

Selection also changes which original errors can occur in the benchmark. A correction that changes sentence boundaries fails the 1-to-1 condition, and examples with X or Unid are removed. Difficult consistency corrections may be excluded or given a more precise category. This favors cases with a usable sentence correspondence and an interpretable target. For a system intended to process whole essays, the excluded situations can still be part of the job. The benchmark does not measure how that system handles text whose correction requires reorganizing sentence boundaries or first resolving an unintelligible form.

A second constraint is the relationship between class and source. The incorrect examples all derive from the learner essays. The acceptable examples include material from the coursebooks. The level matching accounts for the proportions of beginner, intermediate, and advanced material. It does not establish that learner essays and coursebooks are otherwise alike in vocabulary, style, or genre. A classifier might draw some predictive evidence from source-related cues. This is a possibility raised by the mixture of sources, not an effect measured in the paper. The published aggregate scores provide no estimate of how much the sources contribute to the decision.

The level matching is also approximate in a specific way. A learner sentence inherits information about the course in which the essay was written. A textbook sentence inherits the label of its chapter, later mapped into a broader band. These labels make it possible to control the balance at the level reported by the authors. They do not establish that two sentences sharing a band have the same linguistic difficulty, or that the band provides a direct assessment of each learner’s individual ability. Results broken down by those labels would need to be interpreted as comparisons using the recorded course and chapter designations.

Several benchmark examples can descend from the same original sentence. Such variants share much of their wording. The paper describes the proportions of the splits and the random order of the release. It does not say whether variants from the same original, or essays by the same writer, were grouped when assigning partitions. There is consequently no basis for asserting either that related items cross partitions or that grouping eliminated the possibility. For interpreting the reported classifications, this is an unresolved detail about the independence of the evaluation material.

The basic accuracy and agreement scores give the clearest picture at the level for which they are reported. A system can get a correct acceptability label without recovering the annotated location, the category, or the intended correction. The aggregate figures also leave performance across course levels, first languages, and error categories unquantified. Those fields and labels make more detailed evaluation possible. Their presence in a record provides no corresponding evidence that the reported systems work equally well across the groups or solve the more demanding tasks.

Finally, the training comparisons are comparisons among available pretrained systems using a shared classification task and a coarse search. The paper reports the scores displayed in the benchmark table. It does not report run-to-run variation around the closely spaced results, and it does not experimentally isolate training corpus, system size, or language mix. The overall leader can be identified by the published figures and the authors’ account, while the shared α of 0.753 remains the appropriate description of the top result at the displayed precision. The broader conclusion is that the tested transformers produce stronger sentence-level results than the traditional baselines in this setup.

### What came after

No subsequent study is documented as extending or evaluating the DaLAJ-GED release. The follow-up described in the paper concerns the earlier DaLAJ construction approach. NoCoLA applies that approach to Norwegian using the ASK learner corpus. It shows how the underlying design can be carried to another language with annotated learner material. The account establishes a connection to the earlier method, with no reported reuse of the finished Swedish benchmark.

The Swedish MultiGED and Mu-ClaGED datasets are companion resources derived from SweLL-gold. The former makes detection a token-level task, and the latter uses that level for error classification. They illustrate two other ways to turn the corpus’s annotations into evaluation targets. The paper’s proposed next step is to preserve more of the writer’s context when preparing material for feedback and correction. Whether those broader tasks benefit from the controlled sentence-level examples in DaLAJ-GED remains an open question.

## Cite

Cite as Elena Volodina, Yousuf Ali Mohammed, Aleksandrs Berdicevskis, Gerlof Bouma and Joey Öhman. 2023. DaLAJ-GED - a dataset for Grammatical Error Detection tasks on Swedish. Proceedings of the 12th Workshop on NLP for Computer Assisted Language Learning.

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

```bibtex
@inproceedings{volodina2023dalaj,
  title = {{DaLAJ-GED - a dataset for Grammatical Error Detection tasks on Swedish}},
  author = {Elena Volodina, Yousuf Ali Mohammed, Aleksandrs Berdicevskis, Gerlof Bouma and Joey Öhman},
  booktitle = {Proceedings of the 12th Workshop on NLP for Computer Assisted Language Learning},
  year = {2023},
  doi = {10.3384/ecp197011},
  url = {https://doi.org/10.3384/ecp197011}
}
```

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