Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: as of lately→as of late (#1319)
Andrew Dunbar3ced5b9af6f0
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rsindex 01becf913..6532f6539 100644--- a/harper-core/src/linting/phrase_corrections.rs+++ b/harper-core/src/linting/phrase_corrections.rs@@ -1243,6 +1243,12 @@ pub fn lint_group() -> LintGroup {"The more standard, less colloquial form is `take it personally`.","Corrects `take it personal` to `take it personally`."),+ "AsOfLate" => (+ ["as of lately"],+ ["as of late"],+ "The standard form is `as of late`.",+ "Corrects `as of lately` to `as of late`."+ ),});group.set_all_rules_to(Some(true));@@ -2709,4 +2715,13 @@ mod tests {"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)",);}++ #[test]+ fn corrects_as_of_lately() {+ assert_suggestion_result(+ "I haven't noticed any crashing with AMDGPU as of lately, so this looks to not be an issue anymore.",+ lint_group(),+ "I haven't noticed any crashing with AMDGPU as of late, so this looks to not be an issue anymore.",+ )+ }}