From 0ded1c8a4e707831e64ad071046c4137014452f3 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 1 Jun 2023 05:58:16 -0500 Subject: [PATCH 1/3] fix(dict): Include May updates --- crates/typos-dict/assets/words.csv | 7 +++++++ crates/typos-dict/src/dict_codegen.rs | 24 +++++++++++++++++++----- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index b8b7253..b7456f3 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -7932,6 +7932,7 @@ charakter,character charakters,characters chararacter,character chararcter,character +chararcters,characters charas,chars charascters,characters charasmatic,charismatic @@ -14145,6 +14146,7 @@ delaership,dealership delaerships,dealerships delagate,delegate delagates,delegates +delaing,delaying delaloc,delalloc delalyed,delayed delapidated,dilapidated @@ -14593,6 +14595,7 @@ deployement,deployment deploymenet,deployment deploymenets,deployments deploymnet,deployment +deply,deploy deplying,deploying deplyoing,deploying deplyoment,deployment @@ -21501,6 +21504,7 @@ fiter,filter,fighter,fitter,fiver fitering,filtering fiters,filters,fighters,fitters,fivers fitler,filter +fitlered,filtered fitlers,filters fivety,fifty fixe,fixed,fixes,fix,fixme,fixer @@ -24586,6 +24590,7 @@ idividually,individually idividuals,individuals iechart,piechart ierland,ireland +iformation,information ifself,itself ignitin,ignition ignoded,ignored @@ -31407,6 +31412,7 @@ misterious,mysterious misteriously,mysteriously mistery,mystery misteryous,mysterious +mistmatch,mismatch mistmatches,mismatches mistread,mistreated mistreaded,mistreated @@ -34816,6 +34822,7 @@ pakage,package pakageimpl,packageimpl pakages,packages pakcage,package +pakcages,packages paket,packet pakge,package pakistain,pakistani diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index 7b3bbe9..416f1fd 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -62664,6 +62664,7 @@ pub static WORD_PAK_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict dictgen::InsensitiveStr::Ascii("ageimpl"), dictgen::InsensitiveStr::Ascii("ages"), dictgen::InsensitiveStr::Ascii("cage"), + dictgen::InsensitiveStr::Ascii("cages"), dictgen::InsensitiveStr::Ascii("et"), dictgen::InsensitiveStr::Ascii("ge"), dictgen::InsensitiveStr::Ascii("istain"), @@ -62680,6 +62681,7 @@ pub static WORD_PAK_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict &["packageimpl"], &["packages"], &["package"], + &["packages"], &["packet"], &["package"], &["pakistani"], @@ -74557,6 +74559,7 @@ pub static WORD_MIST_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic dictgen::InsensitiveStr::Ascii("eriously"), dictgen::InsensitiveStr::Ascii("ery"), dictgen::InsensitiveStr::Ascii("eryous"), + dictgen::InsensitiveStr::Ascii("match"), dictgen::InsensitiveStr::Ascii("matches"), dictgen::InsensitiveStr::Ascii("read"), dictgen::InsensitiveStr::Ascii("readed"), @@ -74577,6 +74580,7 @@ pub static WORD_MIST_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic &["mysteriously"], &["mystery"], &["mysterious"], + &["mismatch"], &["mismatches"], &["mistreated"], &["mistreated"], @@ -96533,9 +96537,12 @@ static WORD_IF_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::D }; pub static WORD_IF_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { - keys: &[dictgen::InsensitiveStr::Ascii("self")], - values: &[&["itself"]], - range: 4..=4, + keys: &[ + dictgen::InsensitiveStr::Ascii("ormation"), + dictgen::InsensitiveStr::Ascii("self"), + ], + values: &[&["information"], &["itself"]], + range: 4..=8, }; static WORD_IE_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { @@ -107257,6 +107264,7 @@ pub static WORD_FIT_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict dictgen::InsensitiveStr::Ascii("ering"), dictgen::InsensitiveStr::Ascii("ers"), dictgen::InsensitiveStr::Ascii("ler"), + dictgen::InsensitiveStr::Ascii("lered"), dictgen::InsensitiveStr::Ascii("lers"), ], values: &[ @@ -107264,6 +107272,7 @@ pub static WORD_FIT_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict &["filtering"], &["filters", "fighters", "fitters", "fivers"], &["filter"], + &["filtered"], &["filters"], ], range: 2..=5, @@ -130172,6 +130181,7 @@ pub static WORD_DEPL_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic dictgen::InsensitiveStr::Ascii("oymenet"), dictgen::InsensitiveStr::Ascii("oymenets"), dictgen::InsensitiveStr::Ascii("oymnet"), + dictgen::InsensitiveStr::Ascii("y"), dictgen::InsensitiveStr::Ascii("ying"), dictgen::InsensitiveStr::Ascii("yoing"), dictgen::InsensitiveStr::Ascii("yoment"), @@ -130191,11 +130201,12 @@ pub static WORD_DEPL_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic &["deployment"], &["deployments"], &["deployment"], + &["deploy"], &["deploying"], &["deploying"], &["deployment"], ], - range: 3..=8, + range: 1..=8, }; static WORD_DEPI_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { @@ -131764,6 +131775,7 @@ pub static WORD_DELA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic dictgen::InsensitiveStr::Ascii("erships"), dictgen::InsensitiveStr::Ascii("gate"), dictgen::InsensitiveStr::Ascii("gates"), + dictgen::InsensitiveStr::Ascii("ing"), dictgen::InsensitiveStr::Ascii("loc"), dictgen::InsensitiveStr::Ascii("lyed"), dictgen::InsensitiveStr::Ascii("pidated"), @@ -131782,6 +131794,7 @@ pub static WORD_DELA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic &["dealerships"], &["delegate"], &["delegates"], + &["delaying"], &["delalloc"], &["delayed"], &["dilapidated"], @@ -153094,8 +153107,9 @@ pub static WORD_CHARAR_CHILDREN: dictgen::DictTable<&'static [&'static str]> = d keys: &[ dictgen::InsensitiveStr::Ascii("acter"), dictgen::InsensitiveStr::Ascii("cter"), + dictgen::InsensitiveStr::Ascii("cters"), ], - values: &[&["character"], &["character"]], + values: &[&["character"], &["character"], &["characters"]], range: 4..=5, }; From 1ddfabf5b078c3cddaff5fa368a5e3976b8bf8e0 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 1 Jun 2023 06:01:25 -0500 Subject: [PATCH 2/3] chore: Update lockfile --- Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 069eda5..387d5aa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -377,7 +377,7 @@ dependencies = [ "anes", "cast", "ciborium", - "clap 4.2.5", + "clap 4.3.0", "criterion-plot", "is-terminal", "itertools", From 5277bf390ebb4d707646ce8a233657baec600faf Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 1 Jun 2023 06:07:12 -0500 Subject: [PATCH 3/3] 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, };