Skip to content

Commit 83d7bf4

Browse files
committed
Release 0.5.6
[email protected] Generated by cargo-workspaces
1 parent 0437102 commit 83d7bf4

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

harper-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "harper-core"
3-
version = "0.5.5"
3+
version = "0.5.6"
44
edition = "2021"
55
description = "The language checker for artists."
66
license = "MIT OR Apache-2.0"

harper-core/src/linting/matcher.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,15 @@ impl Matcher {
144144
"That","s" => "that is",
145145
"ms" => "milliseconds",
146146
"LLM" => "large language model",
147-
"LLMs" => "large language models"
147+
"LLMs" => "large language models",
148+
"t","he" => "the",
149+
"the","hing" => "the thing",
150+
"The","hing" => "The thing",
151+
"need","helps" => "need help",
152+
"all","though" => "although",
153+
"All","though" => "although",
154+
"al","though" => "although",
155+
"Al","though" => "although"
148156
};
149157

150158
triggers.push(Rule {

harper-core/src/spell/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub fn suggest_correct_spelling<'a>(
8888
found.extend(found_dist.into_iter().map(|v| v.0));
8989

9090
// Finally, swap the lowest edit distance word with the shortest.
91-
if found.len() >= 2 {
91+
if found.len() >= 3 {
9292
found.swap(0, 2);
9393
}
9494

0 commit comments

Comments
 (0)