Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat:through great lengths→to great lengths (#1811)
Andrew Dunbare97670e5a860
diff --git a/harper-core/src/linting/phrase_corrections/mod.rs b/harper-core/src/linting/phrase_corrections/mod.rsindex 8ef335232..b876c2d5c 100644--- a/harper-core/src/linting/phrase_corrections/mod.rs+++ b/harper-core/src/linting/phrase_corrections/mod.rs@@ -1055,6 +1055,12 @@ pub fn lint_group() -> LintGroup {"Hyphenate `to-do`.","Ensures `to-do` is correctly hyphenated."),+ "ToGreatLengths" => (+ ["through great lengths"],+ ["to great lengths"],+ "Did you mean `to great lengths`?",+ "Corrects `through great lengths` to `to great lengths`."+ ),"ToTheMannerBorn" => (["to the manor born"],["to the manner born"],diff --git a/harper-core/src/linting/phrase_corrections/tests.rs b/harper-core/src/linting/phrase_corrections/tests.rsindex 1057ae322..6f3178ebe 100644--- a/harper-core/src/linting/phrase_corrections/tests.rs+++ b/harper-core/src/linting/phrase_corrections/tests.rs@@ -1269,6 +1269,16 @@ fn suggests_ticking_clock() {// ToDoHyphen// -none-+// ToGreatLengths+#[test]+fn correct_to_great_lengths() {+ assert_suggestion_result(+ "Bloomberg's sponsored paid for content goes through great lengths to market Nvidia's products and in particular its AI products that we've frequently criticized.",+ lint_group(),+ "Bloomberg's sponsored paid for content goes to great lengths to market Nvidia's products and in particular its AI products that we've frequently criticized.",+ );+}+// ToTheMannerBorn// -none-