Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: ootb → out of the box (#4378)
Andrew Dunbar90dd411dd07e
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 7899d7d33..152eb8a2b 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -338,6 +338,13 @@"label": "On the Other Hand"}},+ {+ "Bool": {+ "name": "OutOfTheBox",+ "state": true,+ "label": "Out of the Box"+ }+ },{"Bool": {"name": "PleaseTakeALook",diff --git a/harper-core/src/linting/initialisms.rs b/harper-core/src/linting/initialisms.rsindex 0cb81c330..54d0b1e79 100644--- a/harper-core/src/linting/initialisms.rs+++ b/harper-core/src/linting/initialisms.rs@@ -37,6 +37,7 @@ pub fn lint_group() -> LintGroup {"NeverMind" => ("nvm", &["never mind"]),"OhMyGod" => ("omg", &["oh my god"]),"OnTheOtherHand" => ("otoh", &["on the other hand"]),+ "OutOfTheBox" => ("ootb", &["out of the box"]),"PleaseTakeALook" => ("ptal", &["please take a look"]),"Really" => ("rly", &["really"]),"TalkToYouLater" => ("ttyl", &["talk to you later"]),@@ -260,4 +261,13 @@ mod tests {"\"Actual consequences\", On the other hand, most directly relates to the camp(s) focused on \"embodiment\"",);}++ #[test]+ fn corrects_ootb() {+ assert_suggestion_result(+ "The Oracle Linux OpenBLAS build isnt detected ootb, and it doesn't perform well compared to x86 for some reason.",+ lint_group(),+ "The Oracle Linux OpenBLAS build isnt detected ootb, and it doesn't perform well compared to x86 for some reason.",+ );+ }}