Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat(core): add more closed compounds
Elijah Potter09fcc79d94bb
diff --git a/harper-core/src/linting/closed_compounds.rs b/harper-core/src/linting/closed_compounds.rsindex efbf42403..44ef7bc51 100644--- a/harper-core/src/linting/closed_compounds.rs+++ b/harper-core/src/linting/closed_compounds.rs@@ -72,6 +72,15 @@ create_closed_compound_linter!(Upset, "up set", "upset");create_closed_compound_linter!(Thumbnail, "thumb nail", "thumbnail");create_closed_compound_linter!(Intact, "in tact", "intact");create_closed_compound_linter!(Somehow, "some how", "somehow");+create_closed_compound_linter!(Bathroom, "bath room", "bathroom");+create_closed_compound_linter!(Facewash, "face wash", "facewash");+create_closed_compound_linter!(Handheld, "hand held", "handheld");+create_closed_compound_linter!(Playground, "play ground", "playground");+create_closed_compound_linter!(Runway, "run way", "runway");+create_closed_compound_linter!(Northeast, "north east", "northeast");+create_closed_compound_linter!(Northeastern, "north eastern", "northeastern");+create_closed_compound_linter!(Upholstery, "up holstery", "upholstery");+create_closed_compound_linter!(Proofread, "proof read", "proofread");#[cfg(test)]mod tests {diff --git a/harper-core/src/linting/lint_group.rs b/harper-core/src/linting/lint_group.rsindex 09631ab7e..6529f916f 100644--- a/harper-core/src/linting/lint_group.rs+++ b/harper-core/src/linting/lint_group.rs@@ -24,6 +24,15 @@ use super::closed_compounds::Thumbnail;use super::closed_compounds::Tonight;use super::closed_compounds::Upset;use super::closed_compounds::Worldwide;+use super::compound_words::Bathroom;+use super::compound_words::Facewash;+use super::compound_words::Handheld;+use super::compound_words::Northeast;+use super::compound_words::Northeastern;+use super::compound_words::Playground;+use super::compound_words::Proofread;+use super::compound_words::Runway;+use super::compound_words::Upholstery;use super::correct_number_suffix::CorrectNumberSuffix;use super::despite_of::DespiteOf;use super::dot_initialisms::DotInitialisms;@@ -180,6 +189,15 @@ macro_rules! create_lint_group_config {}create_lint_group_config!(+ Proofread => true,+ Upholstery => true,+ Northeastern => true,+ Northeast => true,+ Runway => true,+ Playground => true,+ Handheld => true,+ Facewash => true,+ Bathroom => true,Somehow => true,Intact => true,Thumbnail => true,diff --git a/harper-core/src/linting/mod.rs b/harper-core/src/linting/mod.rsindex 4e950b765..94b2c7e14 100644--- a/harper-core/src/linting/mod.rs+++ b/harper-core/src/linting/mod.rs@@ -66,6 +66,15 @@ pub use closed_compounds::Thumbnail;pub use closed_compounds::Tonight;pub use closed_compounds::Upset;pub use closed_compounds::Worldwide;+pub use compound_words::Bathroom;+pub use compound_words::Facewash;+pub use compound_words::Handheld;+pub use compound_words::Northeast;+pub use compound_words::Northeastern;+pub use compound_words::Playground;+pub use compound_words::Proofread;+pub use compound_words::Runway;+pub use compound_words::Upholstery;pub use correct_number_suffix::CorrectNumberSuffix;pub use currency_placement::CurrencyPlacement;pub use despite_of::DespiteOf;