Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: add support for "in more detail"
hippietraild8eccfdfa9c4
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rsindex 31fda6cae..30b916908 100644--- a/harper-core/src/linting/phrase_corrections.rs+++ b/harper-core/src/linting/phrase_corrections.rs@@ -621,6 +621,12 @@ pub fn lint_group() -> LintGroup {"Use singular `in detail` for referring to a detailed description.","Correct unidiomatic plural `in details` to `in detail`."),+ "InMoreDetail" => (+ ["in more details"],+ ["in more detail"],+ "Use singular `in more detail` for referring to a detailed description.",+ "Correct unidiomatic plural `in more details` to `in more detail`."+ ),});group.set_all_rules_to(Some(true));@@ -863,6 +869,11 @@ mod tests {assert_suggestion_result("in details", lint_group(), "in detail");}+ #[test]+ fn in_more_detail_atomic() {+ assert_suggestion_result("in more details", lint_group(), "in more detail");+ }+#[test]fn in_detail_real_world() {assert_suggestion_result(@@ -871,4 +882,13 @@ mod tests {"c++ - who can tell me \"*this pointer\" in detail?",);}++ #[test]+ fn in_more_detail_real_world() {+ assert_suggestion_result(+ "Document the interface in more details · Issue #3 · owlbarn ...",+ lint_group(),+ "Document the interface in more detail · Issue #3 · owlbarn ...",+ );+ }}