Skip to content

Commit

Permalink
Release 0.5.6
Browse files Browse the repository at this point in the history
[email protected]

Generated by cargo-workspaces
  • Loading branch information
elijah-potter committed Jan 30, 2024
1 parent 0437102 commit 83d7bf4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion harper-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 9 additions & 1 deletion harper-core/src/linting/matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion harper-core/src/spell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 83d7bf4

Please sign in to comment.