Skip to content

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

feat: guess work → guesswork (#4584)

Andrew Dunbarb5ed2c1b421e
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index 2503de336..001df125a 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -495,6 +495,13 @@
"label": "Furthermore"
}
},
+ {
+ "Bool": {
+ "name": "Guesswork",
+ "state": true,
+ "label": "Guesswork"
+ }
+ },
{
"Bool": {
"name": "Henceforth",
diff --git a/harper-core/src/linting/closed_compounds.rs b/harper-core/src/linting/closed_compounds.rs
index c2d9528ed..73ef4c769 100644
--- a/harper-core/src/linting/closed_compounds.rs
+++ b/harper-core/src/linting/closed_compounds.rs
@@ -36,6 +36,7 @@ pub fn lint_group() -> LintGroup {
"Everyone" => (&["every one"][..], "everyone"),
"Everywhere" => (&["every where"][..], "everywhere"),
"Furthermore" => (&["further more"][..], "furthermore"),
+ "Guesswork" => (&["guess work"][..], "guesswork"),
"Henceforth" => (&["hence forth"][..], "henceforth"),
"However" => (&["how ever"][..], "however"),
"Insofar" => (&["in so far"][..], "insofar"),
@@ -398,4 +399,13 @@ mod tests {
"But the tradeoff was that specific details about the invention, how it worked and how it's made were entered openly for anyone to look up.",
);
}
+
+ #[test]
+ fn guesswork() {
+ assert_suggestion_result(
+ "Yes this is guess work and we need more evidence of the dangers but at the same time we need evidence of safety.",
+ lint_group(),
+ "Yes this is guesswork and we need more evidence of the dangers but at the same time we need evidence of safety.",
+ );
+ }
}