From 272ac51fdba1b882879ad69db51a5fc705b68a2b Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 17 Aug 2022 12:12:15 +0200 Subject: [PATCH] feat(dict): Add typos for "inappropriate[ly]" --- crates/typos-dict/assets/words.csv | 3 + crates/typos-dict/src/dict_codegen.rs | 352 ++++++++++++++++++-------- 2 files changed, 249 insertions(+), 106 deletions(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 912ecbd..85b3421 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -25252,6 +25252,9 @@ inappropriatly,inappropriately inappropriet,inappropriately inapproprietly,inappropriately inaproppriate,inappropriate +inaproppriately,inappropriately +inapropriate,inappropriate +inapropriately,inappropriately inate,innate inattractive,unattractive inaugures,inaugurates diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index a0bdf27..9544b70 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -92995,76 +92995,246 @@ pub static WORD_INB_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict }; static WORD_INA_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { - children: dictgen::DictTrieChild::Flat(&WORD_INA_CHILDREN), + children: dictgen::DictTrieChild::Nested(&WORD_INA_CHILDREN), value: None, }; -pub static WORD_INA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { +static WORD_INA_CHILDREN: [Option<&dictgen::DictTrieNode<&'static [&'static str]>>; 26] = [ + None, + Some(&WORD_INAB_NODE), + Some(&WORD_INAC_NODE), + Some(&WORD_INAD_NODE), + None, + None, + Some(&WORD_INAG_NODE), + Some(&WORD_INAH_NODE), + None, + None, + Some(&WORD_INAK_NODE), + Some(&WORD_INAL_NODE), + None, + None, + None, + Some(&WORD_INAP_NODE), + None, + None, + None, + Some(&WORD_INAT_NODE), + Some(&WORD_INAU_NODE), + Some(&WORD_INAV_NODE), + None, + None, + None, + None, +]; + +static WORD_INAV_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_INAV_CHILDREN), + value: None, +}; + +pub static WORD_INAV_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[dictgen::InsensitiveStr::Ascii("lid")], + values: &[&["invalid"]], + range: 3..=3, +}; + +static WORD_INAU_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_INAU_CHILDREN), + value: None, +}; + +pub static WORD_INAU_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[dictgen::InsensitiveStr::Ascii("gures")], + values: &[&["inaugurates"]], + range: 5..=5, +}; + +static WORD_INAT_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_INAT_CHILDREN), + value: None, +}; + +pub static WORD_INAT_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { keys: &[ - dictgen::InsensitiveStr::Ascii("blility"), - dictgen::InsensitiveStr::Ascii("cccessible"), - dictgen::InsensitiveStr::Ascii("ccesible"), - dictgen::InsensitiveStr::Ascii("ccesibles"), - dictgen::InsensitiveStr::Ascii("ccessable"), - dictgen::InsensitiveStr::Ascii("ccessbile"), - dictgen::InsensitiveStr::Ascii("ccessble"), - dictgen::InsensitiveStr::Ascii("ccessibile"), - dictgen::InsensitiveStr::Ascii("ccruate"), - dictgen::InsensitiveStr::Ascii("ccuraccies"), - dictgen::InsensitiveStr::Ascii("ccuraccy"), - dictgen::InsensitiveStr::Ascii("ccuraces"), - dictgen::InsensitiveStr::Ascii("ccurasies"), - dictgen::InsensitiveStr::Ascii("ccuraties"), - dictgen::InsensitiveStr::Ascii("ccuricies"), - dictgen::InsensitiveStr::Ascii("ccurrate"), - dictgen::InsensitiveStr::Ascii("curaccies"), - dictgen::InsensitiveStr::Ascii("curate"), - dictgen::InsensitiveStr::Ascii("curracies"), - dictgen::InsensitiveStr::Ascii("currate"), - dictgen::InsensitiveStr::Ascii("daquate"), - dictgen::InsensitiveStr::Ascii("daquete"), - dictgen::InsensitiveStr::Ascii("decuate"), - dictgen::InsensitiveStr::Ascii("deguate"), - dictgen::InsensitiveStr::Ascii("deqaute"), - dictgen::InsensitiveStr::Ascii("dequet"), - dictgen::InsensitiveStr::Ascii("dequete"), - dictgen::InsensitiveStr::Ascii("dequite"), - dictgen::InsensitiveStr::Ascii("diquate"), - dictgen::InsensitiveStr::Ascii("dquate"), - dictgen::InsensitiveStr::Ascii("dventently"), - dictgen::InsensitiveStr::Ascii("dverdently"), - dictgen::InsensitiveStr::Ascii("dvertant"), - dictgen::InsensitiveStr::Ascii("dvertantely"), - dictgen::InsensitiveStr::Ascii("dvertantly"), - dictgen::InsensitiveStr::Ascii("dvertendly"), - dictgen::InsensitiveStr::Ascii("dvertenly"), - dictgen::InsensitiveStr::Ascii("gurated"), - dictgen::InsensitiveStr::Ascii("guration"), - dictgen::InsensitiveStr::Ascii("hbitants"), - dictgen::InsensitiveStr::Ascii("ktively"), - dictgen::InsensitiveStr::Ascii("lid"), - dictgen::InsensitiveStr::Ascii("pporpriate"), - dictgen::InsensitiveStr::Ascii("pporpriately"), - dictgen::InsensitiveStr::Ascii("ppropiate"), - dictgen::InsensitiveStr::Ascii("ppropirate"), - dictgen::InsensitiveStr::Ascii("ppropraite"), - dictgen::InsensitiveStr::Ascii("ppropraitely"), - dictgen::InsensitiveStr::Ascii("pproprate"), - dictgen::InsensitiveStr::Ascii("ppropreate"), - dictgen::InsensitiveStr::Ascii("ppropriae"), - dictgen::InsensitiveStr::Ascii("ppropriatelly"), - dictgen::InsensitiveStr::Ascii("ppropriatley"), - dictgen::InsensitiveStr::Ascii("ppropriatly"), - dictgen::InsensitiveStr::Ascii("ppropriet"), - dictgen::InsensitiveStr::Ascii("pproprietly"), - dictgen::InsensitiveStr::Ascii("proppriate"), - dictgen::InsensitiveStr::Ascii("te"), - dictgen::InsensitiveStr::Ascii("ttractive"), - dictgen::InsensitiveStr::Ascii("ugures"), - dictgen::InsensitiveStr::Ascii("vlid"), + dictgen::InsensitiveStr::Ascii("e"), + dictgen::InsensitiveStr::Ascii("tractive"), + ], + values: &[&["innate"], &["unattractive"]], + range: 1..=8, +}; + +static WORD_INAP_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_INAP_CHILDREN), + value: None, +}; + +pub static WORD_INAP_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[ + dictgen::InsensitiveStr::Ascii("porpriate"), + dictgen::InsensitiveStr::Ascii("porpriately"), + dictgen::InsensitiveStr::Ascii("propiate"), + dictgen::InsensitiveStr::Ascii("propirate"), + dictgen::InsensitiveStr::Ascii("propraite"), + dictgen::InsensitiveStr::Ascii("propraitely"), + dictgen::InsensitiveStr::Ascii("proprate"), + dictgen::InsensitiveStr::Ascii("propreate"), + dictgen::InsensitiveStr::Ascii("propriae"), + dictgen::InsensitiveStr::Ascii("propriatelly"), + dictgen::InsensitiveStr::Ascii("propriatley"), + dictgen::InsensitiveStr::Ascii("propriatly"), + dictgen::InsensitiveStr::Ascii("propriet"), + dictgen::InsensitiveStr::Ascii("proprietly"), + dictgen::InsensitiveStr::Ascii("roppriate"), + dictgen::InsensitiveStr::Ascii("roppriately"), + dictgen::InsensitiveStr::Ascii("ropriate"), + dictgen::InsensitiveStr::Ascii("ropriately"), + ], + values: &[ + &["inappropriate"], + &["inappropriately"], + &["inappropriate"], + &["inappropriate"], + &["inappropriate"], + &["inappropriately"], + &["inappropriate"], + &["inappropriate"], + &["inappropriately"], + &["inappropriately"], + &["inappropriately"], + &["inappropriately"], + &["inappropriately"], + &["inappropriately"], + &["inappropriate"], + &["inappropriately"], + &["inappropriate"], + &["inappropriately"], + ], + range: 8..=12, +}; + +static WORD_INAL_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_INAL_CHILDREN), + value: None, +}; + +pub static WORD_INAL_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[dictgen::InsensitiveStr::Ascii("id")], + values: &[&["invalid"]], + range: 2..=2, +}; + +static WORD_INAK_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_INAK_CHILDREN), + value: None, +}; + +pub static WORD_INAK_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[dictgen::InsensitiveStr::Ascii("tively")], + values: &[&["inactively"]], + range: 6..=6, +}; + +static WORD_INAH_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_INAH_CHILDREN), + value: None, +}; + +pub static WORD_INAH_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[dictgen::InsensitiveStr::Ascii("bitants")], + values: &[&["inhabitants"]], + range: 7..=7, +}; + +static WORD_INAG_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_INAG_CHILDREN), + value: None, +}; + +pub static WORD_INAG_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[ + dictgen::InsensitiveStr::Ascii("urated"), + dictgen::InsensitiveStr::Ascii("uration"), + ], + values: &[&["inaugurated"], &["inauguration"]], + range: 6..=7, +}; + +static WORD_INAD_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_INAD_CHILDREN), + value: None, +}; + +pub static WORD_INAD_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[ + dictgen::InsensitiveStr::Ascii("aquate"), + dictgen::InsensitiveStr::Ascii("aquete"), + dictgen::InsensitiveStr::Ascii("ecuate"), + dictgen::InsensitiveStr::Ascii("eguate"), + dictgen::InsensitiveStr::Ascii("eqaute"), + dictgen::InsensitiveStr::Ascii("equet"), + dictgen::InsensitiveStr::Ascii("equete"), + dictgen::InsensitiveStr::Ascii("equite"), + dictgen::InsensitiveStr::Ascii("iquate"), + dictgen::InsensitiveStr::Ascii("quate"), + dictgen::InsensitiveStr::Ascii("ventently"), + dictgen::InsensitiveStr::Ascii("verdently"), + dictgen::InsensitiveStr::Ascii("vertant"), + dictgen::InsensitiveStr::Ascii("vertantely"), + dictgen::InsensitiveStr::Ascii("vertantly"), + dictgen::InsensitiveStr::Ascii("vertendly"), + dictgen::InsensitiveStr::Ascii("vertenly"), + ], + values: &[ + &["inadequate"], + &["inadequate"], + &["inadequate"], + &["inadequate"], + &["inadequate"], + &["inadequate"], + &["inadequate"], + &["inadequate"], + &["inadequate"], + &["inadequate"], + &["inadvertently"], + &["inadvertently"], + &["inadvertent"], + &["inadvertently"], + &["inadvertently"], + &["inadvertently"], + &["inadvertently"], + ], + range: 5..=10, +}; + +static WORD_INAC_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_INAC_CHILDREN), + value: None, +}; + +pub static WORD_INAC_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[ + dictgen::InsensitiveStr::Ascii("ccessible"), + dictgen::InsensitiveStr::Ascii("cesible"), + dictgen::InsensitiveStr::Ascii("cesibles"), + dictgen::InsensitiveStr::Ascii("cessable"), + dictgen::InsensitiveStr::Ascii("cessbile"), + dictgen::InsensitiveStr::Ascii("cessble"), + dictgen::InsensitiveStr::Ascii("cessibile"), + dictgen::InsensitiveStr::Ascii("cruate"), + dictgen::InsensitiveStr::Ascii("curaccies"), + dictgen::InsensitiveStr::Ascii("curaccy"), + dictgen::InsensitiveStr::Ascii("curaces"), + dictgen::InsensitiveStr::Ascii("curasies"), + dictgen::InsensitiveStr::Ascii("curaties"), + dictgen::InsensitiveStr::Ascii("curicies"), + dictgen::InsensitiveStr::Ascii("currate"), + dictgen::InsensitiveStr::Ascii("uraccies"), + dictgen::InsensitiveStr::Ascii("urate"), + dictgen::InsensitiveStr::Ascii("urracies"), + dictgen::InsensitiveStr::Ascii("urrate"), ], values: &[ - &["inability"], &["inaccessible"], &["inaccessible"], &["inaccessible"], @@ -93084,49 +93254,19 @@ pub static WORD_INA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict &["inaccurate"], &["inaccuracies"], &["inaccurate"], - &["inadequate"], - &["inadequate"], - &["inadequate"], - &["inadequate"], - &["inadequate"], - &["inadequate"], - &["inadequate"], - &["inadequate"], - &["inadequate"], - &["inadequate"], - &["inadvertently"], - &["inadvertently"], - &["inadvertent"], - &["inadvertently"], - &["inadvertently"], - &["inadvertently"], - &["inadvertently"], - &["inaugurated"], - &["inauguration"], - &["inhabitants"], - &["inactively"], - &["invalid"], - &["inappropriate"], - &["inappropriately"], - &["inappropriate"], - &["inappropriate"], - &["inappropriate"], - &["inappropriately"], - &["inappropriate"], - &["inappropriate"], - &["inappropriately"], - &["inappropriately"], - &["inappropriately"], - &["inappropriately"], - &["inappropriately"], - &["inappropriately"], - &["inappropriate"], - &["innate"], - &["unattractive"], - &["inaugurates"], - &["invalid"], ], - range: 2..=13, + range: 5..=9, +}; + +static WORD_INAB_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_INAB_CHILDREN), + value: None, +}; + +pub static WORD_INAB_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[dictgen::InsensitiveStr::Ascii("lility")], + values: &[&["inability"]], + range: 6..=6, }; static WORD_IM_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {