Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: on face value→at face value
hippietrail18df9d31eaa7
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rsindex 9aa06c367..4a7ce043e 100644--- a/harper-core/src/linting/phrase_corrections.rs+++ b/harper-core/src/linting/phrase_corrections.rs@@ -928,7 +928,13 @@ pub fn lint_group() -> LintGroup {["because"],"Use `because` instead of informal `cuz`","Expands the informal abbreviation `cuz` to the full word `because` for formality."- )+ ),+ "AtFaceValue" => (+ ["on face value"],+ ["at face value"],+ "`at face value is more idiomatic and more common.",+ "Corrects `on face value` to the more usual `at face value`."+ ),});group.set_all_rules_to(Some(true));@@ -1770,4 +1776,13 @@ mod tests {"Stick around because I got a surprise for you at the end.",);}++ #[test]+ fn correct_on_face_value() {+ assert_suggestion_result(+ "Obviously what you want is possible and on face value it's a trivial change on our end.",+ lint_group(),+ "Obviously what you want is possible and at face value it's a trivial change on our end.",+ );+ }}