Skip to content

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

feat: as is with anything→as with anything/as is the case with anything (#3758)

Andrew Dunbar9173a7654bf6
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index c6415bb52..157154e49 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -5411,6 +5411,13 @@
"label": "For The Nth Time"
}
},
+ {
+ "Bool": {
+ "name": "AsIsWithAnything",
+ "state": true,
+ "label": "As Is With Anything"
+ }
+ },
{
"Bool": {
"name": "RedundantFirsts",
diff --git a/harper-core/src/linting/weir_rules/AsIsWithAnything.weir b/harper-core/src/linting/weir_rules/AsIsWithAnything.weir
new file mode 100644
index 000000000..2cceff3e7
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/AsIsWithAnything.weir
@@ -0,0 +1,11 @@
+expr main (as is with anything)
+
+let message "The phrase `as is with anything` is ungrammatical. Use `as with anything` or `as is the case with anything`."
+let description "Flags the incorrect idiom blend `as is with anything` and suggests standard alternatives like `as with anything` or `as is the case with anything`."
+let kind "WordChoice"
+let becomes ["as with anything", "as is the case with anything"]
+
+test "As is with anything if you break it down to a step by step process, the task becomes more manageable." "As is the case with anything if you break it down to a step by step process, the task becomes more manageable."
+test "The most challenging part, as is with anything, was trying to get started." "The most challenging part, as with anything, was trying to get started."
+
+allows "Dietpi should work as-is with anything that supports Roon or Airplay protocol."