Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
Release 0.29.0
Elijah Pottercb00d634f985
diff --git a/Cargo.lock b/Cargo.lockindex bbd6362b6..2fcf5d59f 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -749,7 +749,7 @@ dependencies = [[[package]]name = "harper-comments"-version = "0.28.0"+version = "0.29.0"dependencies = ["harper-core","harper-html",@@ -781,7 +781,7 @@ dependencies = [[[package]]name = "harper-core"-version = "0.28.0"+version = "0.29.0"dependencies = ["blanket","cached",@@ -814,7 +814,7 @@ dependencies = [[[package]]name = "harper-html"-version = "0.28.0"+version = "0.29.0"dependencies = ["harper-core","harper-tree-sitter",@@ -825,7 +825,7 @@ dependencies = [[[package]]name = "harper-literate-haskell"-version = "0.28.0"+version = "0.29.0"dependencies = ["harper-comments","harper-core",@@ -836,7 +836,7 @@ dependencies = [[[package]]name = "harper-ls"-version = "0.28.0"+version = "0.29.0"dependencies = ["anyhow","clap",@@ -863,7 +863,7 @@ dependencies = [[[package]]name = "harper-stats"-version = "0.28.0"+version = "0.29.0"dependencies = ["chrono","harper-core",@@ -874,7 +874,7 @@ dependencies = [[[package]]name = "harper-tree-sitter"-version = "0.28.0"+version = "0.29.0"dependencies = ["harper-core","tree-sitter",@@ -882,7 +882,7 @@ dependencies = [[[package]]name = "harper-typst"-version = "0.28.0"+version = "0.29.0"dependencies = ["harper-core","itertools 0.14.0",diff --git a/harper-cli/Cargo.toml b/harper-cli/Cargo.tomlindex 2b9894ffb..c23cd89ab 100644--- a/harper-cli/Cargo.toml+++ b/harper-cli/Cargo.toml@@ -10,12 +10,12 @@ repository = "https://github.com/automattic/harper"anyhow = "1.0.98"ariadne = "0.4.1"clap = { version = "4.5.36", features = ["derive", "string"] }-harper-stats = { path = "../harper-stats", version = "0.28.0" }+harper-stats = { path = "../harper-stats", version = "0.29.0" }dirs = "6.0.0"-harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.28.0" }-harper-core = { path = "../harper-core", version = "0.28.0" }-harper-comments = { path = "../harper-comments", version = "0.28.0" }-harper-typst = { path = "../harper-typst", version = "0.28.0" }+harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.29.0" }+harper-core = { path = "../harper-core", version = "0.29.0" }+harper-comments = { path = "../harper-comments", version = "0.29.0" }+harper-typst = { path = "../harper-typst", version = "0.29.0" }hashbrown = "0.15.2"serde = { version = "1.0.219", features = ["derive"] }serde_json = "1.0.140"diff --git a/harper-comments/Cargo.toml b/harper-comments/Cargo.tomlindex 56b7e6e00..87d08439f 100644--- a/harper-comments/Cargo.toml+++ b/harper-comments/Cargo.toml@@ -1,6 +1,6 @@[package]name = "harper-comments"-version = "0.28.0"+version = "0.29.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.28.0" }-harper-html = { path = "../harper-html", version = "0.28.0" }-harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.28.0" }+harper-core = { path = "../harper-core", version = "0.29.0" }+harper-html = { path = "../harper-html", version = "0.29.0" }+harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.29.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.tomlindex d2a673916..e5cd61247 100644--- a/harper-core/Cargo.toml+++ b/harper-core/Cargo.toml@@ -1,6 +1,6 @@[package]name = "harper-core"-version = "0.28.0"+version = "0.29.0"edition = "2024"description = "The language checker for developers."license = "Apache-2.0"diff --git a/harper-html/Cargo.toml b/harper-html/Cargo.tomlindex c1904cf17..e280be260 100644--- a/harper-html/Cargo.toml+++ b/harper-html/Cargo.toml@@ -1,14 +1,14 @@[package]name = "harper-html"-version = "0.28.0"+version = "0.29.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.28.0" }-harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.28.0" }+harper-core = { path = "../harper-core", version = "0.29.0" }+harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.29.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.tomlindex 5d0a33858..9a8efc70d 100644--- a/harper-literate-haskell/Cargo.toml+++ b/harper-literate-haskell/Cargo.toml@@ -1,14 +1,14 @@[package]name = "harper-literate-haskell"-version = "0.28.0"+version = "0.29.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.28.0" }-harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.28.0" }-harper-comments = { path = "../harper-comments", version = "0.28.0" }+harper-core = { path = "../harper-core", version = "0.29.0" }+harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.29.0" }+harper-comments = { path = "../harper-comments", version = "0.29.0" }itertools = "0.14.0"paste = "1.0.14"diff --git a/harper-ls/Cargo.toml b/harper-ls/Cargo.tomlindex 2d7c4cd56..97ede9a1a 100644--- a/harper-ls/Cargo.toml+++ b/harper-ls/Cargo.toml@@ -1,6 +1,6 @@[package]name = "harper-ls"-version = "0.28.0"+version = "0.29.0"edition = "2024"description = "The language checker for developers."license = "Apache-2.0"@@ -8,12 +8,12 @@ readme = "README.md"repository = "https://github.com/automattic/harper"[dependencies]-harper-stats = { path = "../harper-stats", version = "0.28.0" }-harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.28.0" }-harper-core = { path = "../harper-core", version = "0.28.0", features = ["concurrent"] }-harper-comments = { path = "../harper-comments", version = "0.28.0" }-harper-typst = { path = "../harper-typst", version = "0.28.0" }-harper-html = { path = "../harper-html", version = "0.28.0" }+harper-stats = { path = "../harper-stats", version = "0.29.0" }+harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.29.0" }+harper-core = { path = "../harper-core", version = "0.29.0", features = ["concurrent"] }+harper-comments = { path = "../harper-comments", version = "0.29.0" }+harper-typst = { path = "../harper-typst", version = "0.29.0" }+harper-html = { path = "../harper-html", version = "0.29.0" }tower-lsp = "0.20.0"tokio = { version = "1.44.2", features = ["fs", "rt", "rt-multi-thread", "macros", "io-std", "io-util", "net"] }clap = { version = "4.5.36", features = ["derive"] }diff --git a/harper-stats/Cargo.toml b/harper-stats/Cargo.tomlindex 0298c2430..884614c18 100644--- a/harper-stats/Cargo.toml+++ b/harper-stats/Cargo.toml@@ -1,11 +1,11 @@[package]name = "harper-stats"-version = "0.28.0"+version = "0.29.0"edition = "2021"[dependencies]serde = { version = "1.0.217", features = ["derive"] }-harper-core = { path = "../harper-core", version = "0.28.0", features = ["concurrent"] }+harper-core = { path = "../harper-core", version = "0.29.0", features = ["concurrent"] }uuid = { version = "1.16.0", features = ["serde", "v4"] }serde_json = "1.0.140"chrono = "0.4.40"diff --git a/harper-tree-sitter/Cargo.toml b/harper-tree-sitter/Cargo.tomlindex d19483cab..49d5bb5fb 100644--- a/harper-tree-sitter/Cargo.toml+++ b/harper-tree-sitter/Cargo.toml@@ -1,11 +1,11 @@[package]name = "harper-tree-sitter"-version = "0.28.0"+version = "0.29.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.28.0" }+harper-core = { path = "../harper-core", version = "0.29.0" }tree-sitter = "0.20.10"diff --git a/harper-typst/Cargo.toml b/harper-typst/Cargo.tomlindex d10891cc2..11b851320 100644--- a/harper-typst/Cargo.toml+++ b/harper-typst/Cargo.toml@@ -1,13 +1,13 @@[package]name = "harper-typst"-version = "0.28.0"+version = "0.29.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.28.0" }+harper-core = { path = "../harper-core", version = "0.29.0" }typst-syntax = { version = "0.13.1" }ordered-float = { version = "5.0.0", features = ["serde"] }itertools = "0.14.0"diff --git a/harper-wasm/Cargo.toml b/harper-wasm/Cargo.tomlindex 5ee60fdad..fa9ae7883 100644--- a/harper-wasm/Cargo.toml+++ b/harper-wasm/Cargo.toml@@ -14,9 +14,9 @@ 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.28.0", features = ["concurrent"] }+harper-core = { path = "../harper-core", version = "0.29.0", features = ["concurrent"] }once_cell = "1.21.3"serde-wasm-bindgen = "0.6.5"serde_json = "1.0.140"serde = { version = "1.0.219", features = ["derive"] }-harper-stats = { path = "../harper-stats", version = "0.28.0", features = ["js"] }+harper-stats = { path = "../harper-stats", version = "0.29.0", features = ["js"] }diff --git a/packages/harper.js/package.json b/packages/harper.js/package.jsonindex d97808960..00931fa6e 100644--- a/packages/harper.js/package.json+++ b/packages/harper.js/package.json@@ -1,6 +1,6 @@{"name": "harper.js",- "version": "0.28.0",+ "version": "0.29.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.jsonindex 01fe856a8..f4c75b138 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.28.0",+ "version": "0.29.0","private": true,"author": "Elijah Potter","publisher": "elijah-potter",@@ -146,6 +146,12 @@"default": true,"description": "This rule looks for sequences of words of the form `adjective of a`."},+ "harper.linters.AfterAWhile": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Corrects the missing article after `after while` or `after awhile`, forming `after a while`."+ },"harper.linters.AlzheimersDisease": {"scope": "resource","type": "boolean",@@ -236,6 +242,12 @@"default": true,"description": "Corrects nonstandard `as early back as` to `as far back as`."},+ "harper.linters.AtFaceValue": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Corrects `on face value` to the more usual `at face value`."+ },"harper.linters.Australia": {"scope": "resource","type": "boolean",@@ -416,6 +428,12 @@"default": true,"description": "Fix common comma errors such as no space after, erroneous space before, etc., Asian commas instead of English commas, etc."},+ "harper.linters.CompaniesProductsAndTrademarks": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Ensure proper capitalization of companies, products, and trademarks."+ },"harper.linters.CompoundNouns": {"scope": "resource","type": "boolean",@@ -458,6 +476,12 @@"default": true,"description": "Corrects the eggcorn `damp squid` to `damp squib`, ensuring the intended meaning of a failed or underwhelming outcome."},+ "harper.linters.Dashes": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Rather than outright using an em dash or en dash, authors often use a sequence of hyphens, expecting them to be condensed.\nThis rule does so."+ },"harper.linters.DayAndAge": {"scope": "resource","type": "boolean",@@ -548,12 +572,66 @@"default": true,"description": "Looks for incorrect spacing inside the closed compound `everywhere`."},+ "harper.linters.Excellent": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Provides a stronger word choice by replacing `very good` with `excellent` for clarity and emphasis."+ },+ "harper.linters.ExpandBecause": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Expands the informal abbreviation `cuz` to the full word `because` for formality."+ },+ "harper.linters.ExpandDependencies": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Expands the abbreviation `deps` to the full word `dependencies` for clarity."+ },+ "harper.linters.ExpandDependency": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Expands the abbreviation `dep` to the full word `dependency` for clarity."+ },+ "harper.linters.ExpandMinimum": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Expands the abbreviation `min` to the full word `minimum` for clarity."+ },+ "harper.linters.ExpandStandardInput": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Expands the abbreviation `stdin` to `standard input` for clarity."+ },+ "harper.linters.ExpandStandardOutput": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Expands the abbreviation `stdout` to `standard output` for clarity."+ },"harper.linters.ExpandTimeShorthands": {"scope": "resource","type": "boolean","default": true,"description": "Expands time-related abbreviations (`hr`, `hrs`, `min`, `mins`, `sec`, `secs`, `ms`, `msec`, `msecs`) to their full forms (`hour`, `hours`, `minute`, `minutes`, `second`, `seconds`, `millisecond`, `milliseconds`)."},+ "harper.linters.ExpandWith": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Expands the abbreviation `w/` to the full word `with` for clarity."+ },+ "harper.linters.ExpandWithout": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Expands the abbreviation `w/o` to the full word `without` for clarity."+ },"harper.linters.Expatriate": {"scope": "resource","type": "boolean",@@ -614,6 +692,12 @@"default": true,"description": "Eliminates the incorrect merging in `for along time`."},+ "harper.linters.ForAWhile": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Corrects the missing article in `for while` or `for awhile`, forming `for a while`."+ },"harper.linters.ForAllIntentsAndPurposes": {"scope": "resource","type": "boolean",@@ -728,6 +812,30 @@"default": true,"description": "When referring to holidays, make sure to treat them as a proper noun."},+ "harper.linters.HomeInOn": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Corrects `hone in on` to `home in on`."+ },+ "harper.linters.HomedInOn": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Corrects `hone in on` to `home in on`."+ },+ "harper.linters.HomesInOn": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Corrects `hone in on` to `home in on`."+ },+ "harper.linters.HomingInOn": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Corrects `hone in on` to `home in on`."+ },"harper.linters.HopHope": {"scope": "resource","type": "boolean",@@ -806,12 +914,6 @@"default": true,"description": "Corrects `in one foul swoop` to `in one fell swoop`, preserving the phrase’s original meaning of sudden and complete action."},- "harper.linters.InQuiteAWhile": {- "scope": "resource",- "type": "boolean",- "default": true,- "description": "Corrects `in quite awhile` => `in quite a while` by inserting the missing article."- },"harper.linters.InThe": {"scope": "resource","type": "boolean",@@ -962,12 +1064,6 @@"default": true,"description": "When referring to the states of Malaysia and their capitals, make sure to treat them as a proper noun."},- "harper.linters.Matcher": {- "scope": "resource",- "type": "boolean",- "default": true,- "description": "A collection of curated rules. A catch-all that will be removed in the future."- },"harper.linters.MergeWords": {"scope": "resource","type": "boolean",@@ -1166,6 +1262,12 @@"default": true,"description": "Corrects `old wise tale` to `old wives' tale`, preserving the phrase’s meaning as an unfounded traditional belief."},+ "harper.linters.OnSecondThought": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Replaces the nonstandard `on second though` with the common idiom `on second thought` to indicate reconsideration."+ },"harper.linters.OnTheSpurOfTheMoment": {"scope": "resource","type": "boolean",@@ -1250,12 +1352,6 @@"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.linters.PluralConjugate": {- "scope": "resource",- "type": "boolean",- "default": false,- "description": "Make sure you use the correct conjugation of the verb \"to be\" in plural contexts."- },"harper.linters.PocketCastsNames": {"scope": "resource","type": "boolean",@@ -1316,6 +1412,12 @@"default": true,"description": "Ensure proper capitalization of proper nouns."},+ "harper.linters.QuiteAWhile": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Corrects `quite awhile` => `quite a while` by inserting the missing article."+ },"harper.linters.RealTrouper": {"scope": "resource","type": "boolean",@@ -1442,23 +1544,23 @@"default": true,"description": "Detects incorrect usage of `state of art` and suggests `state of the art` as the correct phrase."},- "harper.linters.SupposedTo": {+ "harper.linters.SufficeItToSay": {"scope": "resource","type": "boolean","default": true,- "description": "Fixes `suppose to` to the correct `supposed to`."+ "description": "Corrects `suffice to say` to `suffice it to say`."},- "harper.linters.TakeItSeriously": {+ "harper.linters.SupposedTo": {"scope": "resource","type": "boolean","default": true,- "description": "Ensures the correct use of the adverb `seriously` instead of the adjective `serious` in phrases like `take it seriously`."+ "description": "Fixes `suppose to` to the correct `supposed to`."},- "harper.linters.TerminatingConjunctions": {+ "harper.linters.TakeItSeriously": {"scope": "resource","type": "boolean","default": true,- "description": "Subordinating conjunctions are words that create a grammatical space for another idea or clause. As such, they should never appear at the end of a clause."+ "description": "Ensures the correct use of the adverb `seriously` instead of the adjective `serious` in phrases like `take it seriously`."},"harper.linters.ThatChallenged": {"scope": "resource",@@ -1484,6 +1586,12 @@"default": true,"description": "Corrects `the another`."},+ "harper.linters.TheHowWhy": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Removes the extra `the` from expressions like `the how`, skipping `how to` and `who's who`."+ },"harper.linters.ThenThan": {"scope": "resource","type": "boolean",@@ -1532,6 +1640,12 @@"default": true,"description": "Removes redundant `to` before `towards`."},+ "harper.linters.TrialAndError": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Corrects `trail` to `trial` in `trial and error`."+ },"harper.linters.TumblrNames": {"scope": "resource","type": "boolean",@@ -1574,6 +1688,12 @@"default": true,"description": "When referring to national or international organizations, make sure to treat them as a proper noun."},+ "harper.linters.Unless": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Corrects `unless if` to `unless`."+ },"harper.linters.Upset": {"scope": "resource","type": "boolean",@@ -1616,6 +1736,12 @@"default": true,"description": "Ensures `well-being` is correctly hyphenated."},+ "harper.linters.WellKept": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Flags `highly-kept` and recommends `well-kept` as an alternative."+ },"harper.linters.Whereas": {"scope": "resource","type": "boolean",@@ -1640,6 +1766,12 @@"default": true,"description": "Corrects the redundancy in `whole entire` to `whole` or `entire`."},+ "harper.linters.WidelyAccepted": {+ "scope": "resource",+ "type": "boolean",+ "default": true,+ "description": "Flags `wide accepted`, `wide acceptable`, or `wide used` and recommends switching `wide` to the adverb `widely`."+ },"harper.linters.Widespread": {"scope": "resource","type": "boolean",@@ -1687,12 +1819,6 @@"type": "boolean","default": true,"description": "Corrects `worse ever` to `worst ever` for proper comparative usage."- },- "harper.linters.WrongQuotes": {- "scope": "resource",- "type": "boolean",- "default": false,- "description": "The key on the keyboard often used as a quotation mark is actually a double-apostrophe. Use the correct character."}}}