Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feature: TBF → to be fair (#4644)
Andrew Dunbar3f3deb36819f
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 1e7d87cbe..8434965cb 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -373,6 +373,13 @@"label": "Talk To You Later"}},+ {+ "Bool": {+ "name": "ToBeFair",+ "state": true,+ "label": "To Be Fair"+ }+ },{"Bool": {"name": "ToBeHonest",diff --git a/harper-core/src/linting/initialisms.rs b/harper-core/src/linting/initialisms.rsindex f6b981014..b039e90a1 100644--- a/harper-core/src/linting/initialisms.rs+++ b/harper-core/src/linting/initialisms.rs@@ -42,6 +42,7 @@ pub fn lint_group() -> LintGroup {"PleaseTakeALook" => ("ptal", &["please take a look"]),"Really" => ("rly", &["really"]),"TalkToYouLater" => ("ttyl", &["talk to you later"]),+ "ToBeFair" => ("tbf", &["to be fair"]),"ToBeHonest" => ("tbh", &["to be honest"]),});@@ -280,4 +281,13 @@ mod tests {"As i understand it, in the US something that's entirely machine-generated is not eligible for copyright protection.",);}++ #[test]+ fn corrects_tbf() {+ assert_suggestion_result(+ "TBF pretty much no one connects their devices anymore to anything other than charging.",+ lint_group(),+ "To be fair pretty much no one connects their devices anymore to anything other than charging.",+ );+ }}