Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: broken links and URLs
Elijah Potter9d0909999224
diff --git a/README.md b/README.mdindex ea2d7fb4a..48bfddc0d 100644--- a/README.md+++ b/README.md@@ -3,15 +3,15 @@<h1>Harper</h1></div>-[](https://github.com/chilipepperhott/harper/actions/workflows/build_harper_ls.yml)-[](https://github.com/chilipepperhott/harper/actions/workflows/build_web.yml)-[](https://github.com/chilipepperhott/harper/actions/workflows/precommit.yml)+[](https://github.com/elijah-potter/harper/actions/workflows/build_harper_ls.yml)+[](https://github.com/elijah-potter/harper/actions/workflows/build_web.yml)+[](https://github.com/elijah-potter/harper/actions/workflows/precommit.yml)Harper is an English grammar checker designed to be _just right._I created it after years of dealing with the shortcomings of the competition.Grammarly was too expensive and too overbearing.-It's suggestions lacked context, and were often just plain _wrong_.+Its suggestions lacked context, and were often just plain _wrong_.Not to mention: it's a privacy nightmare.Everything you write with Grammarly is sent to their servers.Their privacy policy claims they don't sell the data, but that doesn't mean they don't use it to train large language models and god knows what else.diff --git a/harper-core/Cargo.toml b/harper-core/Cargo.tomlindex 53afa87b1..1c32b1080 100644--- a/harper-core/Cargo.toml+++ b/harper-core/Cargo.toml@@ -5,7 +5,7 @@ edition = "2021"description = "The language checker for developers."license = "Apache-2.0"readme = "README.md"-homepage = "https://github.com/chilipepperhott/harper"+homepage = "https://github.com/elijah-potter/harper"[dependencies]blanket = "0.3.0"diff --git a/harper-core/src/linting/an_a.rs b/harper-core/src/linting/an_a.rsindex c90452967..afb9ccf87 100644--- a/harper-core/src/linting/an_a.rs+++ b/harper-core/src/linting/an_a.rs@@ -51,24 +51,17 @@ impl Linter for AnA {// Matches with 99.71% and 99.77% of vowels and non-vowels in the// Carnegie-Mellon University word -> pronunciation dataset.fn starts_with_vowel(word: &[char]) -> bool {- if word.is_empty() {- return false;- }-if matches!(word,- ['e', 'u', 'p', 'h', ..] | ['e', 'u', 'g' | 'l' | 'c', ..]+ [] | ['u', 'k', ..] | ['e', 'u', 'p', 'h', ..] | ['e', 'u', 'g' | 'l' | 'c', ..]) {return false;}- if matches!(word, ['u', 'k', ..]) {- return false;- }-if matches!(word,- ['h', 'o', 'u', 'r', ..]+ ['S', 'V', 'G']+ | ['h', 'o', 'u', 'r', ..]| ['h', 'o', 'n', ..]| ['u', 'n', 'i', 'n' | 'm', ..]| ['u', 'n', 'a' | 'u', ..]diff --git a/harper-core/src/spell/mod.rs b/harper-core/src/spell/mod.rsindex c44010c12..6b09c56bd 100644--- a/harper-core/src/spell/mod.rs+++ b/harper-core/src/spell/mod.rs@@ -43,7 +43,7 @@ pub fn suggest_correct_spelling<'a>(misspelled_word.len() - max_edit_dist as usize};- // Note how we look at the biggest words first+ // Note how we look at the biggest words first.let words_to_search = (shortest_word_len..misspelled_word.len() + max_edit_dist as usize).rev().flat_map(|len| dictionary.words_with_len_iter(len));diff --git a/harper-ls/Cargo.toml b/harper-ls/Cargo.tomlindex 598e3551a..1b53cf720 100644--- a/harper-ls/Cargo.toml+++ b/harper-ls/Cargo.toml@@ -5,7 +5,7 @@ edition = "2021"description = "The language checker for developers."license = "Apache-2.0"readme = "README.md"-homepage = "https://github.com/chilipepperhott/harper"+homepage = "https://github.com/elijah-potter/harper"[dependencies]harper-core = { path = "../harper-core", version = "0.7.0" }diff --git a/web/src/lib/Editor.svelte b/web/src/lib/Editor.svelteindex 4af5e21bb..552b3ba22 100644--- a/web/src/lib/Editor.svelte+++ b/web/src/lib/Editor.svelte@@ -16,7 +16,7 @@$: lintText(content).then((newLints) => (lints = newLints));$: boxHeight = calcHeight(content);$: if (focused != null && lintCards[focused])- lintCards[focused].scrollIntoView({ behavior: 'smooth' });+ lintCards[focused].scrollIntoView({ behavior: 'smooth', block: 'center' });$: if (editor != null && focused != null) {let lint = lints[focused % lints.length];@@ -74,7 +74,7 @@focused === i ? `calc(55px * ${lint.suggestions.length + 1})` : '0px'}`}>- <p style="height: 50px">{lint.message}</p>+ <p style="height: 50px" class="text-left">{lint.message}</p>{#each lint.suggestions as suggestion}<div class="w-full p-[4px]"><Buttondiff --git a/web/src/routes/+page.svelte b/web/src/routes/+page.svelteindex 953a3c0a7..06825a502 100644--- a/web/src/routes/+page.svelte+++ b/web/src/routes/+page.svelte@@ -25,7 +25,7 @@<div class="flex flex-row justify-evenly mt-5"><a- href="https://github.com/chilipepperhott/harper"+ href="https://github.com/elijah-potter/harper"class="flex flex-row items-center [&>*]:m-2 dark:text-white"><imgwidth="40"