mirror of
https://github.com/Automattic/harper.git
synced 2025-07-07 21:15:01 +00:00
fix(core): ensure hes
is corrected properly
This commit is contained in:
parent
cd534b6cc4
commit
c66e404dc1
3 changed files with 21 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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”
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue