Skip to content

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

feat: what so ever → whatsoever (#4799)

Andrew Dunbar1b5523687afe
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index 5204f9e29..16fdffc15 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -866,6 +866,13 @@
"label": "Upward"
}
},
+ {
+ "Bool": {
+ "name": "Whatsoever",
+ "state": true,
+ "label": "Whatsoever"
+ }
+ },
{
"Bool": {
"name": "Whereupon",
diff --git a/harper-core/src/linting/closed_compounds.rs b/harper-core/src/linting/closed_compounds.rs
index a40cc3c0e..1afda10a3 100644
--- a/harper-core/src/linting/closed_compounds.rs
+++ b/harper-core/src/linting/closed_compounds.rs
@@ -86,6 +86,7 @@ pub fn lint_group() -> LintGroup {
"Underclock" => (&["under clock"][..], "underclock"),
"Upset" => (&["up set"][..], "upset"),
"Upward" => (&["up ward"][..], "upward"),
+ "Whatsoever" => (&["what so ever", "what-so-ever", "whatso ever", "whatso-ever", "what soever", "what-soever"][..], "whatsoever"),
"Whereupon" => (&["where upon"][..], "whereupon"),
"Widespread" => (&["wide spread"][..], "widespread"),
"Without" => (&["with out"][..], "without"),
@@ -447,4 +448,58 @@ mod tests {
"This might be a very roundabout way to sort right to repair.",
);
}
+
+ #[test]
+ fn what_sp_so_sp_ever() {
+ assert_suggestion_result(
+ "You can literally just apply to be an ATC with zero experience what so ever.",
+ lint_group(),
+ "You can literally just apply to be an ATC with zero experience whatsoever.",
+ );
+ }
+
+ #[test]
+ fn what_hy_so_hy_ever() {
+ assert_suggestion_result(
+ "React doesn't have this \"pure function\" feature what-so-ever.",
+ lint_group(),
+ "React doesn't have this \"pure function\" feature whatsoever.",
+ );
+ }
+
+ #[test]
+ fn what_sp_soever() {
+ assert_suggestion_result(
+ "No problems what soever in the almost two years, they have been running",
+ lint_group(),
+ "No problems whatsoever in the almost two years, they have been running",
+ );
+ }
+
+ #[test]
+ fn what_hy_soever() {
+ assert_suggestion_result(
+ "and literally not couching it with any reasoning what-soever when we try to dig in",
+ lint_group(),
+ "and literally not couching it with any reasoning whatsoever when we try to dig in",
+ );
+ }
+
+ #[test]
+ fn whatso_sp_ever() {
+ assert_suggestion_result(
+ "At one point in time the engine would refuse to create sites, but not give any errors whatso ever.",
+ lint_group(),
+ "At one point in time the engine would refuse to create sites, but not give any errors whatsoever.",
+ );
+ }
+
+ #[test]
+ fn whatso_hy_ever() {
+ assert_suggestion_result(
+ "Also I get no errors whatso-ever which makes this even more confusing.",
+ lint_group(),
+ "Also I get no errors whatsoever which makes this even more confusing.",
+ );
+ }
}