Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dict): Add assorted typos #591

Merged
merged 1 commit into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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