Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: underneath of→underneath/under (#4148)
Andrew Dunbar550b42d7e8a8
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex c74747068..e1261c85f 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -5544,6 +5544,13 @@"label": "To The Manner Born"}},+ {+ "Bool": {+ "name": "UnderneathOf",+ "state": true,+ "label": "Underneath of"+ }+ },{"Bool": {"name": "Unless",diff --git a/harper-core/src/linting/weir_rules/UnderneathOf.weir b/harper-core/src/linting/weir_rules/UnderneathOf.weirnew file mode 100644index 000000000..7e737e345--- /dev/null+++ b/harper-core/src/linting/weir_rules/UnderneathOf.weir@@ -0,0 +1,9 @@+expr main (underneath of)++let message "`Underneath of` is not idiomatic English. `Underneath`, and `under` express a position below without requiring a second preposition such as `of`."+let description "Corrects `underneath of`."+let kind "Usage"+let becomes ["underneath", "under"]++test "When user tries to pick a date, the display is hidden underneath of my map." "When user tries to pick a date, the display is hidden underneath my map."+test "At the top is the YouTube channel's name; underneath of that is the hyperlinked YouTube video's title with the hyperlink" "At the top is the YouTube channel's name; under that is the hyperlinked YouTube video's title with the hyperlink"