Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: client's side→client-side, server's side→server side
hippietraileda1bd736440
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rsindex a3181f3d2..c6aff8d25 100644--- a/harper-core/src/linting/phrase_corrections.rs+++ b/harper-core/src/linting/phrase_corrections.rs@@ -1081,6 +1081,18 @@ pub fn lint_group() -> LintGroup {"Did you mean the verb `passed`?","Suggests `past` for `passed` in case a verb was intended."),+ "ClientSide" => (+ ["client's side"],+ ["client-side"],+ "In client-server contexts, use `client-side` rather than `client's side`.",+ "Corrects `client's side` to `client-side`, which is usual in `client-server contexts`."+ ),+ "ServerSide" => (+ ["server's side"],+ ["server-side"],+ "In client-server contexts, use `server-side` rather than `server's side`.",+ "Corrects `server's side` to `server-side`, which is usual in `client-server contexts`."+ ),});group.set_all_rules_to(Some(true));@@ -2246,4 +2258,22 @@ mod tests {"CAPD worst-case scenario cloud simulator for naughty clouds.",);}++ #[test]+ fn correct_clients_side() {+ assert_suggestion_result(+ "I want to debug this server-side as I cannot find out why the connection is being refused from the client's side.",+ lint_group(),+ "I want to debug this server-side as I cannot find out why the connection is being refused from the client-side.",+ );+ }++ #[test]+ fn correct_servers_side() {+ assert_suggestion_result(+ "A client-server model where the client can execute commands in a terminal on the server's side",+ lint_group(),+ "A client-server model where the client can execute commands in a terminal on the server-side",+ );+ }}