From fcac819478986f5272b5d45e3b19db924291d78f Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 23 Oct 2021 08:21:51 -0500 Subject: [PATCH] fix: Address false positives Hard to say how to handle `doen't` since we don't handle contractions. For now, I've gone ahead and added corrections to the part of the contraction. Hopefully that doesn't confuse people Part of #362 --- crates/typos-dict/assets/words.csv | 8 ++++---- crates/typos-dict/src/dict_codegen.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/typos-dict/assets/words.csv b/crates/typos-dict/assets/words.csv index 0b06f52..c239643 100644 --- a/crates/typos-dict/assets/words.csv +++ b/crates/typos-dict/assets/words.csv @@ -15063,11 +15063,11 @@ deviceremoveable,deviceremovable devicesr,devices devicess,devices devicest,devices -devide,divide +devide,divide,device devided,divided devider,divider deviders,dividers -devides,divides +devides,divides,devices deviding,dividing deviece,device devied,device @@ -16677,8 +16677,8 @@ documnet,document documument,document docunment,document doed,does -doen,done -doens,does +doen,done,don,doesn +doens,does,doesn doese,does doesing,doing,does,dosing,dozing doess,does diff --git a/crates/typos-dict/src/dict_codegen.rs b/crates/typos-dict/src/dict_codegen.rs index daebc72..1eda587 100644 --- a/crates/typos-dict/src/dict_codegen.rs +++ b/crates/typos-dict/src/dict_codegen.rs @@ -119507,8 +119507,8 @@ pub static WORD_DOE_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dict ], values: &[ &["does"], - &["done"], - &["does"], + &["done", "don", "doesn"], + &["does", "doesn"], &["does"], &["doing", "does", "dosing", "dozing"], &["does"], @@ -125211,11 +125211,11 @@ pub static WORD_DEVI_CHILDREN: dictgen::DictTable<&'static [&'static str]> = dic &["devices"], &["devices"], &["devices"], - &["divide"], + &["divide", "device"], &["divided"], &["divider"], &["dividers"], - &["divides"], + &["divides", "devices"], &["dividing"], &["device"], &["device"],