From 13d8f4b3498c5c1e755a3191e51ad013e1fb74bd Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 12 Apr 2024 15:43:43 -0500 Subject: [PATCH] fix(dict): Don't correct kms Fixes #993 --- crates/typos-dict/assets/allowed.csv | 1 + crates/typos-dict/assets/words.csv | 1 - crates/typos-dict/src/word_codegen.rs | 9 +++------ 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/crates/typos-dict/assets/allowed.csv b/crates/typos-dict/assets/allowed.csv index 646d735..2ada2dc 100644 --- a/crates/typos-dict/assets/allowed.csv +++ b/crates/typos-dict/assets/allowed.csv @@ -37,3 +37,4 @@ lst,abbreviation for list especially when list is a built-in like Python ans,abbreviation for answer automations,while automation is uncountable there are cases where automations works like with iPhone automations inout,keyword in many languages but used in many more +kms,common enough acronym for Key Management Service diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 16d60bf..f285d72 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -34496,7 +34496,6 @@ klicked,clicked klicks,clicks klunky,clunky kmow,know -kms,km knarl,gnarl knarled,gnarled knarling,gnarling diff --git a/crates/typos-dict/src/word_codegen.rs b/crates/typos-dict/src/word_codegen.rs index 8828498..5c39fba 100644 --- a/crates/typos-dict/src/word_codegen.rs +++ b/crates/typos-dict/src/word_codegen.rs @@ -103860,12 +103860,9 @@ static WORD_KM_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::D }; pub static WORD_KM_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { - keys: &[ - dictgen::InsensitiveStr::Ascii("ow"), - dictgen::InsensitiveStr::Ascii("s"), - ], - values: &[&["know"], &["km"]], - range: 1..=2, + keys: &[dictgen::InsensitiveStr::Ascii("ow")], + values: &[&["know"]], + range: 2..=2, }; static WORD_KL_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {