From 40383f41a2f90743ef28b8c8b1c2d5a42b7651a0 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 13 Nov 2025 12:08:24 -0600 Subject: [PATCH] fix(dict): Don't offer 'entry' as a correction for 'entrys' Fixes #1422 --- crates/typos-dict/assets/words.csv | 2 +- crates/typos-dict/benches/benches/aho_corasick_codegen.rs | 2 +- crates/typos-dict/src/word_codegen.rs | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 084b253e..9423304e 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -32762,7 +32762,7 @@ entrophy,entropy entroy,entropy entrpoint,entrypoint entryes,entries -entrys,entries,entry +entrys,entries enttries,entries enttry,entry entty,entry,entity diff --git a/crates/typos-dict/benches/benches/aho_corasick_codegen.rs b/crates/typos-dict/benches/benches/aho_corasick_codegen.rs index 792d23f2..a4af2a63 100644 --- a/crates/typos-dict/benches/benches/aho_corasick_codegen.rs +++ b/crates/typos-dict/benches/benches/aho_corasick_codegen.rs @@ -124478,7 +124478,7 @@ impl Word { &["entropy"], &["entrypoint"], &["entries"], - &["entries", "entry"], + &["entries"], &["entries"], &["entry"], &["entry", "entity"], diff --git a/crates/typos-dict/src/word_codegen.rs b/crates/typos-dict/src/word_codegen.rs index a8cd943c..65f172bf 100644 --- a/crates/typos-dict/src/word_codegen.rs +++ b/crates/typos-dict/src/word_codegen.rs @@ -37822,10 +37822,7 @@ pub static WORD: dictgen::Map, &[&str]> = dictg dictgen::InsensitiveStr::Ascii("dissipointed"), &["disappointed"], ), - ( - dictgen::InsensitiveStr::Ascii("entrys"), - &["entries", "entry"], - ), + (dictgen::InsensitiveStr::Ascii("entrys"), &["entries"]), ( dictgen::InsensitiveStr::Ascii("temporairly"), &["temporarily"],