From 8143c3b24c561f7e236bfa27ae7eebec88cec091 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 30 Aug 2023 10:05:34 -0500 Subject: [PATCH] fix(dict): Treat arguement as a misspelling Fixes #816 --- crates/typos-dict/assets/words.csv | 5 +++-- crates/typos-dict/src/dict_codegen.rs | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 8d8af1e..6fd4757 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -4306,12 +4306,13 @@ arguabley,arguably arguablly,arguably argubaly,arguably argubly,arguably +arguement,argument arguements,arguments -arguemet,arguement +arguemet,argument arguemnet,argument arguemnt,argument arguemnts,arguments -arguemtn,arguement,argument +arguemtn,argument arguemtns,arguments arguents,arguments argumant,argument diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index 31c764c..9031e33 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -197801,6 +197801,7 @@ pub static WORD_ARG_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict dictgen::InsensitiveStr::Ascii("uablly"), dictgen::InsensitiveStr::Ascii("ubaly"), dictgen::InsensitiveStr::Ascii("ubly"), + dictgen::InsensitiveStr::Ascii("uement"), dictgen::InsensitiveStr::Ascii("uements"), dictgen::InsensitiveStr::Ascii("uemet"), dictgen::InsensitiveStr::Ascii("uemnet"), @@ -197859,12 +197860,13 @@ pub static WORD_ARG_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict &["arguably"], &["arguably"], &["arguably"], + &["argument"], &["arguments"], - &["arguement"], + &["argument"], &["argument"], &["argument"], &["arguments"], - &["arguement", "argument"], + &["argument"], &["arguments"], &["arguments"], &["argument"],