From d689eca236f78c3ac43cc079fd3a473cfa4bb221 Mon Sep 17 00:00:00 2001 From: Naphat Amundsen Date: Mon, 30 Mar 2026 15:10:15 +0200 Subject: [PATCH] Add Norwegian dictionary --- README.md | 1 + crates/codebook/src/dictionaries/repo.rs | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 1cc0953..6750446 100644 --- a/README.md +++ b/README.md @@ -277,6 +277,7 @@ Project-specific configuration is loaded from either `codebook.toml` or `.codebo # - Vietnamese: "vi_vn" # - Polish: "pl" # - Ukrainian: "uk" +# - Norwegian: "nb_no", "nn_no" dictionaries = ["en_us", "en_gb"] # Custom allowlist of words to ignore (case-insensitive) diff --git a/crates/codebook/src/dictionaries/repo.rs b/crates/codebook/src/dictionaries/repo.rs index efa45d5..75c7766 100644 --- a/crates/codebook/src/dictionaries/repo.rs +++ b/crates/codebook/src/dictionaries/repo.rs @@ -149,6 +149,16 @@ static HUNSPELL_DICTIONARIES: LazyLock> = LazyLock::new(|| { "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/uk/index.aff", "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/uk/index.dic", ), + HunspellRepo::new( + "nb_no", + "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/nb/index.aff", + "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/nb/index.dic", + ), + HunspellRepo::new( + "nn_no", + "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/nn/index.aff", + "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/nn/index.dic", + ), ] });