Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat:digestive track→digestive tract (#1837)
Andrew Dunbar6eb40c4cb150
diff --git a/harper-core/src/linting/phrase_set_corrections/mod.rs b/harper-core/src/linting/phrase_set_corrections/mod.rsindex a680d2652..4c15719fb 100644--- a/harper-core/src/linting/phrase_set_corrections/mod.rs+++ b/harper-core/src/linting/phrase_set_corrections/mod.rs@@ -103,6 +103,15 @@ pub fn lint_group() -> LintGroup {"The name of the word `the` is `definite article`.",LintKind::Usage),+ "DigestiveTract" => (+ &[+ ("digestive track", "digestive tract"),+ ("digestive tracks", "digestive tracts"),+ ],+ "The correct term is digestive `tract`.",+ "Corrects `digestive track` to `digestive tract`.",+ LintKind::WordChoice+ ),"Discuss" => (&[("discuss about", "discuss"),diff --git a/harper-core/src/linting/phrase_set_corrections/tests.rs b/harper-core/src/linting/phrase_set_corrections/tests.rsindex 973bef694..71ce349ae 100644--- a/harper-core/src/linting/phrase_set_corrections/tests.rs+++ b/harper-core/src/linting/phrase_set_corrections/tests.rs@@ -163,6 +163,26 @@ fn corrects_definite_articles_lowercase() {);}+// DigestiveTract++#[test]+fn dont_flag_digestive_track() {+ assert_suggestion_result(+ "In infants less than a year old, because their digestive track is not finished developing yet",+ lint_group(),+ "In infants less than a year old, because their digestive tract is not finished developing yet",+ );+}++#[test]+fn corrects_digestive_tracks() {+ assert_suggestion_result(+ "The digestive tracks of mammals are complex and diverse, with each species having its own unique digestive system.",+ lint_group(),+ "The digestive tracts of mammals are complex and diverse, with each species having its own unique digestive system.",+ );+}+// Discuss// -none-