fix(core): ensure hes is corrected properly

This commit is contained in:
Elijah Potter 2025-06-30 09:28:52 -06:00
parent cd534b6cc4
commit c66e404dc1
3 changed files with 21 additions and 3 deletions

View file

@ -27163,7 +27163,7 @@ gyrofrequency/NgS
gyroscope/NgS
gyroscopic/J
gyve/NVgGdS
h/~NVJnSXZGvz # removed `>` 'her' is not comparative of 'h'
h/~NVJnXZGvz # removed `>` 'her' is not comparative of 'h'
h'm/
ha/~
haberdasher/NSg

View file

@ -387,4 +387,22 @@ mod tests {
0,
);
}
#[test]
fn corrects_hes() {
assert_suggestion_result(
"hes",
SpellCheck::new(FstDictionary::curated(), Dialect::British),
"he's",
);
}
#[test]
fn corrects_shes() {
assert_suggestion_result(
"shes",
SpellCheck::new(FstDictionary::curated(), Dialect::British),
"she's",
);
}
}

View file

@ -773,8 +773,8 @@ Message: |
216 | that they are theory, abstraction (modeling), and design. Amnon H. Eden
| ^~ Did you mean to spell `H.` this way?
Suggest:
- Replace with: “Hi
- Replace with: “Ha
- Replace with: “Ht
- Replace with: “H
- Replace with: “He”