From 21bc7168f8ba4f1bd3e5397758ff0863667f299f Mon Sep 17 00:00:00 2001 From: mxs Date: Fri, 24 Jul 2026 22:52:04 +0200 Subject: [PATCH] Add Oxford English dictionary --- README.md | 2 +- crates/codebook/src/dictionaries/repo.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c1b598a..d6d7b46 100644 --- a/README.md +++ b/README.md @@ -289,7 +289,7 @@ The block below shows all options at their default values. Comments show example # Dictionaries to use for spell checking. # Example: ["en_us", "en_gb"] # Available dictionaries: -# - English: "en_us", "en_gb" +# - English: "en_us", "en_gb", "en_gb_ize" # - Czech: "cs" # - German: "de", "de_at", "de_ch" # - Dutch: "nl_nl" diff --git a/crates/codebook/src/dictionaries/repo.rs b/crates/codebook/src/dictionaries/repo.rs index 2c401d8..0c87cf4 100644 --- a/crates/codebook/src/dictionaries/repo.rs +++ b/crates/codebook/src/dictionaries/repo.rs @@ -196,6 +196,11 @@ static HUNSPELL_DICTIONARIES: LazyLock> = LazyLock::new(|| { "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/sl/index.aff", "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/sl/index.dic", ), + HunspellRepo::new( + "en_gb_ize", + "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/en-GB-ize/index.aff", + "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/en-GB-ize/index.dic", + ), ] });