From cabd73a071ca2efe797168d78d2b24c1a0c77509 Mon Sep 17 00:00:00 2001 From: pls148 <184445976+pls148@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:31:16 -0800 Subject: [PATCH] add typos imlementations,includs,qurorum,transatctions,trasnactions,validasted,vview --- crates/typos-dict/assets/words.csv | 7 +++++++ crates/typos-dict/src/word_codegen.rs | 27 +++++++++++++++++++++++++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 1585e3d2a..a7587683c 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -31599,6 +31599,7 @@ imilar,similar iminent,eminent,imminent,immanent imlement,implement imlementation,implementation +imlementations,implementations imlemented,implemented imlementing,implementing imlements,implements @@ -32349,6 +32350,7 @@ includig,including includign,including includin,including includng,including +includs,includes inclue,include inclued,included inclues,includes @@ -50565,6 +50567,7 @@ quottes,quotes qurey,query quried,queried quries,queries +qurorum,quorum quroum,quorum qurter,quarter qust,quest @@ -63580,6 +63583,7 @@ transaltions,translations transaltor,translator transaltors,translators transaprency,transparency +transatctions,transactions transation,transition,transaction,translation transational,transitional transations,transitions,transactions,translations @@ -64008,6 +64012,7 @@ traslucency,translucency trasmission,transmission trasmit,transmit trasnaction,transaction +trasnactions,transactions trasncoding,transcoding trasncript,transcript trasncripts,transcripts @@ -66731,6 +66736,7 @@ valiation,validation valiator,validator validade,validated,validate validaing,validating +validasted,validated validat,validate validata,validate validataion,validation @@ -67829,6 +67835,7 @@ vunrability,vulnerability vunrable,vulnerable vurnerabilities,vulnerabilities vurnerability,vulnerability +vview,view vyer,very vyre,very waas,was diff --git a/crates/typos-dict/src/word_codegen.rs b/crates/typos-dict/src/word_codegen.rs index 2d48b6aa2..d38745042 100644 --- a/crates/typos-dict/src/word_codegen.rs +++ b/crates/typos-dict/src/word_codegen.rs @@ -4441,7 +4441,7 @@ static WORD_V_CHILDREN: [Option<&dictgen::DictTrieNode<&'static [&'static str]>> None, None, Some(&WORD_VU_NODE), - None, + Some(&WORD_VV_NODE), None, None, Some(&WORD_VY_NODE), @@ -4462,6 +4462,17 @@ pub static WORD_VY_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg range: 2..=2, }; +static WORD_VV_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_VV_CHILDREN), + value: None, +}; + +pub static WORD_VV_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[dictgen::InsensitiveStr::Ascii("iew")], + values: &[&["view"]], + range: 3..=3, +}; + static WORD_VU_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { children: dictgen::DictTrieChild::Nested(&WORD_VU_CHILDREN), value: None, @@ -8249,6 +8260,7 @@ pub static WORD_VALI_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic dictgen::InsensitiveStr::Ascii("ator"), dictgen::InsensitiveStr::Ascii("dade"), dictgen::InsensitiveStr::Ascii("daing"), + dictgen::InsensitiveStr::Ascii("dasted"), dictgen::InsensitiveStr::Ascii("dat"), dictgen::InsensitiveStr::Ascii("data"), dictgen::InsensitiveStr::Ascii("dataion"), @@ -8278,6 +8290,7 @@ pub static WORD_VALI_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic &["validator"], &["validated", "validate"], &["validating"], + &["validated"], &["validate"], &["validate"], &["validation"], @@ -17683,6 +17696,7 @@ static WORD_TRASN_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen pub static WORD_TRASN_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { keys: &[ dictgen::InsensitiveStr::Ascii("action"), + dictgen::InsensitiveStr::Ascii("actions"), dictgen::InsensitiveStr::Ascii("coding"), dictgen::InsensitiveStr::Ascii("cript"), dictgen::InsensitiveStr::Ascii("cripts"), @@ -17724,6 +17738,7 @@ pub static WORD_TRASN_CHILDREN: dictgen::DictTable<&'static [&'static str]> = di ], values: &[ &["transaction"], + &["transactions"], &["transcoding"], &["transcript"], &["transcripts"], @@ -19132,6 +19147,7 @@ pub static WORD_TRANSA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = d dictgen::InsensitiveStr::Ascii("ltor"), dictgen::InsensitiveStr::Ascii("ltors"), dictgen::InsensitiveStr::Ascii("prency"), + dictgen::InsensitiveStr::Ascii("tctions"), dictgen::InsensitiveStr::Ascii("tion"), dictgen::InsensitiveStr::Ascii("tional"), dictgen::InsensitiveStr::Ascii("tions"), @@ -19162,6 +19178,7 @@ pub static WORD_TRANSA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = d &["translator"], &["translators"], &["transparency"], + &["transactions"], &["transition", "transaction", "translation"], &["transitional"], &["transitions", "transactions", "translations"], @@ -62845,6 +62862,7 @@ pub static WORD_QUR_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict dictgen::InsensitiveStr::Ascii("ey"), dictgen::InsensitiveStr::Ascii("ied"), dictgen::InsensitiveStr::Ascii("ies"), + dictgen::InsensitiveStr::Ascii("orum"), dictgen::InsensitiveStr::Ascii("oum"), dictgen::InsensitiveStr::Ascii("ter"), ], @@ -62853,9 +62871,10 @@ pub static WORD_QUR_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict &["queried"], &["queries"], &["quorum"], + &["quorum"], &["quarter"], ], - range: 2..=3, + range: 2..=4, }; static WORD_QUO_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { @@ -124447,6 +124466,7 @@ pub static WORD_INCL_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic dictgen::InsensitiveStr::Ascii("udign"), dictgen::InsensitiveStr::Ascii("udin"), dictgen::InsensitiveStr::Ascii("udng"), + dictgen::InsensitiveStr::Ascii("uds"), dictgen::InsensitiveStr::Ascii("ue"), dictgen::InsensitiveStr::Ascii("ued"), dictgen::InsensitiveStr::Ascii("ues"), @@ -124492,6 +124512,7 @@ pub static WORD_INCL_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic &["including"], &["including"], &["including"], + &["includes"], &["include"], &["included"], &["includes"], @@ -127103,6 +127124,7 @@ pub static WORD_IML_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict keys: &[ dictgen::InsensitiveStr::Ascii("ement"), dictgen::InsensitiveStr::Ascii("ementation"), + dictgen::InsensitiveStr::Ascii("ementations"), dictgen::InsensitiveStr::Ascii("emented"), dictgen::InsensitiveStr::Ascii("ementing"), dictgen::InsensitiveStr::Ascii("ements"), @@ -127118,6 +127140,7 @@ pub static WORD_IML_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict values: &[ &["implement"], &["implementation"], + &["implementations"], &["implemented"], &["implementing"], &["implements"],