Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

Release 0.5.6

Elijah Potter83d7bf48800e
diff --git a/Cargo.lock b/Cargo.lock
index 912df2b6f..70bdc8263 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -456,7 +456,7 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253"
[[package]]
name = "harper-core"
-version = "0.5.5"
+version = "0.5.6"
dependencies = [
"divan",
"hashbrown",
diff --git a/harper-core/Cargo.toml b/harper-core/Cargo.toml
index e5694e034..1f9afb2de 100644
--- a/harper-core/Cargo.toml
+++ b/harper-core/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "harper-core"
-version = "0.5.5"
+version = "0.5.6"
edition = "2021"
description = "The language checker for artists."
license = "MIT OR Apache-2.0"
diff --git a/harper-core/src/linting/matcher.rs b/harper-core/src/linting/matcher.rs
index ac5beffcb..c5879820e 100644
--- a/harper-core/src/linting/matcher.rs
+++ b/harper-core/src/linting/matcher.rs
@@ -144,7 +144,15 @@ impl Matcher {
"That","s" => "that is",
"ms" => "milliseconds",
"LLM" => "large language model",
- "LLMs" => "large language models"
+ "LLMs" => "large language models",
+ "t","he" => "the",
+ "the","hing" => "the thing",
+ "The","hing" => "The thing",
+ "need","helps" => "need help",
+ "all","though" => "although",
+ "All","though" => "although",
+ "al","though" => "although",
+ "Al","though" => "although"
};
triggers.push(Rule {
diff --git a/harper-core/src/spell/mod.rs b/harper-core/src/spell/mod.rs
index e45b5eae0..8000e41b0 100644
--- a/harper-core/src/spell/mod.rs
+++ b/harper-core/src/spell/mod.rs
@@ -88,7 +88,7 @@ pub fn suggest_correct_spelling<'a>(
found.extend(found_dist.into_iter().map(|v| v.0));
// Finally, swap the lowest edit distance word with the shortest.
- if found.len() >= 2 {
+ if found.len() >= 3 {
found.swap(0, 2);
}