Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: take it personal→take it personally (#1285)
Andrew Dunbare56656744d4b
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rsindex 8c3f83952..01becf913 100644--- a/harper-core/src/linting/phrase_corrections.rs+++ b/harper-core/src/linting/phrase_corrections.rs@@ -1237,6 +1237,12 @@ pub fn lint_group() -> LintGroup {"A `decent amount` is a `fair bit`. `Fare` is the price of a ticket.","Corrects malapropisms of `a fair bit`."),+ "TakeItPersonally" => (+ ["take it personal"],+ ["take it personally"],+ "The more standard, less colloquial form is `take it personally`.",+ "Corrects `take it personal` to `take it personally`."+ ),});group.set_all_rules_to(Some(true));@@ -2694,4 +2700,13 @@ mod tests {"I've read through a fair bit of the ecosystem framework, but I am not clear on what is modified...",);}++ #[test]+ fn corrects_take_it_personal() {+ assert_suggestion_result(+ "This is not personal, do not take it personal, we also think Thingsboard is a extraordinary tool (we are using in several scenarios in fact)",+ lint_group(),+ "This is not personal, do not take it personally, we also think Thingsboard is a extraordinary tool (we are using in several scenarios in fact)",+ );+ }}