Skip to content

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

Release 0.21.0

Elijah Potterb1eb7ebbc76f
diff --git a/Cargo.lock b/Cargo.lock
index 83fd47f0f..861080cc6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -614,7 +614,7 @@ dependencies = [
[[package]]
name = "harper-comments"
-version = "0.20.0"
+version = "0.21.0"
dependencies = [
"harper-core",
"harper-html",
@@ -645,7 +645,7 @@ dependencies = [
[[package]]
name = "harper-core"
-version = "0.20.0"
+version = "0.21.0"
dependencies = [
"blanket",
"criterion",
@@ -672,7 +672,7 @@ dependencies = [
[[package]]
name = "harper-html"
-version = "0.20.0"
+version = "0.21.0"
dependencies = [
"harper-core",
"harper-tree-sitter",
@@ -683,7 +683,7 @@ dependencies = [
[[package]]
name = "harper-literate-haskell"
-version = "0.20.0"
+version = "0.21.0"
dependencies = [
"harper-comments",
"harper-core",
@@ -694,7 +694,7 @@ dependencies = [
[[package]]
name = "harper-ls"
-version = "0.20.0"
+version = "0.21.0"
dependencies = [
"anyhow",
"clap",
@@ -719,7 +719,7 @@ dependencies = [
[[package]]
name = "harper-tree-sitter"
-version = "0.20.0"
+version = "0.21.0"
dependencies = [
"harper-core",
"tree-sitter",
@@ -727,7 +727,7 @@ dependencies = [
[[package]]
name = "harper-typst"
-version = "0.20.0"
+version = "0.21.0"
dependencies = [
"harper-core",
"itertools 0.14.0",
diff --git a/harper-cli/Cargo.toml b/harper-cli/Cargo.toml
index 49fba1821..2746937bb 100644
--- a/harper-cli/Cargo.toml
+++ b/harper-cli/Cargo.toml
@@ -10,10 +10,10 @@ repository = "https://github.com/automattic/harper"
anyhow = "1.0.95"
ariadne = "0.4.1"
clap = { version = "4.5.28", features = ["derive"] }
-harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.20.0" }
-harper-core = { path = "../harper-core", version = "0.20.0" }
-harper-comments = { path = "../harper-comments", version = "0.20.0" }
-harper-typst = { path = "../harper-typst", version = "0.20.0" }
+harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.21.0" }
+harper-core = { path = "../harper-core", version = "0.21.0" }
+harper-comments = { path = "../harper-comments", version = "0.21.0" }
+harper-typst = { path = "../harper-typst", version = "0.21.0" }
hashbrown = "0.15.2"
serde = { version = "1.0.214", features = ["derive"] }
serde_json = "1.0.138"
diff --git a/harper-comments/Cargo.toml b/harper-comments/Cargo.toml
index 7c0ae346f..883a8563a 100644
--- a/harper-comments/Cargo.toml
+++ b/harper-comments/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "harper-comments"
-version = "0.20.0"
+version = "0.21.0"
edition = "2021"
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.20.0" }
-harper-html = { path = "../harper-html", version = "0.20.0" }
-harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.20.0" }
+harper-core = { path = "../harper-core", version = "0.21.0" }
+harper-html = { path = "../harper-html", version = "0.21.0" }
+harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.21.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 b1ad70156..c148665c9 100644
--- a/harper-core/Cargo.toml
+++ b/harper-core/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "harper-core"
-version = "0.20.0"
+version = "0.21.0"
edition = "2021"
description = "The language checker for developers."
license = "Apache-2.0"
diff --git a/harper-html/Cargo.toml b/harper-html/Cargo.toml
index 6d5b0ef8b..48f8eb338 100644
--- a/harper-html/Cargo.toml
+++ b/harper-html/Cargo.toml
@@ -1,14 +1,14 @@
[package]
name = "harper-html"
-version = "0.20.0"
+version = "0.21.0"
edition = "2021"
description = "The language checker for developers."
license = "Apache-2.0"
repository = "https://github.com/automattic/harper"
[dependencies]
-harper-core = { path = "../harper-core", version = "0.20.0" }
-harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.20.0" }
+harper-core = { path = "../harper-core", version = "0.21.0" }
+harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.21.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 2952d3226..985698929 100644
--- a/harper-literate-haskell/Cargo.toml
+++ b/harper-literate-haskell/Cargo.toml
@@ -1,14 +1,14 @@
[package]
name = "harper-literate-haskell"
-version = "0.20.0"
+version = "0.21.0"
edition = "2021"
description = "The language checker for developers."
license = "Apache-2.0"
repository = "https://github.com/automattic/harper"
[dependencies]
-harper-core = { path = "../harper-core", version = "0.20.0" }
-harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.20.0" }
-harper-comments = { path = "../harper-comments", version = "0.20.0" }
+harper-core = { path = "../harper-core", version = "0.21.0" }
+harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.21.0" }
+harper-comments = { path = "../harper-comments", version = "0.21.0" }
itertools = "0.14.0"
paste = "1.0.14"
diff --git a/harper-ls/Cargo.toml b/harper-ls/Cargo.toml
index 7d1991535..1c0c8dede 100644
--- a/harper-ls/Cargo.toml
+++ b/harper-ls/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "harper-ls"
-version = "0.20.0"
+version = "0.21.0"
edition = "2021"
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.20.0" }
-harper-core = { path = "../harper-core", version = "0.20.0", features = ["concurrent"] }
-harper-comments = { path = "../harper-comments", version = "0.20.0" }
-harper-typst = { path = "../harper-typst", version = "0.20.0" }
-harper-html = { path = "../harper-html", version = "0.20.0" }
+harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.21.0" }
+harper-core = { path = "../harper-core", version = "0.21.0", features = ["concurrent"] }
+harper-comments = { path = "../harper-comments", version = "0.21.0" }
+harper-typst = { path = "../harper-typst", version = "0.21.0" }
+harper-html = { path = "../harper-html", version = "0.21.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.28", features = ["derive"] }
diff --git a/harper-tree-sitter/Cargo.toml b/harper-tree-sitter/Cargo.toml
index 962b46c88..768bbe9ef 100644
--- a/harper-tree-sitter/Cargo.toml
+++ b/harper-tree-sitter/Cargo.toml
@@ -1,11 +1,11 @@
[package]
name = "harper-tree-sitter"
-version = "0.20.0"
+version = "0.21.0"
edition = "2021"
description = "The language checker for developers."
license = "Apache-2.0"
repository = "https://github.com/automattic/harper"
[dependencies]
-harper-core = { path = "../harper-core", version = "0.20.0" }
+harper-core = { path = "../harper-core", version = "0.21.0" }
tree-sitter = "0.20.10"
diff --git a/harper-typst/Cargo.toml b/harper-typst/Cargo.toml
index 30a556ca7..5cb3baef7 100644
--- a/harper-typst/Cargo.toml
+++ b/harper-typst/Cargo.toml
@@ -1,13 +1,13 @@
[package]
name = "harper-typst"
-version = "0.20.0"
+version = "0.21.0"
edition = "2021"
description = "The language checker for developers."
license = "Apache-2.0"
repository = "https://github.com/automattic/harper"
[dependencies]
-harper-core = { path = "../harper-core", version = "0.20.0" }
+harper-core = { path = "../harper-core", version = "0.21.0" }
typst-syntax = { version = "0.12.0" }
ordered-float = { version = "4.6.0", features = ["serde"] }
itertools = "0.14.0"
diff --git a/harper-wasm/Cargo.toml b/harper-wasm/Cargo.toml
index bbcabd419..8bd326d76 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.20.0", features = ["concurrent"] }
+harper-core = { path = "../harper-core", version = "0.21.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 4875b050a..459215475 100644
--- a/packages/harper.js/package.json
+++ b/packages/harper.js/package.json
@@ -1,6 +1,6 @@
{
"name": "harper.js",
- "version": "0.20.0",
+ "version": "0.21.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 cba8392b0..7af5cfef1 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.20.0",
+ "version": "0.21.0",
"private": true,
"author": "Elijah Potter",
"publisher": "elijah-potter",
@@ -127,7 +127,7 @@
"scope": "resource",
"type": "boolean",
"default": true,
- "description": "When referring to the continents, make sure to treat them as a proper noun."
+ "description": "When referring to North, Central, and South America, make sure to treat them as a proper noun."
},
"harper-ls.linters.an_a": {
"scope": "resource",
@@ -165,6 +165,12 @@
"default": true,
"description": "When referring to Apple products and services, make sure to treat them as proper nouns."
},
+ "harper-ls.linters.australia": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "When referring to the states of Australia, make sure to treat them as a proper noun."
+ },
"harper-ls.linters.avoid_curses": {
"scope": "resource",
"type": "boolean",
@@ -189,6 +195,18 @@
"default": true,
"description": "Looks for slight improper modifications to the phrase `bad rap`."
},
+ "harper-ls.linters.baited_breath": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Ensures `bated breath` is written correctly, as `baited breath` is incorrect."
+ },
+ "harper-ls.linters.bare_in_mind": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Ensures the phrase `bear in mind` is used correctly instead of `bare in mind`."
+ },
"harper-ls.linters.bated_breath": {
"scope": "resource",
"type": "boolean",
@@ -207,6 +225,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-ls.linters.canada": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "When referring to the provinces of Canada, make sure to treat them as a proper noun."
+ },
"harper-ls.linters.capitalize_personal_pronouns": {
"scope": "resource",
"type": "boolean",
@@ -225,6 +249,12 @@
"default": true,
"description": "When referring to the political party, make sure to treat them as a proper noun."
},
+ "harper-ls.linters.chock_full": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Flags common soundalikes of \"chock-full\" and makes sure they're hyphenated."
+ },
"harper-ls.linters.compound_nouns": {
"scope": "resource",
"type": "boolean",
@@ -243,6 +273,12 @@
"default": true,
"description": "The location of currency symbols varies by country. The rule looks for and corrects improper positioning."
},
+ "harper-ls.linters.desktop": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Looks for incorrect spacing inside the closed compound `desktop`."
+ },
"harper-ls.linters.despite_of": {
"scope": "resource",
"type": "boolean",
@@ -267,6 +303,12 @@
"default": true,
"description": "Make sure you have the correct number of dots in your ellipsis."
},
+ "harper-ls.linters.eluded_to": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Corrects `eluded to` to `alluded to` in contexts referring to indirect references."
+ },
"harper-ls.linters.en_masse": {
"scope": "resource",
"type": "boolean",
@@ -279,6 +321,24 @@
"default": true,
"description": "Looks for incorrect spacing inside the closed compound `everywhere`."
},
+ "harper-ls.linters.face_first": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Ensures `face first` is correctly hyphenated as `face-first` when used before `into`."
+ },
+ "harper-ls.linters.fast_paste": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Detects incorrect usage of `fast paste` or `fast-paste` and suggests `fast-paced` as the correct phrase."
+ },
+ "harper-ls.linters.furthermore": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Looks for incorrect spacing inside the closed compound `furthermore`."
+ },
"harper-ls.linters.google_names": {
"scope": "resource",
"type": "boolean",
@@ -303,6 +363,12 @@
"default": true,
"description": "When referring to holidays, make sure to treat them as a proper noun."
},
+ "harper-ls.linters.hop_hope": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Handles common errors involving `hop` and `hope`. Ensures `hop` is used correctly in phrases like `hop on a bus` while correcting mistaken uses of `hope` in contexts where `hop` is expected."
+ },
"harper-ls.linters.however": {
"scope": "resource",
"type": "boolean",
@@ -321,6 +387,12 @@
"default": true,
"description": "Looks for slight improper modifications to the phrase `hunger pang`."
},
+ "harper-ls.linters.hyphenate_number_day": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Ensures a hyphen is used in `X-day` when it is part of a compound adjective, such as `4-day work week`."
+ },
"harper-ls.linters.insofar": {
"scope": "resource",
"type": "boolean",
@@ -357,6 +429,18 @@
"default": true,
"description": "When referring to the nations, make sure to treat them as a proper noun."
},
+ "harper-ls.linters.laptop": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Looks for incorrect spacing inside the closed compound `laptop`."
+ },
+ "harper-ls.linters.left_right_hand": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Ensures `left hand` and `right hand` are hyphenated when used as adjectives before a noun, such as in `left-hand side` or `right-hand corner`."
+ },
"harper-ls.linters.let_alone": {
"scope": "resource",
"type": "boolean",
@@ -393,6 +477,12 @@
"default": true,
"description": "This rule looks for run-on sentences, which can make your work harder to grok."
},
+ "harper-ls.linters.malaysia": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "When referring to the states of Malaysia and their capitals, make sure to treat them as a proper noun."
+ },
"harper-ls.linters.matcher": {
"scope": "resource",
"type": "boolean",
@@ -471,6 +561,12 @@
"default": true,
"description": "Looks for incorrect spacing inside the closed compound `multithreading`."
},
+ "harper-ls.linters.mute_point": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Ensures `moot point` is used instead of `mute point`, as `moot` means debatable or irrelevant."
+ },
"harper-ls.linters.myself": {
"scope": "resource",
"type": "boolean",
@@ -561,6 +657,12 @@
"default": true,
"description": "The Oxford comma is one of the more controversial rules in common use today. Enabling this lint checks that there is a comma before `and`, `or`, or `nor` when listing out more than two ideas."
},
+ "harper-ls.linters.pique_interest": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Detects incorrect usage of `peak` or `peek` when the intended word is `pique`, as in the phrase `you've peaked my interest`."
+ },
"harper-ls.linters.plural_conjugate": {
"scope": "resource",
"type": "boolean",
@@ -660,9 +762,15 @@
"harper-ls.linters.spelled_numbers": {
"scope": "resource",
"type": "boolean",
- "default": false,
+ "default": true,
"description": "Most style guides recommend that you spell out numbers less than ten."
},
+ "harper-ls.linters.state_of_the_art": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Detects incorrect usage of `state of art` and suggests `state of the art` as the correct phrase."
+ },
"harper-ls.linters.supposed_to": {
"scope": "resource",
"type": "boolean",
@@ -693,6 +801,12 @@
"default": true,
"description": "Repeating the word \"that\" is often redundant. The phrase `that which` is easier to read."
},
+ "harper-ls.linters.then_than": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Corrects the misuse of `then` to `than`."
+ },
"harper-ls.linters.therefore": {
"scope": "resource",
"type": "boolean",
@@ -747,6 +861,18 @@
"default": false,
"description": "Looks for situations where the genitive case of \"there\" should be used."
},
+ "harper-ls.linters.want_be": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Detects incorrect usage of `want be` and suggests `won't be` or `want to be` based on context."
+ },
+ "harper-ls.linters.was_aloud": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Ensures `was aloud` and `were aloud` are corrected to `was allowed` or `were allowed` when referring to permission."
+ },
"harper-ls.linters.whereas": {
"scope": "resource",
"type": "boolean",