Skip to content

Commit

Permalink
feat(dict): Add assorted typos
Browse files Browse the repository at this point in the history
baged -> bagged
baged -> badge
codesbase -> codebase (+ variants)
depercate -> deprecate (+ variants)
fallthough -> fallthrough
  • Loading branch information
clo4 committed Oct 11, 2022
1 parent 9576a03 commit 611bd09
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
7 changes: 7 additions & 0 deletions crates/typos-dict/assets/words.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5246,6 +5246,7 @@ badnits,bandits
badnwagon,bandwagon
badnwidth,bandwidth
bage,bag
baged,badge,bagged
bahaving,behaving
bahavior,behavior
bahavioral,behavioral
Expand Down Expand Up @@ -8803,6 +8804,8 @@ cocuments,document
codde,code,coded,coddle
codeing,coding
codepoitn,codepoint
codesbase,codebase
codesbases,codebases
codesc,codecs
codespel,codespell
codesream,codestream
Expand Down Expand Up @@ -14521,6 +14524,9 @@ depenent,dependent
depenently,dependently
depening,depending,deepening
depennding,depending
depercate,deprecate
depercated,deprecated
depercation,deprecation
deperecated,deprecated
deperecation,deprecation
depicitng,depicting
Expand Down Expand Up @@ -20941,6 +20947,7 @@ fallatious,fallacious
fallbck,fallback
fallhrough,fallthrough
fallicious,fallacious
fallthough,fallthrough
fallthruogh,fallthrough
falltrough,fallthrough
falmethrower,flamethrower
Expand Down
30 changes: 24 additions & 6 deletions crates/typos-dict/src/dict_codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108176,6 +108176,7 @@ pub static WORD_FAL_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
dictgen::InsensitiveStr::Ascii("lbck"),
dictgen::InsensitiveStr::Ascii("lhrough"),
dictgen::InsensitiveStr::Ascii("licious"),
dictgen::InsensitiveStr::Ascii("lthough"),
dictgen::InsensitiveStr::Ascii("lthruogh"),
dictgen::InsensitiveStr::Ascii("ltrough"),
dictgen::InsensitiveStr::Ascii("methrower"),
Expand Down Expand Up @@ -108210,6 +108211,7 @@ pub static WORD_FAL_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
&["fallacious"],
&["fallthrough"],
&["fallthrough"],
&["fallthrough"],
&["flamethrower"],
&["falsely"],
&["flash", "false"],
Expand Down Expand Up @@ -129514,11 +129516,20 @@ static WORD_DEPER_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen

pub static WORD_DEPER_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable {
keys: &[
dictgen::InsensitiveStr::Ascii("cate"),
dictgen::InsensitiveStr::Ascii("cated"),
dictgen::InsensitiveStr::Ascii("cation"),
dictgen::InsensitiveStr::Ascii("ecated"),
dictgen::InsensitiveStr::Ascii("ecation"),
],
values: &[&["deprecated"], &["deprecation"]],
range: 6..=7,
values: &[
&["deprecate"],
&["deprecated"],
&["deprecation"],
&["deprecated"],
&["deprecation"],
],
range: 4..=7,
};

static WORD_DEPEN_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {
Expand Down Expand Up @@ -149046,6 +149057,8 @@ pub static WORD_COD_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
dictgen::InsensitiveStr::Ascii("de"),
dictgen::InsensitiveStr::Ascii("eing"),
dictgen::InsensitiveStr::Ascii("epoitn"),
dictgen::InsensitiveStr::Ascii("esbase"),
dictgen::InsensitiveStr::Ascii("esbases"),
dictgen::InsensitiveStr::Ascii("esc"),
dictgen::InsensitiveStr::Ascii("espel"),
dictgen::InsensitiveStr::Ascii("esream"),
Expand All @@ -149062,6 +149075,8 @@ pub static WORD_COD_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
&["code", "coded", "coddle"],
&["coding"],
&["codepoint"],
&["codebase"],
&["codebases"],
&["codecs"],
&["codespell"],
&["codestream"],
Expand All @@ -149074,7 +149089,7 @@ pub static WORD_COD_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict
&["conductor"],
&["conducts"],
],
range: 2..=6,
range: 2..=7,
};

static WORD_COC_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {
Expand Down Expand Up @@ -161115,9 +161130,12 @@ static WORD_BAG_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::
};

pub static WORD_BAG_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dictgen::DictTable {
keys: &[dictgen::InsensitiveStr::Ascii("e")],
values: &[&["bag"]],
range: 1..=1,
keys: &[
dictgen::InsensitiveStr::Ascii("e"),
dictgen::InsensitiveStr::Ascii("ed"),
],
values: &[&["bag"], &["badge", "bagged"]],
range: 1..=2,
};

static WORD_BAD_NODE: dictgen::DictTrieNode<&'static [&'static str]> = dictgen::DictTrieNode {
Expand Down

0 comments on commit 611bd09

Please sign in to comment.