From 5483e8976a22564e5f84dfd2fe511d8ac2bafdde Mon Sep 17 00:00:00 2001 From: Robert <52195359+SeparateRecords@users.noreply.github.com> Date: Tue, 30 Aug 2022 13:10:21 +1000 Subject: [PATCH] feat(dict): add typos from Fig monorepo --- crates/typos-dict/assets/words.csv | 21 ++++++++- crates/typos-dict/src/dict_codegen.rs | 62 ++++++++++++++++++++++++--- 2 files changed, 77 insertions(+), 6 deletions(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 655c11e..727a2f8 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -1479,6 +1479,7 @@ agants,agents,against aggaravates,aggravates aggegate,aggregate aggegrate,aggregate +aggergate,aggregate aggessive,aggressive aggessively,aggressively agggregate,aggregate @@ -4600,6 +4601,7 @@ austrila,austria austrlaian,australians,australian autasave,autosave autasaves,autosaves +autcomplete,autocomplete autenticate,authenticate autenticated,authenticated autenticates,authenticates @@ -9825,7 +9827,7 @@ compleate,complete compleated,completed compleates,completes compleating,completing -compleation,compilation +compleation,compilation,completion compleatly,completely complecate,complicate complecated,complicated @@ -13066,6 +13068,7 @@ curriculm,curriculum curriences,currencies currious,curious currnet,current +currnetly,currently currnt,current currntly,currently curroption,corruption @@ -14369,6 +14372,7 @@ densly,densely denstiy,density dentistas,dentists dentistes,dentists +denyed,denied deocde,decode deocded,decoded deocder,decoder @@ -18613,6 +18617,7 @@ epscially,specially epsiode,episode epsiodes,episodes epsionage,espionage +epslion,epsilon epsorts,esports epsresso,espresso eptied,emptied @@ -26645,6 +26650,7 @@ insertos,inserts insesitive,insensitive insetad,instead inseted,inserted +insetion,insertion insided,inside insidios,insidious insidiuos,insidious @@ -26976,6 +26982,7 @@ integraded,integrated integrarla,integral integrarlo,integral integratie,integrated +integratione,integration integrato,integration integratron,integration integreated,integrated @@ -28149,6 +28156,7 @@ itentionaly,intentionally iteract,interact iterater,iterator iteratered,iterated +iteratior,iterator iteratons,iterations itereating,iterating itereator,iterator @@ -28229,6 +28237,7 @@ japaneese,japanese japanes,japanese japanses,japanese jaques,jacques +jaring,jarring jasmien,jasmine jaugars,jaguars jaunary,january @@ -28264,6 +28273,7 @@ jerusaleum,jerusalem jerusalm,jerusalem jeruselam,jerusalem jeruslaem,jerusalem +jetbrain,jetbrains jewelrey,jewelry jewerly,jewelry jewl,jew,jewel @@ -33253,6 +33263,7 @@ obersvant,observant obersvation,observation obersvations,observations obersvers,observers +oberver,observer obeserve,observe obession,obsession obessions,obsessions @@ -34932,6 +34943,7 @@ paremter,parameter paremters,parameters parentesis,parentheses,parenthesis parenthasis,parenthesis +parentheesis,parenthesis parenthese,parentheses parenthesed,parenthesized parenthesees,parentheses @@ -38813,8 +38825,12 @@ psrameter,parameter pssed,passed pssibility,possibility psudo,pseudo +psudocode,pseudocode +psudoterminal,pseudoterminal psuedo,pseudo +psuedocode,pseudocode psuedolayer,pseudolayer +psuedoterminal,pseudoterminal psuh,push psychadelic,psychedelic psychaitric,psychiatric @@ -43630,6 +43646,7 @@ serailized,serialized serailze,serialize serailzed,serialized serailzied,serialized +seralized,serialized serbain,serbian sercive,service sercived,serviced @@ -45047,6 +45064,7 @@ specificato,specification specificaton,specification specificatons,specifications specificed,specified +specificer,specifier specifices,specifics,specifies specifich,specify,specific specificially,specifically @@ -47965,6 +47983,7 @@ telegramm,telegram telegrapgh,telegraph telegrpah,telegraph telelevision,television +telementry,telemetry teleporing,teleporting teleportaion,teleportation teleportating,teleportation diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index 6065354..720596e 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -17481,6 +17481,7 @@ pub static WORD_TEL_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict dictgen::InsensitiveStr::Ascii("egrapgh"), dictgen::InsensitiveStr::Ascii("egrpah"), dictgen::InsensitiveStr::Ascii("elevision"), + dictgen::InsensitiveStr::Ascii("ementry"), dictgen::InsensitiveStr::Ascii("eporing"), dictgen::InsensitiveStr::Ascii("eportaion"), dictgen::InsensitiveStr::Ascii("eportating"), @@ -17504,6 +17505,7 @@ pub static WORD_TEL_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict &["telegraph"], &["telegraph"], &["television"], + &["telemetry"], &["teleporting"], &["teleportation"], &["teleportation"], @@ -27357,6 +27359,7 @@ pub static WORD_SPECIF_CHILDREN: dictgen::DictTable<&'static [&'static str]> = d dictgen::InsensitiveStr::Ascii("icaton"), dictgen::InsensitiveStr::Ascii("icatons"), dictgen::InsensitiveStr::Ascii("iced"), + dictgen::InsensitiveStr::Ascii("icer"), dictgen::InsensitiveStr::Ascii("ices"), dictgen::InsensitiveStr::Ascii("ich"), dictgen::InsensitiveStr::Ascii("icially"), @@ -27410,6 +27413,7 @@ pub static WORD_SPECIF_CHILDREN: dictgen::DictTable<&'static [&'static str]> = d &["specification"], &["specifications"], &["specified"], + &["specifier"], &["specifics", "specifies"], &["specify", "specific"], &["specifically"], @@ -31816,6 +31820,7 @@ pub static WORD_SERA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic dictgen::InsensitiveStr::Ascii("ilze"), dictgen::InsensitiveStr::Ascii("ilzed"), dictgen::InsensitiveStr::Ascii("ilzied"), + dictgen::InsensitiveStr::Ascii("lized"), ], values: &[ &["search"], @@ -31828,6 +31833,7 @@ pub static WORD_SERA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic &["serialize"], &["serialized"], &["serialized"], + &["serialized"], ], range: 2..=9, }; @@ -48663,12 +48669,25 @@ static WORD_PSU_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen:: pub static WORD_PSU_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { keys: &[ dictgen::InsensitiveStr::Ascii("do"), + dictgen::InsensitiveStr::Ascii("docode"), + dictgen::InsensitiveStr::Ascii("doterminal"), dictgen::InsensitiveStr::Ascii("edo"), + dictgen::InsensitiveStr::Ascii("edocode"), dictgen::InsensitiveStr::Ascii("edolayer"), + dictgen::InsensitiveStr::Ascii("edoterminal"), dictgen::InsensitiveStr::Ascii("h"), ], - values: &[&["pseudo"], &["pseudo"], &["pseudolayer"], &["push"]], - range: 1..=8, + values: &[ + &["pseudo"], + &["pseudocode"], + &["pseudoterminal"], + &["pseudo"], + &["pseudocode"], + &["pseudolayer"], + &["pseudoterminal"], + &["push"], + ], + range: 1..=11, }; static WORD_PSS_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { @@ -61222,6 +61241,7 @@ pub static WORD_PARE_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic dictgen::InsensitiveStr::Ascii("mters"), dictgen::InsensitiveStr::Ascii("ntesis"), dictgen::InsensitiveStr::Ascii("nthasis"), + dictgen::InsensitiveStr::Ascii("ntheesis"), dictgen::InsensitiveStr::Ascii("nthese"), dictgen::InsensitiveStr::Ascii("nthesed"), dictgen::InsensitiveStr::Ascii("nthesees"), @@ -61244,6 +61264,7 @@ pub static WORD_PARE_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic &["parameters"], &["parentheses", "parenthesis"], &["parenthesis"], + &["parenthesis"], &["parentheses"], &["parenthesized"], &["parentheses"], @@ -67007,6 +67028,7 @@ pub static WORD_OBE_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict dictgen::InsensitiveStr::Ascii("rsvation"), dictgen::InsensitiveStr::Ascii("rsvations"), dictgen::InsensitiveStr::Ascii("rsvers"), + dictgen::InsensitiveStr::Ascii("rver"), dictgen::InsensitiveStr::Ascii("serve"), dictgen::InsensitiveStr::Ascii("ssion"), dictgen::InsensitiveStr::Ascii("ssions"), @@ -67023,6 +67045,7 @@ pub static WORD_OBE_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict &["observation"], &["observations"], &["observers"], + &["observer"], &["observe"], &["obsession"], &["obsessions"], @@ -83473,6 +83496,7 @@ pub static WORD_JE_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg dictgen::InsensitiveStr::Ascii("rusalm"), dictgen::InsensitiveStr::Ascii("ruselam"), dictgen::InsensitiveStr::Ascii("ruslaem"), + dictgen::InsensitiveStr::Ascii("tbrain"), dictgen::InsensitiveStr::Ascii("welrey"), dictgen::InsensitiveStr::Ascii("werly"), dictgen::InsensitiveStr::Ascii("wl"), @@ -83501,6 +83525,7 @@ pub static WORD_JE_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg &["jerusalem"], &["jerusalem"], &["jerusalem"], + &["jetbrains"], &["jewelry"], &["jewelry"], &["jew", "jewel"], @@ -83554,6 +83579,7 @@ pub static WORD_JA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg dictgen::InsensitiveStr::Ascii("panes"), dictgen::InsensitiveStr::Ascii("panses"), dictgen::InsensitiveStr::Ascii("ques"), + dictgen::InsensitiveStr::Ascii("ring"), dictgen::InsensitiveStr::Ascii("smien"), dictgen::InsensitiveStr::Ascii("ugars"), dictgen::InsensitiveStr::Ascii("unary"), @@ -83607,6 +83633,7 @@ pub static WORD_JA_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg &["japanese"], &["japanese"], &["jacques"], + &["jarring"], &["jasmine"], &["jaguars"], &["january"], @@ -83720,6 +83747,7 @@ pub static WORD_IT_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg dictgen::InsensitiveStr::Ascii("eract"), dictgen::InsensitiveStr::Ascii("erater"), dictgen::InsensitiveStr::Ascii("eratered"), + dictgen::InsensitiveStr::Ascii("eratior"), dictgen::InsensitiveStr::Ascii("eratons"), dictgen::InsensitiveStr::Ascii("ereating"), dictgen::InsensitiveStr::Ascii("ereator"), @@ -83777,6 +83805,7 @@ pub static WORD_IT_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg &["interact"], &["iterator"], &["iterated"], + &["iterator"], &["iterations"], &["iterating"], &["iterator"], @@ -87496,6 +87525,7 @@ pub static WORD_INTEG_CHILDREN: dictgen::DictTable<&'static [&'static str]> = di dictgen::InsensitiveStr::Ascii("rarla"), dictgen::InsensitiveStr::Ascii("rarlo"), dictgen::InsensitiveStr::Ascii("ratie"), + dictgen::InsensitiveStr::Ascii("ratione"), dictgen::InsensitiveStr::Ascii("rato"), dictgen::InsensitiveStr::Ascii("ratron"), dictgen::InsensitiveStr::Ascii("reated"), @@ -87522,6 +87552,7 @@ pub static WORD_INTEG_CHILDREN: dictgen::DictTable<&'static [&'static str]> = di &["integrated"], &["integration"], &["integration"], + &["integration"], &["integrated"], &["interferes"], &["interfering"], @@ -87529,7 +87560,7 @@ pub static WORD_INTEG_CHILDREN: dictgen::DictTable<&'static [&'static str]> = di &["integrity"], &["integrity"], ], - range: 3..=6, + range: 3..=7, }; static WORD_INTEF_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { @@ -88593,6 +88624,7 @@ pub static WORD_INSE_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic dictgen::InsensitiveStr::Ascii("sitive"), dictgen::InsensitiveStr::Ascii("tad"), dictgen::InsensitiveStr::Ascii("ted"), + dictgen::InsensitiveStr::Ascii("tion"), ], values: &[ &["insects"], @@ -88636,6 +88668,7 @@ pub static WORD_INSE_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic &["insensitive"], &["instead"], &["inserted"], + &["insertion"], ], range: 1..=10, }; @@ -115452,6 +115485,7 @@ pub static WORD_EP_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg dictgen::InsensitiveStr::Ascii("siode"), dictgen::InsensitiveStr::Ascii("siodes"), dictgen::InsensitiveStr::Ascii("sionage"), + dictgen::InsensitiveStr::Ascii("slion"), dictgen::InsensitiveStr::Ascii("sorts"), dictgen::InsensitiveStr::Ascii("sresso"), dictgen::InsensitiveStr::Ascii("tied"), @@ -115495,6 +115529,7 @@ pub static WORD_EP_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictg &["episode"], &["episodes"], &["espionage"], + &["epsilon"], &["esports"], &["espresso"], &["emptied"], @@ -129940,6 +129975,7 @@ pub static WORD_DEN_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict dictgen::InsensitiveStr::Ascii("stiy"), dictgen::InsensitiveStr::Ascii("tistas"), dictgen::InsensitiveStr::Ascii("tistes"), + dictgen::InsensitiveStr::Ascii("yed"), ], values: &[ &["degenerate"], @@ -129975,6 +130011,7 @@ pub static WORD_DEN_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict &["density"], &["dentists"], &["dentists"], + &["denied"], ], range: 3..=12, }; @@ -134431,6 +134468,7 @@ pub static WORD_CURR_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic dictgen::InsensitiveStr::Ascii("iences"), dictgen::InsensitiveStr::Ascii("ious"), dictgen::InsensitiveStr::Ascii("net"), + dictgen::InsensitiveStr::Ascii("netly"), dictgen::InsensitiveStr::Ascii("nt"), dictgen::InsensitiveStr::Ascii("ntly"), dictgen::InsensitiveStr::Ascii("option"), @@ -134491,6 +134529,7 @@ pub static WORD_CURR_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic &["currencies"], &["curious"], &["current"], + &["currently"], &["current"], &["currently"], &["corruption"], @@ -145799,7 +145838,7 @@ pub static WORD_COMPLE_CHILDREN: dictgen::DictTable<&'static [&'static str]> = d &["completed"], &["completes"], &["completing"], - &["compilation"], + &["compilation", "completion"], &["completely"], &["complicate"], &["complicated"], @@ -162094,7 +162133,7 @@ static WORD_AUT_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen:: static WORD_AUT_CHILDREN: [Option<&dictgen::DictTrieNode<&'static [&'static str]>>; 26] = [ Some(&WORD_AUTA_NODE), None, - None, + Some(&WORD_AUTC_NODE), None, Some(&WORD_AUTE_NODE), None, @@ -163359,6 +163398,17 @@ pub static WORD_AUTE_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic range: 7..=9, }; +static WORD_AUTC_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { + children: dictgen::DictTrieChild::Flat(&WORD_AUTC_CHILDREN), + value: None, +}; + +pub static WORD_AUTC_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable { + keys: &[dictgen::InsensitiveStr::Ascii("omplete")], + values: &[&["autocomplete"]], + range: 7..=7, +}; + static WORD_AUTA_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode { children: dictgen::DictTrieChild::Flat(&WORD_AUTA_CHILDREN), value: None, @@ -173620,6 +173670,7 @@ pub static WORD_AGG_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict dictgen::InsensitiveStr::Ascii("aravates"), dictgen::InsensitiveStr::Ascii("egate"), dictgen::InsensitiveStr::Ascii("egrate"), + dictgen::InsensitiveStr::Ascii("ergate"), dictgen::InsensitiveStr::Ascii("essive"), dictgen::InsensitiveStr::Ascii("essively"), dictgen::InsensitiveStr::Ascii("gregate"), @@ -173656,6 +173707,7 @@ pub static WORD_AGG_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict &["aggravates"], &["aggregate"], &["aggregate"], + &["aggregate"], &["aggressive"], &["aggressively"], &["aggregate"],