Skip to content

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

Release 0.23.0

Elijah Potter48ada9778230
diff --git a/Cargo.lock b/Cargo.lock
index 3baa5df3e..187becdaa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -700,7 +700,7 @@ dependencies = [
[[package]]
name = "harper-comments"
-version = "0.22.0"
+version = "0.23.0"
dependencies = [
"harper-core",
"harper-html",
@@ -731,7 +731,7 @@ dependencies = [
[[package]]
name = "harper-core"
-version = "0.22.0"
+version = "0.23.0"
dependencies = [
"blanket",
"cached",
@@ -759,7 +759,7 @@ dependencies = [
[[package]]
name = "harper-html"
-version = "0.22.0"
+version = "0.23.0"
dependencies = [
"harper-core",
"harper-tree-sitter",
@@ -770,7 +770,7 @@ dependencies = [
[[package]]
name = "harper-literate-haskell"
-version = "0.22.0"
+version = "0.23.0"
dependencies = [
"harper-comments",
"harper-core",
@@ -781,7 +781,7 @@ dependencies = [
[[package]]
name = "harper-ls"
-version = "0.22.0"
+version = "0.23.0"
dependencies = [
"anyhow",
"clap",
@@ -806,7 +806,7 @@ dependencies = [
[[package]]
name = "harper-tree-sitter"
-version = "0.22.0"
+version = "0.23.0"
dependencies = [
"harper-core",
"tree-sitter",
@@ -814,7 +814,7 @@ dependencies = [
[[package]]
name = "harper-typst"
-version = "0.22.0"
+version = "0.23.0"
dependencies = [
"harper-core",
"itertools 0.14.0",
diff --git a/harper-cli/Cargo.toml b/harper-cli/Cargo.toml
index 494d29420..40fe9c015 100644
--- a/harper-cli/Cargo.toml
+++ b/harper-cli/Cargo.toml
@@ -10,10 +10,10 @@ repository = "https://github.com/automattic/harper"
anyhow = "1.0.96"
ariadne = "0.4.1"
clap = { version = "4.5.29", features = ["derive"] }
-harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.22.0" }
-harper-core = { path = "../harper-core", version = "0.22.0" }
-harper-comments = { path = "../harper-comments", version = "0.22.0" }
-harper-typst = { path = "../harper-typst", version = "0.22.0" }
+harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.23.0" }
+harper-core = { path = "../harper-core", version = "0.23.0" }
+harper-comments = { path = "../harper-comments", version = "0.23.0" }
+harper-typst = { path = "../harper-typst", version = "0.23.0" }
hashbrown = "0.15.2"
serde = { version = "1.0.218", features = ["derive"] }
serde_json = "1.0.138"
diff --git a/harper-comments/Cargo.toml b/harper-comments/Cargo.toml
index 246527e08..06acb26f7 100644
--- a/harper-comments/Cargo.toml
+++ b/harper-comments/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "harper-comments"
-version = "0.22.0"
+version = "0.23.0"
edition = "2024"
description = "The language checker for developers."
license = "Apache-2.0"
@@ -8,9 +8,9 @@ readme = "README.md"
repository = "https://github.com/automattic/harper"
[dependencies]
-harper-core = { path = "../harper-core", version = "0.22.0" }
-harper-html = { path = "../harper-html", version = "0.22.0" }
-harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.22.0" }
+harper-core = { path = "../harper-core", version = "0.23.0" }
+harper-html = { path = "../harper-html", version = "0.23.0" }
+harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.23.0" }
tree-sitter = "0.20.10"
tree-sitter-rust = "0.20.4"
tree-sitter-typescript = "0.20.3"
diff --git a/harper-core/Cargo.toml b/harper-core/Cargo.toml
index edebd00da..ac5a2fa52 100644
--- a/harper-core/Cargo.toml
+++ b/harper-core/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "harper-core"
-version = "0.22.0"
+version = "0.23.0"
edition = "2024"
description = "The language checker for developers."
license = "Apache-2.0"
diff --git a/harper-html/Cargo.toml b/harper-html/Cargo.toml
index 0e0490352..a271210b6 100644
--- a/harper-html/Cargo.toml
+++ b/harper-html/Cargo.toml
@@ -1,14 +1,14 @@
[package]
name = "harper-html"
-version = "0.22.0"
+version = "0.23.0"
edition = "2024"
description = "The language checker for developers."
license = "Apache-2.0"
repository = "https://github.com/automattic/harper"
[dependencies]
-harper-core = { path = "../harper-core", version = "0.22.0" }
-harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.22.0" }
+harper-core = { path = "../harper-core", version = "0.23.0" }
+harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.23.0" }
tree-sitter-html = "0.19.0"
tree-sitter = "0.20.10"
diff --git a/harper-literate-haskell/Cargo.toml b/harper-literate-haskell/Cargo.toml
index ceac5003d..3d93ac17f 100644
--- a/harper-literate-haskell/Cargo.toml
+++ b/harper-literate-haskell/Cargo.toml
@@ -1,14 +1,14 @@
[package]
name = "harper-literate-haskell"
-version = "0.22.0"
+version = "0.23.0"
edition = "2024"
description = "The language checker for developers."
license = "Apache-2.0"
repository = "https://github.com/automattic/harper"
[dependencies]
-harper-core = { path = "../harper-core", version = "0.22.0" }
-harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.22.0" }
-harper-comments = { path = "../harper-comments", version = "0.22.0" }
+harper-core = { path = "../harper-core", version = "0.23.0" }
+harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.23.0" }
+harper-comments = { path = "../harper-comments", version = "0.23.0" }
itertools = "0.14.0"
paste = "1.0.14"
diff --git a/harper-ls/Cargo.toml b/harper-ls/Cargo.toml
index 28ac21a92..cf9a4a219 100644
--- a/harper-ls/Cargo.toml
+++ b/harper-ls/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "harper-ls"
-version = "0.22.0"
+version = "0.23.0"
edition = "2024"
description = "The language checker for developers."
license = "Apache-2.0"
@@ -8,11 +8,11 @@ readme = "README.md"
repository = "https://github.com/automattic/harper"
[dependencies]
-harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.22.0" }
-harper-core = { path = "../harper-core", version = "0.22.0", features = ["concurrent"] }
-harper-comments = { path = "../harper-comments", version = "0.22.0" }
-harper-typst = { path = "../harper-typst", version = "0.22.0" }
-harper-html = { path = "../harper-html", version = "0.22.0" }
+harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.23.0" }
+harper-core = { path = "../harper-core", version = "0.23.0", features = ["concurrent"] }
+harper-comments = { path = "../harper-comments", version = "0.23.0" }
+harper-typst = { path = "../harper-typst", version = "0.23.0" }
+harper-html = { path = "../harper-html", version = "0.23.0" }
tower-lsp = "0.20.0"
tokio = { version = "1.43.0", features = ["fs", "rt", "rt-multi-thread", "macros", "io-std", "io-util", "net"] }
clap = { version = "4.5.29", features = ["derive"] }
diff --git a/harper-tree-sitter/Cargo.toml b/harper-tree-sitter/Cargo.toml
index 3c6722129..72780fd2d 100644
--- a/harper-tree-sitter/Cargo.toml
+++ b/harper-tree-sitter/Cargo.toml
@@ -1,11 +1,11 @@
[package]
name = "harper-tree-sitter"
-version = "0.22.0"
+version = "0.23.0"
edition = "2024"
description = "The language checker for developers."
license = "Apache-2.0"
repository = "https://github.com/automattic/harper"
[dependencies]
-harper-core = { path = "../harper-core", version = "0.22.0" }
+harper-core = { path = "../harper-core", version = "0.23.0" }
tree-sitter = "0.20.10"
diff --git a/harper-typst/Cargo.toml b/harper-typst/Cargo.toml
index ec68588cc..0f546ff34 100644
--- a/harper-typst/Cargo.toml
+++ b/harper-typst/Cargo.toml
@@ -1,13 +1,13 @@
[package]
name = "harper-typst"
-version = "0.22.0"
+version = "0.23.0"
edition = "2024"
description = "The language checker for developers."
license = "Apache-2.0"
repository = "https://github.com/automattic/harper"
[dependencies]
-harper-core = { path = "../harper-core", version = "0.22.0" }
+harper-core = { path = "../harper-core", version = "0.23.0" }
typst-syntax = { version = "0.13.0" }
ordered-float = { version = "5.0.0", features = ["serde"] }
itertools = "0.14.0"
diff --git a/harper-wasm/Cargo.toml b/harper-wasm/Cargo.toml
index 929a6202d..8f95aa7a8 100644
--- a/harper-wasm/Cargo.toml
+++ b/harper-wasm/Cargo.toml
@@ -14,7 +14,7 @@ console_error_panic_hook = "0.1.7"
tracing = "0.1.41"
tracing-wasm = "0.2.1"
wasm-bindgen = "0.2.97"
-harper-core = { path = "../harper-core", version = "0.22.0", features = ["concurrent"] }
+harper-core = { path = "../harper-core", version = "0.23.0", features = ["concurrent"] }
once_cell = "1.20.3"
serde-wasm-bindgen = "0.6.5"
serde_json = "1.0.138"
diff --git a/packages/harper.js/package.json b/packages/harper.js/package.json
index 3c70e63e1..e5daaf6e0 100644
--- a/packages/harper.js/package.json
+++ b/packages/harper.js/package.json
@@ -1,6 +1,6 @@
{
"name": "harper.js",
- "version": "0.22.0",
+ "version": "0.23.0",
"license": "Apache-2.0",
"author": "Elijah Potter",
"description": "The grammar checker for developers.",
diff --git a/packages/vscode-plugin/package.json b/packages/vscode-plugin/package.json
index ca7afa9f6..68957ab0e 100644
--- a/packages/vscode-plugin/package.json
+++ b/packages/vscode-plugin/package.json
@@ -2,7 +2,7 @@
"name": "harper",
"displayName": "Harper",
"description": "The grammar checker for developers",
- "version": "0.22.0",
+ "version": "0.23.0",
"private": true,
"author": "Elijah Potter",
"publisher": "elijah-potter",
@@ -145,7 +145,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `and the like`."
+ "description": "Fixes the typo in `and the like`."
},
"harper.linters.Anybody": {
"scope": "resource",
@@ -211,7 +211,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `bad rap`."
+ "description": "Changes `bed rap` to the proper idiom `bad rap`."
},
"harper.linters.BaitedBreath": {
"scope": "resource",
@@ -235,13 +235,13 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `bated breath`."
+ "description": "Changes `baited breath` to the correct `bated breath`."
},
"harper.linters.BeckAndCall": {
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `beck and call`."
+ "description": "Fixes `back and call` to `beck and call`."
},
"harper.linters.BeenThere": {
"scope": "resource",
@@ -255,6 +255,12 @@
"default": false,
"description": "This rule looks for particularly boring or overused words. Using varied language is an easy way to keep a reader's attention."
},
+ "harper.linters.ByAccident": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Incorrect preposition: `by accident` is the idiomatic expression."
+ },
"harper.linters.CanBeSeen": {
"scope": "resource",
"type": "boolean",
@@ -309,6 +315,12 @@
"default": true,
"description": "When making quick edits, it is common for authors to change the value of a number without changing its suffix. This rule looks for these cases, for example: `2st`."
},
+ "harper.linters.Countries": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "When referring to Countries, make sure to treat it as a proper noun."
+ },
"harper.linters.CurrencyPlacement": {
"scope": "resource",
"type": "boolean",
@@ -361,7 +373,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `en masse`."
+ "description": "Detects variants like `on mass` or `in mass` and suggests `en masse`."
},
"harper.linters.Everywhere": {
"scope": "resource",
@@ -457,13 +469,13 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `human life`."
+ "description": "Changes `human live` to `human life`."
},
"harper.linters.HungerPang": {
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `hunger pang`."
+ "description": "Corrects `hunger pain` to `hunger pang`."
},
"harper.linters.HyphenateNumberDay": {
"scope": "resource",
@@ -477,6 +489,12 @@
"default": true,
"description": "Fixes the incorrect spacing in `I a m` to properly form `I am`."
},
+ "harper.linters.InThe": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Detects and corrects a spacing error where `in the` is mistakenly written as `int he`. Proper spacing is essential for readability and grammatical correctness in common phrases."
+ },
"harper.linters.Insofar": {
"scope": "resource",
"type": "boolean",
@@ -501,6 +519,12 @@
"default": true,
"description": "Looks for incorrect spacing inside the closed compound `into`."
},
+ "harper.linters.IsKnownFor": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Typo: `known` is the correct past participle."
+ },
"harper.linters.ItCan": {
"scope": "resource",
"type": "boolean",
@@ -523,7 +547,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `kind regards`."
+ "description": "Changes `kid regards` to `kind regards`."
},
"harper.linters.Koreas": {
"scope": "resource",
@@ -547,7 +571,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `let alone`."
+ "description": "Changes `let along` to `let alone`."
},
"harper.linters.LetsConfusion": {
"scope": "resource",
@@ -633,6 +657,12 @@
"default": true,
"description": "Looks for incorrect spacing inside the closed compound `misused`."
},
+ "harper.linters.ModalOf": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Detects `of` mistakenly used with `would`, `could`, `should`, etc."
+ },
"harper.linters.Multicore": {
"scope": "resource",
"type": "boolean",
@@ -675,17 +705,17 @@
"default": true,
"description": "Looks for incorrect spacing inside the closed compound `myself`."
},
- "harper.linters.NeedHelp": {
+ "harper.linters.NationalCapitals": {
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `need help`."
+ "description": "When referring to national capitals, make sure to treat it as a proper noun."
},
- "harper.linters.NoLonger": {
+ "harper.linters.NeedHelp": {
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `no longer`."
+ "description": "Changes `ned help` to the correct `need help`."
},
"harper.linters.NoOxfordComma": {
"scope": "resource",
@@ -739,7 +769,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `of course`."
+ "description": "Detects the non‐idiomatic phrase `off course` and suggests the correct form `of course`."
},
"harper.linters.OperativeSystem": {
"scope": "resource",
@@ -807,6 +837,12 @@
"default": true,
"description": "Ensure proper capitalization of Pocket Casts and Pocket Casts Plus as brand names."
},
+ "harper.linters.PointIsMoot": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Typo: `moot` (meaning debatable) is correct rather than `mute`."
+ },
"harper.linters.PossessiveYour": {
"scope": "resource",
"type": "boolean",
@@ -865,7 +901,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `sneaking suspicion`."
+ "description": "Changes `sneaky suspicion` to `sneaking suspicion`."
},
"harper.linters.Somebody": {
"scope": "resource",
@@ -907,7 +943,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `special attention`."
+ "description": "Changes `spacial attention` to `special attention`."
},
"harper.linters.SpellCheck": {
"scope": "resource",
@@ -931,7 +967,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `supposed to`."
+ "description": "Fixes `suppose to` to the correct `supposed to`."
},
"harper.linters.TerminatingConjunctions": {
"scope": "resource",
@@ -943,7 +979,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `that challenged`."
+ "description": "Changes `the challenged` to `that challenged` to fix the misspelling."
},
"harper.linters.ThatThis": {
"scope": "resource",
@@ -979,7 +1015,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `thought process`."
+ "description": "Changes `though process` to `thought process`."
},
"harper.linters.TumblrNames": {
"scope": "resource",
@@ -991,7 +1027,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "Looks for slight improper modifications to the phrase `turn it off`."
+ "description": "Fixes the mistake in the phrase `turn it off`."
},
"harper.linters.UnclosedQuotes": {
"scope": "resource",
@@ -1041,6 +1077,12 @@
"default": true,
"description": "Ensures `was aloud` and `were aloud` are corrected to `was allowed` or `were allowed` when referring to permission."
},
+ "harper.linters.WaveFunction": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Identifies the mistake of merging `wave` and `function` into one word. In quantum mechanics, a `wave function` (written as two words) describes the mathematical function that represents the quantum state of a particle or system. Correct usage is crucial for clear and accurate scientific communication."
+ },
"harper.linters.Whereas": {
"scope": "resource",
"type": "boolean",
@@ -1059,6 +1101,12 @@
"default": true,
"description": "Looks for incorrect spacing inside the closed compound `widespread`."
},
+ "harper.linters.WillContain": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Incorrect verb form: `will` should be followed by the base form `contain`."
+ },
"harper.linters.WordPressDotcom": {
"scope": "resource",
"type": "boolean",