Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat:to a great length→to great lengths (#1835)
Andrew Dunbare90eb8e0727e
diff --git a/harper-core/src/linting/phrase_corrections/mod.rs b/harper-core/src/linting/phrase_corrections/mod.rsindex b876c2d5c..65ebc222f 100644--- a/harper-core/src/linting/phrase_corrections/mod.rs+++ b/harper-core/src/linting/phrase_corrections/mod.rs@@ -1056,9 +1056,9 @@ pub fn lint_group() -> LintGroup {"Ensures `to-do` is correctly hyphenated."),"ToGreatLengths" => (- ["through great lengths"],+ ["through great lengths", "to a great length"],["to great lengths"],- "Did you mean `to great lengths`?",+ "The idiom is to go `to great lengths`.","Corrects `through great lengths` to `to great lengths`."),"ToTheMannerBorn" => (diff --git a/harper-core/src/linting/phrase_corrections/tests.rs b/harper-core/src/linting/phrase_corrections/tests.rsindex 6f3178ebe..8ab377ec2 100644--- a/harper-core/src/linting/phrase_corrections/tests.rs+++ b/harper-core/src/linting/phrase_corrections/tests.rs@@ -1271,7 +1271,7 @@ fn suggests_ticking_clock() {// ToGreatLengths#[test]-fn correct_to_great_lengths() {+fn correct_through_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(),@@ -1279,6 +1279,15 @@ fn correct_to_great_lengths() {);}+#[test]+fn correct_to_a_great_length() {+ assert_suggestion_result(+ "While ratatui-image goes to a great length to detect a rendered image's pixel size in terms of \"character cells that will be covered\", via font pixel size detection, ultimately it's up to the terminal emulator to decide what exactly a pixel is.",+ lint_group(),+ "While ratatui-image goes to great lengths to detect a rendered image's pixel size in terms of \"character cells that will be covered\", via font pixel size detection, ultimately it's up to the terminal emulator to decide what exactly a pixel is.",+ );+}+// ToTheMannerBorn// -none-