Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: in of themselves → in (and of) themselves (#4373)
Andrew Dunbar49d0ddfb3090
diff --git a/harper-core/src/linting/weir_rules/InOfItself.weir b/harper-core/src/linting/weir_rules/InOfItself/Itself.weirsimilarity index 100%rename from harper-core/src/linting/weir_rules/InOfItself.weirrename to harper-core/src/linting/weir_rules/InOfItself/Itself.weirdiff --git a/harper-core/src/linting/weir_rules/InOfItself/Themselves.weir b/harper-core/src/linting/weir_rules/InOfItself/Themselves.weirnew file mode 100644index 000000000..91145a727--- /dev/null+++ b/harper-core/src/linting/weir_rules/InOfItself/Themselves.weir@@ -0,0 +1,10 @@+expr main (in of themselves)++let message "Use `in themselves` (more common) or `in and of themselves` (more formal) to mean 'intrinsically'."+let description "Corrects nonstandard `in of themselves` to standard `in themselves` or `in and of themselves`."+let kind "Usage"+let becomes ["in themselves", "in and of themselves"]++test "in of themselves" "in and of themselves"+test "Sure neural networks in of themselves are conceptually simple" "Sure neural networks in themselves are conceptually simple"+test "Sure neural networks in of themselves are conceptually simple" "Sure neural networks in and of themselves are conceptually simple"