From 5277bf390ebb4d707646ce8a233657baec600faf Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 1 Jun 2023 06:07:12 -0500 Subject: [PATCH] fix(dict): Allow plural deque -> deques --- crates/typos-dict/assets/allowed.csv | 2 ++ crates/typos-dict/assets/words.csv | 1 - crates/typos-dict/src/dict_codegen.rs | 7 ++----- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/typos-dict/assets/allowed.csv b/crates/typos-dict/assets/allowed.csv index fd21bed..c6e73bc 100644 --- a/crates/typos-dict/assets/allowed.csv +++ b/crates/typos-dict/assets/allowed.csv @@ -2,3 +2,5 @@ nilable,used in ruby community thead,html tag hardlinked,filesystem term referer,http header field +deques,noun +dequeues,verb diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index b7456f3..117492e 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -14664,7 +14664,6 @@ depseration,desperation depsise,despise depsoited,deposited dequed,dequeued -deques,dequeues derageable,dirigible deragotory,derogatory deram,dram,dream diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index 416f1fd..1dd43d1 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -129941,11 +129941,8 @@ static WORD_DEQ_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen:: }; pub static WORD_DEQ_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { - keys: &[ - dictgen::InsensitiveStr::Ascii("ued"), - dictgen::InsensitiveStr::Ascii("ues"), - ], - values: &[&["dequeued"], &["dequeues"]], + keys: &[dictgen::InsensitiveStr::Ascii("ued")], + values: &[&["dequeued"]], range: 3..=3, };