Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: as compare to→as compared to (#3647)
Andrew Dunbar9814a44e01c6
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 67a141d93..ae2ebe369 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -4382,6 +4382,13 @@"label": "As Of Lately"}},+ {+ "Bool": {+ "name": "AsComparedTo",+ "state": true,+ "label": "As Compared To"+ }+ },{"Bool": {"name": "AsOpposedTo",diff --git a/harper-core/src/linting/weir_rules/AsComparedTo.weir b/harper-core/src/linting/weir_rules/AsComparedTo.weirnew file mode 100644index 000000000..99c09ce1e--- /dev/null+++ b/harper-core/src/linting/weir_rules/AsComparedTo.weir@@ -0,0 +1,9 @@+expr main (as compare to)++let message "Did you mean `as compared to`?"+let description "Corrects `as compare to` to `as compared to`."+let kind "Usage"+let becomes "as compared to"++test "Latency in the live media as compare to Shaka Player" "Latency in the live media as compared to Shaka Player"+test "facet_nested have a different behaviour as compare to facet_grid when combining character and numeric" "facet_nested have a different behaviour as compared to facet_grid when combining character and numeric"