Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: in the same vain/vane/veins → in the same vein (#4216)
Andrew Dunbar983dcd6a4b50
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex feb63b22a..a7db85b60 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -4942,6 +4942,13 @@"label": "In the Grand Scheme of Things"}},+ {+ "Bool": {+ "name": "InTheSameVein",+ "state": true,+ "label": "In the Same Vein"+ }+ },{"Bool": {"name": "InThisThatRegard",diff --git a/harper-core/src/linting/weir_rules/InTheSameVein.weir b/harper-core/src/linting/weir_rules/InTheSameVein.weirnew file mode 100644index 000000000..d029d5830--- /dev/null+++ b/harper-core/src/linting/weir_rules/InTheSameVein.weir@@ -0,0 +1,12 @@+expr main [(in the same vain), (in the same vane), (in the same veins), (in same vein), (in same vain)]++let message "This idiom requires the definite article `the` and the correct word `vein`, meaning blood vessel."+let description "Corrects wrong variants of `in the same vein`."+let kind "Usage"+let becomes "in the same vein"++test "In the same vain as ESLint Warnings Are An Anti-Pattern, I think the default pylint.severity setting should be to make all issue types \"Error\"." "In the same vein as ESLint Warnings Are An Anti-Pattern, I think the default pylint.severity setting should be to make all issue types \"Error\"."+test "And in the same vane, all other PodCommsSession functions that currently need to fail" "And in the same vein, all other PodCommsSession functions that currently need to fail"+test "A-Frame is an open-source Web3D/WebVR framework in the same veins." "A-Frame is an open-source Web3D/WebVR framework in the same vein."+test "(in same vein as the SDRAM settings)" "(in the same vein as the SDRAM settings)"+test "it should work in same vain; you can override deserializer used for Integer.TYPE" "it should work in the same vein; you can override deserializer used for Integer.TYPE"