Skip to content

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

feat: bare with me → bear with me (#4599)

Andrew Dunbard49f5b60107f
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index 36c6372d7..fd7de1304 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -4465,6 +4465,13 @@
"label": "Barely Un-"
}
},
+ {
+ "Bool": {
+ "name": "BareWithMe",
+ "state": true,
+ "label": "Bare With Me"
+ }
+ },
{
"Bool": {
"name": "BatedBreath",
diff --git a/harper-core/src/linting/weir_rules/BareWithMe.weir b/harper-core/src/linting/weir_rules/BareWithMe.weir
new file mode 100644
index 000000000..f4e79798f
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/BareWithMe.weir
@@ -0,0 +1,8 @@
+expr main <(bare with [me, us, him, her, them]), bare>
+let message "Use the verb `bear` for expressions meaning `be patient with`."
+let description "Corrects `bare with` to `bear with`."
+let becomes "bear"
+
+test "I am fully aware that this is probably the most niche/strange issue that anyone has ever raised, so bare with me." "I am fully aware that this is probably the most niche/strange issue that anyone has ever raised, so bear with me."
+test "Please bare with him if it takes a little longer." "Please bear with him if it takes a little longer."
+test "In the meantime, Oxen's team are working on refactoring/reworking u bare with them while they work on it and keep patience" "In the meantime, Oxen's team are working on refactoring/reworking u bear with them while they work on it and keep patience"
\ No newline at end of file