Skip to content

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

feat: add cuz→because to abbreviation expansions

hippietrail17ad61b1f4ee
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rs
index 79782dfc3..132a58281 100644
--- a/harper-core/src/linting/phrase_corrections.rs
+++ b/harper-core/src/linting/phrase_corrections.rs
@@ -923,6 +923,12 @@ pub fn lint_group() -> LintGroup {
"Use `without` instead of `w/o`",
"Expands the abbreviation `w/o` to the full word `without` for clarity."
),
+ "ExpandBecause" => (
+ ["cuz"],
+ ["because"],
+ "Use `because` instead of informal `cuz`",
+ "Expands the informal abbreviation `cuz` to the full word `because` for formailty."
+ )
});
group.set_all_rules_to(Some(true));