Skip to content

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

feat: sky rocketing → skyrocketing (#4612)

Andrew Dunbar4f02d3294d5c
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index 86c69dcc5..a125849ec 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -1457,6 +1457,13 @@
"label": "Seize Control of"
}
},
+ {
+ "Bool": {
+ "name": "Skyrocket",
+ "state": true,
+ "label": "Skyrocket"
+ }
+ },
{
"Bool": {
"name": "SubjunctiveWasToWere",
diff --git a/harper-core/src/linting/phrase_set_corrections/mod.rs b/harper-core/src/linting/phrase_set_corrections/mod.rs
index c2011f73e..6a00b279d 100644
--- a/harper-core/src/linting/phrase_set_corrections/mod.rs
+++ b/harper-core/src/linting/phrase_set_corrections/mod.rs
@@ -689,6 +689,15 @@ pub fn lint_group() -> LintGroup {
"Corrects `set up a bad example` to `set a bad example`.",
LintKind::Usage
),
+ "Skyrocket" => (
+ &[
+ ("sky rocketed", "skyrocketed"),
+ ("sky rocketing", "skyrocketing"),
+ ],
+ "Did you mean the closed compound `skyrocket`?",
+ "Looks for incorrect spacing inside the closed compound `skyrocket`.",
+ LintKind::Miscellaneous
+ ),
"SubjectAndObjectPronoun" => (
&[
("subjective pronoun", "subject pronoun"),
diff --git a/harper-core/src/linting/phrase_set_corrections/one_to_one_tests.rs b/harper-core/src/linting/phrase_set_corrections/one_to_one_tests.rs
index f5fd3745c..887468c17 100644
--- a/harper-core/src/linting/phrase_set_corrections/one_to_one_tests.rs
+++ b/harper-core/src/linting/phrase_set_corrections/one_to_one_tests.rs
@@ -2212,6 +2212,26 @@ fn fix_sets_up_a_bad_example() {
)
}
+// Skyrocket
+
+#[test]
+fn sky_rockeeted() {
+ assert_suggestion_result(
+ "i can hear the audio but the firefox disk usage sky rocketed after that",
+ test_linter(),
+ "i can hear the audio but the firefox disk usage skyrocketed after that",
+ );
+}
+
+#[test]
+fn sky_rocketing() {
+ assert_suggestion_result(
+ "With the rising abilities of agents, expectations are sky rocketing in terms of productivity.",
+ test_linter(),
+ "With the rising abilities of agents, expectations are skyrocketing in terms of productivity.",
+ );
+}
+
// SubjectAndObjectPronoun
#[test]