Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: afict → as far as I can tell (#4301)
Andrew Dunbarec99141d62ea
diff --git a/harper-core/default_config.json b/harper-core/default_config.jsonindex 97fd6ddad..2c2b7b77c 100644--- a/harper-core/default_config.json+++ b/harper-core/default_config.json@@ -198,6 +198,13 @@"description": "Covers abbreviated forms and initialisms that should use the expected letter casing or punctuation.","child": {"settings": [+ {+ "Bool": {+ "name": "AsFarAsICanTell",+ "state": true,+ "label": "As Far As I Can Tell"+ }+ },{"Bool": {"name": "AsFarAsIKnow",diff --git a/harper-core/src/linting/initialisms.rs b/harper-core/src/linting/initialisms.rsindex eb8431e64..a82e91830 100644--- a/harper-core/src/linting/initialisms.rs+++ b/harper-core/src/linting/initialisms.rs@@ -17,6 +17,7 @@ pub fn lint_group() -> LintGroup {}add_initialism_mappings!(group, {+ "AsFarAsICanTell" => ("afaict", &["as far as I can tell"]),"AsFarAsIKnow" => ("afaik", &["as far as I know"]),"AsSoonAsPossible" => ("asap", &["as soon as possible"]),"BeRightBack" => ("brb", &["be right back"]),@@ -240,4 +241,13 @@ mod tests {"Let me know if you need any debug logs.",);}++ #[test]+ fn corrects_afaict() {+ assert_suggestion_result(+ "AFAICT the other drivers of recent progress in LLMs have been: ploughing in lots and lots of specialised training data",+ lint_group(),+ "As far as i can tell the other drivers of recent progress in LLMs have been: ploughing in lots and lots of specialised training data",+ );+ }}