From afcd316ddd27a8984c72b302ff9c1b7e181fab37 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 28 Feb 2023 19:03:44 +0100 Subject: [PATCH] feat(dict): Add more encryption-related typos --- crates/typos-dict/assets/words.csv | 6 ++++++ crates/typos-dict/src/dict_codegen.rs | 30 +++++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 4fa3e7d..ad6a263 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -14742,6 +14742,9 @@ dervie,derive dervied,derived dervies,derives dervived,derived +derypt,decrypt +derypted,decrypted +deryption,decryption desactivate,deactivate desactivated,deactivated desallocate,deallocate @@ -18399,6 +18402,9 @@ enrolement,enrollment enrollemnt,enrollment enrties,entries enrty,entry +enrypt,encrypt +enrypted,encrypted +enryption,encryption ensalve,enslave ensalved,enslaved ensconsed,ensconced diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index 23bd022..eca10f2 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -116988,8 +116988,19 @@ pub static WORD_ENR_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict dictgen::InsensitiveStr::Ascii("ollemnt"), dictgen::InsensitiveStr::Ascii("ties"), dictgen::InsensitiveStr::Ascii("ty"), + dictgen::InsensitiveStr::Ascii("ypt"), + dictgen::InsensitiveStr::Ascii("ypted"), + dictgen::InsensitiveStr::Ascii("yption"), + ], + values: &[ + &["enrollment"], + &["enrollment"], + &["entries"], + &["entry"], + &["encrypt"], + &["encrypted"], + &["encryption"], ], - values: &[&["enrollment"], &["enrollment"], &["entries"], &["entry"]], range: 2..=7, }; @@ -129408,10 +129419,25 @@ static WORD_DER_CHILDREN: [Option<&dictgen::DictTrieNode<&'static [&'static str] Some(&WORD_DERV_NODE), None, None, - None, + Some(&WORD_DERY_NODE), None, ]; +static WORD_DERY_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_DERY_CHILDREN), + value: None, +}; + +pub static WORD_DERY_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[ + dictgen::InsensitiveStr::Ascii("pt"), + dictgen::InsensitiveStr::Ascii("pted"), + dictgen::InsensitiveStr::Ascii("ption"), + ], + values: &[&["decrypt"], &["decrypted"], &["decryption"]], + range: 2..=5, +}; + static WORD_DERV_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { children: dictgen::DictTrieChild::Flat(&WORD_DERV_CHILDREN), value: None,