From d9ace5fd25961e04754522f92c13862ee64e4746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Tue, 24 Jan 2023 12:55:23 +0100 Subject: [PATCH 1/3] fix(dict): "substituters" is valid https://en.wiktionary.org/wiki/substituters --- crates/typos-dict/assets/words.csv | 1 - crates/typos-dict/src/dict_codegen.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index e04b290..09e1531 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -46769,7 +46769,6 @@ substituions,substitutions substiture,substitute substitures,substitutes substitutents,substitutes -substituters,substitutes substitutie,substitutes substitutivo,substitution substituto,substitution diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index d5ce711..5b74a8a 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -22355,7 +22355,6 @@ pub static WORD_SUBSTI_CHILDREN: dictgen::DictTable<&'static [&'static str]> = d dictgen::InsensitiveStr::Ascii("ture"), dictgen::InsensitiveStr::Ascii("tures"), dictgen::InsensitiveStr::Ascii("tutents"), - dictgen::InsensitiveStr::Ascii("tuters"), dictgen::InsensitiveStr::Ascii("tutie"), dictgen::InsensitiveStr::Ascii("tutivo"), dictgen::InsensitiveStr::Ascii("tuto"), @@ -22391,7 +22390,6 @@ pub static WORD_SUBSTI_CHILDREN: dictgen::DictTable<&'static [&'static str]> = d &["substitutes"], &["substitutes"], &["substitutes"], - &["substitutes"], &["substitution"], &["substitution"], &["substitutes"], From 3817b970173d6ffa31c5e859c796761c6e280158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Tue, 24 Jan 2023 12:56:13 +0100 Subject: [PATCH 2/3] =?UTF-8?q?fix(dict):=20"substitutents"=20=E2=86=92=20?= =?UTF-8?q?"substituents"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit is a more likely replacement than "substitutes". --- crates/typos-dict/assets/words.csv | 2 +- crates/typos-dict/src/dict_codegen.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 09e1531..ed512c1 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -46768,7 +46768,7 @@ substituion,substitution substituions,substitutions substiture,substitute substitures,substitutes -substitutents,substitutes +substitutents,substituents substitutie,substitutes substitutivo,substitution substituto,substitution diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index 5b74a8a..dff584a 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -22388,7 +22388,7 @@ pub static WORD_SUBSTI_CHILDREN: dictgen::DictTable<&'static [&'static str]> = d &["substitutions"], &["substitute"], &["substitutes"], - &["substitutes"], + &["substituents"], &["substitutes"], &["substitution"], &["substitution"], From 40d3de3ffa74202e176295051a30f11780a65c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Tue, 24 Jan 2023 15:54:08 +0100 Subject: [PATCH 3/3] docs: Mention dependencies in CONTRIBUTING --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 27fc921..5ae7e8f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -37,7 +37,7 @@ Format: `typo,correction[,correction...]` 2. Code-gen the dictionary -Run +With `cargo` and `rustfmt` installed, run ```console $ SNAPSHOTS=overwrite cargo test --workspace ```