Skip to content

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

feat: in some degree→to some degree (#2883)

Andrew Dunbardb8802c1e82d
diff --git a/harper-core/src/linting/weir_rules/ToSomeDegree.weir b/harper-core/src/linting/weir_rules/ToSomeDegree.weir
new file mode 100644
index 000000000..3a1f1dd2b
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/ToSomeDegree.weir
@@ -0,0 +1,8 @@
+expr main (in some degree)
+
+let message "The correct preposition in this phrase is 'to', not 'in'."
+let description "Corrects `in some degree` to `to some degree`, meaning to a certain extent."
+let kind "Eggcorn"
+let becomes "to some degree"
+
+test "It would be prescriptive in some degree, but we could use MUST / MAY / SHOULD as like the current spec and IETF RFCs." "It would be prescriptive to some degree, but we could use MUST / MAY / SHOULD as like the current spec and IETF RFCs."
\ No newline at end of file