Developer releases a model that scores Swedish grammar
Xuehai Wang published a 124-million-parameter model on November 22 that gives Swedish text a grammar score between zero and one.

The release contains a 496 MB weights file and a calibration file, along with the tokenizer that converts text into inputs the model can read.
Wang adapted a Swedish BERT checkpoint first published by KBLab at the National Library of Sweden. The model looks for signs of grammatical errors in pieces of text and combines them into a single score. It rates a passage rather than rewriting it or telling the reader how to fix a sentence. The release lists the weights under Creative Commons Attribution 4.0, and the companion code repository describes how to score text locally.
In a developer-reported evaluation on 120 publicly available benchmark texts, the model achieved a rank correlation of 0.825 with the reference scores. That measures how closely the rankings matched, not the share of sentences it scored correctly. Wang says older spelling, some regional constructions and some differences in subordinate-clause word order remain difficult for the model.
The release gives Swedish-language software a way to flag passages for a closer look without asking a larger generative model to rewrite them. The reported limitations matter where a regional or historical form could be mistaken for an error.
Sources and citations
Revision history
Published . No corrections recorded.