Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: ontop of→on top of (#1550)
Andrew Dunbarfa650a88bcd3
diff --git a/harper-core/src/linting/phrase_corrections/mod.rs b/harper-core/src/linting/phrase_corrections/mod.rsindex 84e331d67..9316430f0 100644--- a/harper-core/src/linting/phrase_corrections/mod.rs+++ b/harper-core/src/linting/phrase_corrections/mod.rs@@ -675,6 +675,12 @@ pub fn lint_group() -> LintGroup {"Use the correct phrase for acting spontaneously.","Ensures the correct use of `on the spur of the moment`, avoiding nonstandard variations."),+ "OnTopOf" => (+ ["ontop of"],+ ["on top of"],+ "Did you mean `on top of`?",+ "Corrects `ontop of` to `on top of`."+ ),"PeaceOfMind" => (["piece of mind"],["peace of mind"],diff --git a/harper-core/src/linting/phrase_corrections/tests.rs b/harper-core/src/linting/phrase_corrections/tests.rsindex 26c0425bd..bc3757c31 100644--- a/harper-core/src/linting/phrase_corrections/tests.rs+++ b/harper-core/src/linting/phrase_corrections/tests.rs@@ -966,6 +966,16 @@ fn fix_in_the_spur_of_the_moment() {);}+// OnTopOf+#[test]+fn correct_on_top_of() {+ assert_suggestion_result(+ "Initcpio hooks for overlayfs ontop of root.",+ lint_group(),+ "Initcpio hooks for overlayfs on top of root.",+ );+}+// PeaceOfMind#[test]fn corrects_piece_of_mind() {