Skip to content

Commit da4c68b

Browse files
Napamblopker
andauthored
Add Norwegian dictionary (#239)
Co-authored-by: Bo Lopker <blopker@users.noreply.github.com>
1 parent 3444dde commit da4c68b

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ Project-specific configuration is loaded from either `codebook.toml` or `.codebo
277277
# - Vietnamese: "vi_vn"
278278
# - Polish: "pl"
279279
# - Ukrainian: "uk"
280+
# - Norwegian: "nb_no", "nn_no"
280281
dictionaries = ["en_us", "en_gb"]
281282

282283
# Custom allowlist of words to ignore (case-insensitive)

crates/codebook/src/dictionaries/repo.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,16 @@ static HUNSPELL_DICTIONARIES: LazyLock<Vec<HunspellRepo>> = LazyLock::new(|| {
149149
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/uk/index.aff",
150150
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/uk/index.dic",
151151
),
152+
HunspellRepo::new(
153+
"nb_no",
154+
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/nb/index.aff",
155+
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/nb/index.dic",
156+
),
157+
HunspellRepo::new(
158+
"nn_no",
159+
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/nn/index.aff",
160+
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/nn/index.dic",
161+
),
152162
HunspellRepo::new(
153163
"pt_pt",
154164
"https://raw.githubusercontent.com/streetsidesoftware/cspell-dicts/refs/heads/main/dictionaries/pt_PT/src/hunspell/Portuguese-European.aff",

0 commit comments

Comments
 (0)