hunspell-sv 🇸🇪
Svenska
hunspell-sv är en modern svensk ordlista för Hunspell. Den bygger på SFOL och kompletteras med SALDO, Folkets lexikon, SAOL, etablerad IT-terminologi och manuellt granskade svenska FOSS-översättningar.
Installera
Python / PyPI
Installera ordlistans filer med pip:
python -m pip install hunspell-sv
Filerna placeras under Python-miljöns share/hunspell-katalog. Distribuera
dem från systemets paket eller kopiera sv_SE.dic och sv_SE.aff till
Hunspells systemkatalog när systeminstallation önskas. Paketet innehåller också
sv_SE_expanded som ett separat, kompletterande lexikon.
# Linux
sudo cp sv_SE.dic sv_SE.aff /usr/share/hunspell/
# macOS med Homebrew
cp sv_SE.dic sv_SE.aff /opt/homebrew/share/hunspell/
Använd vid översättningsgranskning
En stavningsträff är en granskningssignal, inte ett automatiskt fel. Kontrollera källtext, sammanhang, egennamn och terminologi med l10n-lint, svlang, swedish-foss-terminology och swedish-tm innan text eller ordlista ändras. Lägg inte till ord enbart för att de förekommer i en enskild katalog.
Hunspell avgör inte betydelse eller typografi. Följ även skrivpolicyn: ingen
komma omedelbart före och, svenska citattecken, …, mellanslag före %,
siffergruppering och tankstreck i talintervall. Prefix före | i Crowdin är
metadata och får inte visas i svensk måltext.
English reference
Modern Swedish dictionary for Hunspell spell checking.
Stats
| Metric | Value |
|---|---|
| Dictionary entries | 279 128 |
| Expanded entries | 166 850 |
| Base | SFOL 2.42 (Den Stora Fria Ordlistan) |
| SALDO + Folkets Lexikon | 18 052 words from Språkbanken |
| SALDOM paradigm-mapped | 17 684 words with affix flags |
| Added from TM | 11 552 words (≥3 occurrences) |
| Added Datatermgruppen | 50 IT/tech terms |
| Added SAOL 15 | 43 new words (2026) |
| Added proper nouns | 105 software/brand/place names |
| Added custom terms | 586 from review work |
| Added compound morphemes | 47 for better compound support |
| TM source | 1 207 695 translation memory entries |
| License | LGPL-3.0 |
Sources
- SFOL 2.42 — The main Swedish open source dictionary by Göran Andersson (LGPL-3.0)
- SALDO — Språkbanken's Swedish Associative Thesaurus (18K words)
- SALDOM — SALDO morphology with paradigm-mapped affix flags (18K words)
- Folkets Lexikon — Swedish-English dictionary from KTH
- Datatermgruppen — Official Swedish IT terminology
- SAOL 15 — Latest edition of the Swedish Academy's dictionary
- Translation Memory — 1 207 695 entries from professional Swedish translations across:
- GNOME, KDE, LibreOffice, Mozilla
- Ubuntu, Fedora, Debian
- Weblate, Transifex, Crowdin
- Blender, Inkscape, QGIS, Stellarium, ScummVM
- 3 299 open source projects total
- Full TM available: yeager/swedish-tm
What's different from the standard sv_SE?
The standard sv_SE.dic shipping with most Linux distros and LibreOffice is from 2016–2017. This dictionary:
- Starts from SFOL 2.42 (2020) — 1 500+ more words than the distro version
- Adds SALDO + SALDOM — 35 000+ words from Språkbanken with proper affix paradigms
- Adds 12 000+ words from TM — real words used in Swedish software translations
- Improves compound support — better handling of Swedish compound words
- Includes modern terminology — IT, social media, climate, and tech terms from SAOL 15
Example words added
TM words: lösenfras, meddelandekö, symlänk, filbläddrare, åsidosättning,
fjärrvärd, trädvy, datakällobjekt, rasterkarta, vertexfärg,
färgramp, proxyinställningar, ångringshistorik
SALDO/SALDOM: Full morphological coverage with correct inflections for
18 000+ additional Swedish words
Datatermgruppen: adressikon, bluffwebbplats, funktionalitet,
gränssnittskomponent, spionprogram, tjock klient
SAOL 15: incel, matfattigdom, menstrosa, prompta, tippningspunkt,
influencer, klimatångest, digitalisering, kryptovaluta
Proper nouns: Ubuntu, LibreOffice, systemd, Docker, Kubernetes,
Stockholm, Göteborg, Microsoft, Google, PostgreSQL
Installation
Linux
sudo cp sv_SE.dic sv_SE.aff /usr/share/hunspell/
macOS (Homebrew hunspell)
cp sv_SE.dic sv_SE.aff /opt/homebrew/share/hunspell/
macOS (system-wide)
mkdir -p ~/Library/Spelling
cp sv_SE.dic sv_SE.aff ~/Library/Spelling/
LibreOffice
Copy sv_SE.dic and sv_SE.aff to your LibreOffice dictionaries folder, or install via Extension Manager.
Firefox / Thunderbird
Browser installation requires a separately packaged spellchecker extension.
build.py does not generate .xpi files.
Building from source
The script extends the checked-in main dictionary. It does not download or rebuild SFOL, SALDO, or the historical expanded dictionary from upstream sources.
# Normalize/copy the checked-in dictionary without a TM database
python3 build.py --no-tm --output /tmp/sv_SE.dic
# Add candidates from a local SQLite TM database (translation_memory.target)
python3 build.py --tm-db /path/to/translation-memory.db --min-count 5
# Use a different input dictionary
python3 build.py --base sv_SE.dic --no-tm --output /tmp/sv_SE.dic
# Validate dictionary counts and build behavior
python3 -m unittest discover -s tests -v
The default input and output are sv_SE.dic next to the script, regardless of
working directory. Missing or invalid TM databases stop the build; use --no-tm
to explicitly skip TM. Counts are recalculated, exact duplicate rows removed,
and existing spelling, case and affix flags preserved. Different flag sets for
the same spelling remain separate entries.
TM additions use the existing heuristic (at least five characters, including
å, ä or ö, and the configured occurrence threshold). Review these candidates:
frequency alone is not evidence that a spelling is correct. New entries receive
XY compound flags; inflection flags are not inferred.
Build requirements
- Python 3.8+ (standard library only)
- Hunspell for spelling checks
Dictionary files
| File | Description |
|---|---|
sv_SE.dic |
Main dictionary (279K entries with affix flags) |
sv_SE.aff |
Affix rules file |
sv_SE_expanded.dic |
Historical supplementary dictionary (166,850 entries; still contains affix flags) |
sv_SE_expanded.aff |
Affix and compound rules for the supplementary dictionary |
Review workflow
Use hunspell-sv as one stage in a Swedish localization review, together with l10n-lint, svlang, swedish-foss-terminology and swedish-tm. A reported word is a review prompt: verify the source, context, terminology and proper names before changing a translation or adding a dictionary entry. Do not add a word merely because it occurs in one catalog.
Hunspell does not decide punctuation, typography or meaning. Apply the shared
Swedish style policy separately: no comma immediately before och, Swedish
quotation marks, … for ellipsis, a space before %, appropriate digit
grouping and an en dash for numeric ranges. Crowdin context before | is
metadata and must not appear in the visible Swedish text.
Contributing
Found a missing Swedish word? Open an issue or PR!
Use Språkrådet (Isof) as the primary authority for Swedish language and writing rules; see the language policy and reviewed rule catalogue. SAOL supplements individual spelling and inflection entries, as recommended by Språkrådet. Accepted variants must remain accepted, and context-dependent advice must not become blanket spelling prohibitions. The test suite validates this metadata boundary; interpreting the sources still requires review.
The best way to contribute:
- Translate open source software to Swedish
- Your translations feed into the Translation Memory
- New words are automatically extracted and added to this dictionary
Related projects
- swedish-tm — 777K Swedish translation pairs (TMX + PO)
- swedish-foss-terminology — 326K curated Swedish terms
- TR Quality Dashboard — Live translation quality metrics
License
LGPL-3.0 — same as SFOL/DSSO upstream.
Metadata
Release files for hunspell-sv 2026.10.25
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hunspell_sv-2026.10.25.tar.gz | 2.0 MB | With provenance | Details for hunspell_sv-2026.10.25.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hunspell_sv-2026.10.25-py3-none-any.whl | Python 3 | none | any | Details for hunspell_sv-2026.10.25-py3-none-any.whl |
Total release size: 4.1 MB
Release files / hunspell_sv-2026.10.25.tar.gz
| Download URL | hunspell_sv-2026.10.25.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f90a219c3ec41640e3a8acde4efeb9c264be7a45df86f9c68e05f63cc9640e20
|
|
BLAKE2b-256 checksum How to use checksums |
e2fb8e231a3f84964683d19c2ee960a816849113a88f5610eef0c34518d67867
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logRelease files / hunspell_sv-2026.10.25-py3-none-any.whl
| Download URL | hunspell_sv-2026.10.25-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e02e876450286246355198a56ebe74066f970443a2d00908e9eb6aa52e53326
|
|
BLAKE2b-256 checksum How to use checksums |
07d60d3043e2edc85df4c629cf54ee357fad33784359b9dde9b7a334154e62e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logSecurity for hunspell-sv 2026.10.25
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for hunspell_sv-2026.10.25.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.