Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat: monumentously→momentously/monumentally (#3264)

Andrew Dunbar320bc15060ab
diff --git a/harper-core/src/linting/phrase_set_corrections/mod.rs b/harper-core/src/linting/phrase_set_corrections/mod.rs
index c6dd9ef3e..e8fd4373d 100644
--- a/harper-core/src/linting/phrase_set_corrections/mod.rs
+++ b/harper-core/src/linting/phrase_set_corrections/mod.rs
@@ -810,6 +810,15 @@ pub fn lint_group() -> LintGroup {
"Don't inflect `seem` in `make it seem`.",
"Corrects `make it seems` to `make it seem`."
),
+ "Monumentous" => (
+ &[
+ (&["monumentous"], &["momentous", "monumental"]),
+ (&["monumentously"], &["momentously", "monumentally"]),
+ ],
+ "Retain `monumentous` for jocular effect. Otherwise `momentous` indicates great signifcance while `monumental` indicates imposing size.",
+ "Advises using `momentous` or `monumental` instead of `monumentous` for serious usage.",
+ LintKind::Nonstandard
+ ),
"NervousWreck" => (
&[
(&["nerve wreck", "nerve-wreck"], &["nervous wreck"]),
diff --git a/harper-core/src/linting/phrase_set_corrections/tests.rs b/harper-core/src/linting/phrase_set_corrections/tests.rs
index ee8a87d3b..5c2faa0e9 100644
--- a/harper-core/src/linting/phrase_set_corrections/tests.rs
+++ b/harper-core/src/linting/phrase_set_corrections/tests.rs
@@ -2721,6 +2721,26 @@ fn corrects_made_it_seemed() {
);
}
+// Monumentous
+
+#[test]
+fn corrects_monumentous() {
+ assert_suggestion_result(
+ "I think that would be a monumentous step in the right direction, and would DEFINATLY turn heads in not just the music industry, but every ...",
+ lint_group(),
+ "I think that would be a momentous step in the right direction, and would DEFINATLY turn heads in not just the music industry, but every ...",
+ );
+}
+
+#[test]
+fn corrects_monumentously() {
+ assert_suggestion_result(
+ "the most impressive thing out of all of this is that GitHub created such a monumentously good name",
+ lint_group(),
+ "the most impressive thing out of all of this is that GitHub created such a monumentally good name",
+ );
+}
+
// NervousWreck
#[test]
diff --git a/harper-core/src/linting/weir_rules/Monumentous.weir b/harper-core/src/linting/weir_rules/Monumentous.weir
deleted file mode 100644
index 4707fefe7..000000000
--- a/harper-core/src/linting/weir_rules/Monumentous.weir
+++ /dev/null
@@ -1,9 +0,0 @@
-expr main (monumentous)
-
-let message "Retain `monumentous` for jocular effect. Otherwise `momentous` indicates great signifcance while `monumental` indicates imposing size."
-let description "Advises using `momentous` or `monumental` instead of `monumentous` for serious usage."
-let kind "Nonstandard"
-let becomes ["momentous", "monumental"]
-
-test "monumentous" "momentous"
-test "I think that would be a monumentous step in the right direction, and would DEFINATLY turn heads in not just the music industry, but every ..." "I think that would be a momentous step in the right direction, and would DEFINATLY turn heads in not just the music industry, but every ..."