Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat(core): create specific linter for closed compound nouns
Elijah Potter8faa551c69b2
diff --git a/harper-comments/tests/language_support_sources/laravel_app.php b/harper-comments/tests/language_support_sources/laravel_app.phpindex f46726731..7ae2d3a36 100644--- a/harper-comments/tests/language_support_sources/laravel_app.php+++ b/harper-comments/tests/language_support_sources/laravel_app.php@@ -34,7 +34,7 @@ return [|--------------------------------------------------------------------------|| When your application is in debug mode, detailed error messages with- | stack traces will be shown on every error that occurs within your+ | stacktraces will be shown on every error that occurs within your| application. If disabled, a simple generic error page is shown.|*/diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dictindex 6878e4b14..675c495ea 100644--- a/harper-core/dictionary.dict+++ b/harper-core/dictionary.dict@@ -19182,6 +19182,7 @@ cyanobacteria/1cyberbully/14SMcybercafe/1Scybernetic/5S+cyber/5cybernetics/1Mcyberpunk/1SMcybersex/14@@ -49800,3 +49801,7 @@ PRQL/1MapReduce/1SQLAlchemy/1inclusivity/SM+touchpad/SM+bitstream/SM+backplane/SM+cyberattack/SMdiff --git a/harper-core/src/linting/closed_compounds.rs b/harper-core/src/linting/closed_compounds.rsindex f70599bc7..063216733 100644--- a/harper-core/src/linting/closed_compounds.rs+++ b/harper-core/src/linting/closed_compounds.rs@@ -69,22 +69,9 @@ create_closed_compound_linter!(However, "how ever", "however");create_closed_compound_linter!(Altogether, "all together", "altogether");create_closed_compound_linter!(Asleep, "a sleep", "asleep");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");--create_closed_compound_linter!(Forever, "for ever", "forever");-create_closed_compound_linter!(Into, "in to", "into");-create_closed_compound_linter!(Everyone, "every one", "everyone");create_closed_compound_linter!(Nobody, "no body", "nobody");create_closed_compound_linter!(Somebody, "some body", "somebody");create_closed_compound_linter!(Anybody, "any body", "anybody");@@ -92,53 +79,22 @@ create_closed_compound_linter!(Nothing, "no thing", "nothing");create_closed_compound_linter!(Anyway, "any way", "anyway");create_closed_compound_linter!(Anytime, "any time", "anytime");create_closed_compound_linter!(Anywhere, "any where", "anywhere");-create_closed_compound_linter!(Nowhere, "no where", "nowhere");-create_closed_compound_linter!(Everywhere, "every where", "everywhere");-create_closed_compound_linter!(Overnight, "over night", "overnight");create_closed_compound_linter!(Instead, "in stead", "instead");-create_closed_compound_linter!(Backpack, "back pack", "backpack");-create_closed_compound_linter!(Cupboard, "cup board", "cupboard");-create_closed_compound_linter!(Keyboard, "key board", "keyboard");create_closed_compound_linter!(Somewhere, "some where", "somewhere");-create_closed_compound_linter!(Notebook, "note book", "notebook");create_closed_compound_linter!(Middleware, "middle ware", "middleware");-create_closed_compound_linter!(Firmware, "firm ware", "firmware");-create_closed_compound_linter!(Smartwatch, "smart watch", "smartwatch");-create_closed_compound_linter!(Touchscreen, "touch screen", "touchscreen");-create_closed_compound_linter!(Headset, "head set", "headset");-create_closed_compound_linter!(Framework, "frame work", "framework");-create_closed_compound_linter!(Touchpad, "touch pad", "touchpad");-create_closed_compound_linter!(Microprocessor, "micro processor", "microprocessor");-create_closed_compound_linter!(Datacenter, "data center", "datacenter");-create_closed_compound_linter!(Smartphone, "smart phone", "smartphone");-create_closed_compound_linter!(Webcam, "web cam", "webcam");-create_closed_compound_linter!(Headphone, "head phone", "headphone");-create_closed_compound_linter!(Desktop, "desk top", "desktop");-create_closed_compound_linter!(Laptop, "lap top", "laptop");+create_closed_compound_linter!(Into, "in to", "into");create_closed_compound_linter!(Overclocking, "over clocking", "overclocking");create_closed_compound_linter!(Backplane, "back plane", "backplane");-create_closed_compound_linter!(Smartcard, "smart card", "smartcard");create_closed_compound_linter!(Bitrate, "bit rate", "bitrate");create_closed_compound_linter!(Overload, "over load", "overload");create_closed_compound_linter!(Underclock, "under clock", "underclock");-create_closed_compound_linter!(Blockchain, "block chain", "blockchain");create_closed_compound_linter!(Opensource, "open source", "opensource");create_closed_compound_linter!(Devops, "dev ops", "devops");-create_closed_compound_linter!(Bitstream, "bit stream", "bitstream");-create_closed_compound_linter!(Firewall, "fire wall", "firewall");-create_closed_compound_linter!(Sitemap, "site map", "sitemap");create_closed_compound_linter!(Multithreading, "multi threading", "multithreading");+create_closed_compound_linter!(Everywhere, "every where", "everywhere");create_closed_compound_linter!(Multicore, "multi core", "multicore");-create_closed_compound_linter!(Microservices, "micro services", "microservices");-create_closed_compound_linter!(Dashboard, "dash board", "dashboard");-create_closed_compound_linter!(Cyberspace, "cyber space", "cyberspace");create_closed_compound_linter!(Multimedia, "multi media", "multimedia");create_closed_compound_linter!(Ecommerce, "e commerce", "ecommerce");-create_closed_compound_linter!(Datamining, "data mining", "datamining");-create_closed_compound_linter!(Datascience, "data science", "datascience");-create_closed_compound_linter!(Cyberattack, "cyber attack", "cyberattack");-create_closed_compound_linter!(Websocket, "web socket", "websocket");-create_closed_compound_linter!(Fingerprint, "finger print", "fingerprint");create_closed_compound_linter!(Widespread, "wide spread", "widespread");create_closed_compound_linter!(Notwithstanding, "not with standing", "notwithstanding");create_closed_compound_linter!(Anyhow, "any how", "anyhow");diff --git a/harper-core/src/linting/compound_nouns.rs b/harper-core/src/linting/compound_nouns.rsnew file mode 100644index 000000000..f516c8f56--- /dev/null+++ b/harper-core/src/linting/compound_nouns.rs@@ -0,0 +1,380 @@+use std::sync::Arc;++use itertools::Itertools;++use crate::{CharString, CharStringExt, Dictionary, Document, FstDictionary, Span, TokenStringExt};++use super::{Lint, LintKind, Linter, Suggestion};++pub struct CompoundNouns {+ dict: Arc<FstDictionary>,+}++impl CompoundNouns {+ pub fn new() -> Self {+ Self {+ dict: FstDictionary::curated(),+ }+ }++ /// Create a lint for two attempted lint matches.+ /// Since this function does not have access to tokens, you must set and modify the span+ /// yourself.+ fn attempt_lint_match(+ &self,+ word_a: &[char],+ word_b: &[char],+ buffer: &mut CharString,+ ) -> Option<Lint> {+ buffer.clear();+ buffer.extend_from_slice(word_a);+ buffer.extend_from_slice(word_b);++ if self.dict.contains_word(word_a)+ && self.dict.contains_word(word_b)+ && self.dict.get_word_metadata(buffer).is_noun()+ {+ Some(Lint {+ span: Span::default(),+ lint_kind: LintKind::Spelling,+ suggestions: vec![Suggestion::ReplaceWith(buffer.to_vec())],+ message: format!("Did you mean the closed compound “{}”?", buffer.to_string()),+ priority: 63,+ })+ } else {+ None+ }+ }+}++impl Default for CompoundNouns {+ fn default() -> Self {+ Self::new()+ }+}++impl Linter for CompoundNouns {+ fn lint(&mut self, document: &Document) -> Vec<Lint> {+ let mut lints = Vec::new();++ // A persistent buffer for misc operations.+ let mut buffer = CharString::new();++ for (a, w, b) in document.tokens().tuple_windows() {+ if !a.kind.is_word() || !w.kind.is_whitespace() || !b.kind.is_word() {+ continue;+ }++ let a_meta = a.kind.expect_word();+ let b_meta = b.kind.expect_word();+ let mut a_chars: CharString = document.get_span_content(a.span).into();+ let mut b_chars: CharString = document.get_span_content(b.span).into();++ if a_chars.len() <= 1+ || b_chars.len() <= 1+ || matches!(b_chars.as_slice(), &['i', 's'])+ || a_meta.article+ || b_meta.article+ {+ continue;+ }++ let span = [a, w, b].span().unwrap();++ macro_rules! attempt {+ () => {+ if let Some(mut lint) = self.attempt_lint_match(&a_chars, &b_chars, &mut buffer)+ {+ lint.span = span;+ lints.push(lint);+ continue;+ }+ };+ }++ attempt!();+ a_chars[0] = a_chars[0].to_ascii_uppercase();+ attempt!();+ b_chars[0] = b_chars[0].to_ascii_uppercase();+ attempt!();+ a_chars[0] = a_chars[0].to_ascii_lowercase();+ attempt!();+ b_chars[0] = b_chars[0].to_ascii_lowercase();+ attempt!();+ }++ lints+ }++ fn description(&self) -> &str {+ "Accidentally inserting a space inside a word is common. This rule looks for valid compound nouns that are split by whitespace and whose components are also valid words."+ }+}++#[cfg(test)]+mod tests {+ use super::CompoundNouns;+ use crate::linting::tests::{assert_lint_count, assert_suggestion_result};++ #[test]+ fn lap_top() {+ let test_sentence = "I bought a lap top yesterday.";+ let expected = "I bought a laptop yesterday.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn web_cam() {+ let test_sentence = "The web cam captured a stunning image.";+ let expected = "The web cam captured a stunning image."; // see note below+ // In many contexts, "web cam" is acceptable if meant as a phrase.+ // However, if your dictionary marks "webcam" as the noun, then:+ let expected = "The webcam captured a stunning image.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn note_book() {+ let test_sentence = "She always carries a note book to jot down ideas.";+ let expected = "She always carries a notebook to jot down ideas.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn mother_board() {+ let test_sentence = "After the upgrade, the mother board was replaced.";+ let expected = "After the upgrade, the motherboard was replaced.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn smart_phone() {+ let test_sentence = "He bought a new smart phone last week.";+ let expected = "He bought a new smartphone last week.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn desk_top() {+ let test_sentence = "The company provided each employee with a desk top computer.";+ let expected = "The company provided each employee with a desktop computer.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn firm_ware() {+ let test_sentence = "The device's firm ware was updated overnight.";+ let expected = "The device's firmware was updated overnight.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn back_plane() {+ let test_sentence = "A reliable back plane is essential for high-speed data transfer.";+ let expected = "A reliable backplane is essential for high-speed data transfer.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn spread_sheet() {+ let test_sentence = "The accountant reviewed the spread sheet carefully.";+ let expected = "The accountant reviewed the spreadsheet carefully.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn side_bar() {+ let test_sentence = "The website's side bar offers quick navigation links.";+ let expected = "The website's sidebar offers quick navigation links.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn back_pack() {+ let test_sentence = "I packed my books in my back pack before leaving.";+ let expected = "I packed my books in my backpack before leaving.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn cup_board() {+ let test_sentence = "She stored the dishes in the old cup board.";+ let expected = "She stored the dishes in the old cupboard.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn key_board() {+ let test_sentence = "My key board stopped working during the meeting.";+ let expected = "My keyboard stopped working during the meeting.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn touch_screen() {+ let test_sentence = "The device features a responsive touch screen.";+ let expected = "The device features a responsive touchscreen.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn head_set() {+ let test_sentence = "He bought a new head set for his workouts.";+ let expected = "He bought a new headset for his workouts.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn frame_work() {+ let test_sentence = "The frame work of the app was built with care.";+ let expected = "The framework of the app was built with care.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn touch_pad() {+ let test_sentence = "The touch pad on my laptop is very sensitive.";+ let expected = "The touchpad on my laptop is very sensitive.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn micro_processor() {+ let test_sentence = "This micro processor is among the fastest available.";+ let expected = "This microprocessor is among the fastest available.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn head_phone() {+ let test_sentence = "I lost my head phone at the gym.";+ let expected = "I lost my headphone at the gym.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn micro_services() {+ let test_sentence = "Our architecture now relies on micro services.";+ let expected = "Our architecture now relies on microservices.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn dash_board() {+ let test_sentence = "The dash board shows real-time analytics.";+ let expected = "The dashboard shows real-time analytics.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn site_map() {+ let test_sentence = "A site map is provided at the footer of the website.";+ let expected = "A sitemap is provided at the footer of the website.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn fire_wall() {+ let test_sentence = "A robust fire wall is essential for network security.";+ let expected = "A robust firewall is essential for network security.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn bit_stream() {+ let test_sentence = "The bit stream was interrupted during transmission.";+ let expected = "The bitstream was interrupted during transmission.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn block_chain() {+ let test_sentence = "The block chain is revolutionizing the financial sector.";+ let expected = "The blockchain is revolutionizing the financial sector.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn thumb_nail() {+ let test_sentence = "I saved the image as a thumb nail.";+ let expected = "I saved the image as a thumbnail.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn bath_room() {+ let test_sentence = "They remodeled the bath room entirely.";+ let expected = "They remodeled the bathroom entirely.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn for_ever() {+ let test_sentence = "Promise me you'll love me for ever.";+ let expected = "Promise me you'll love me forever.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn over_night() {+ let test_sentence = "They set off on their journey over night.";+ let expected = "They set off on their journey overnight.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn every_one() {+ let test_sentence = "Every one should have access to quality education.";+ let expected = "Everyone should have access to quality education.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn hand_held() {+ let test_sentence = "The camera has a comfortable hand held design.";+ let expected = "The camera has a comfortable handheld design.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn play_ground() {+ let test_sentence = "The kids spent the afternoon at the play ground.";+ let expected = "The kids spent the afternoon at the playground.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn run_way() {+ let test_sentence = "The airplane taxied along the run way.";+ let expected = "The airplane taxied along the runway.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn cyber_space() {+ let test_sentence = "Hackers roam the cyber space freely.";+ let expected = "Hackers roam the cyberspace freely.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn cyber_attack() {+ let test_sentence = "The network was hit by a cyber attack.";+ let expected = "The network was hit by a cyberattack.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn web_socket() {+ let test_sentence = "Real-time updates are sent via a web socket.";+ let expected = "Real-time updates are sent via a WebSocket.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }++ #[test]+ fn finger_print() {+ let test_sentence = "The detective collected a finger print as evidence.";+ let expected = "The detective collected a fingerprint as evidence.";+ assert_suggestion_result(test_sentence, CompoundNouns::default(), expected);+ }+}diff --git a/harper-core/src/linting/lint_group.rs b/harper-core/src/linting/lint_group.rsindex 75c5f0f76..4e8fc485c 100644--- a/harper-core/src/linting/lint_group.rs+++ b/harper-core/src/linting/lint_group.rs@@ -6,19 +6,15 @@ use super::avoid_curses::AvoidCurses;use super::boring_words::BoringWords;use super::capitalize_personal_pronouns::CapitalizePersonalPronouns;use super::closed_compounds::{- Altogether, Anybody, Anyhow, Anytime, Anyway, Anywhere, Asleep, Backpack, Backplane, Bathroom,- Bitrate, Bitstream, Blockchain, Cupboard, Cyberattack, Cyberspace, Dashboard, Datacenter,- Datamining, Datascience, Desktop, Devops, Downright, Ecommerce, Evermore, Everyone, Everywhere,- Facewash, Fingerprint, Firewall, Firmware, Forever, Forthwith, Framework, Handheld, Headphone,- Headset, Henceforth, Hereafter, Hereby, Hereunder, However, Insofar, Instead, Intact, Into,- Itself, Keyboard, Laptop, Likewise, Microprocessor, Microservices, Middleware, Misunderstand,- Misunderstood, Misuse, Misused, Multicore, Multimedia, Multithreading, Myself, Nobody,- Nonetheless, Northeast, Northeastern, Notebook, Nothing, Notwithstanding, Nowhere, Opensource,- Otherwise, Overall, Overclocking, Overload, Overnight, Playground, Postpone, Proofread,- Regardless, Runway, Sitemap, Smartcard, Smartphone, Smartwatch, Somebody, Somehow, Somewhere,- Thereafter, Therefore, Therein, Thereupon, Thumbnail, Tonight, Touchpad, Touchscreen,- Underclock, Upholstery, Upset, Upward, Webcam, Websocket, Whereupon, Widespread, Worldwide,+ Altogether, Anybody, Anyhow, Anytime, Anyway, Anywhere, Asleep, Backplane, Bitrate, Devops,+ Downright, Ecommerce, Evermore, Everywhere, Forthwith, Henceforth, Hereafter, Hereby,+ Hereunder, However, Insofar, Instead, Intact, Into, Itself, Likewise, Middleware,+ Misunderstand, Misunderstood, Misuse, Misused, Multicore, Multimedia, Multithreading, Myself,+ Nobody, Nonetheless, Nothing, Notwithstanding, Opensource, Otherwise, Overall, Overclocking,+ Overload, Postpone, Proofread, Regardless, Somebody, Somehow, Somewhere, Thereafter, Therefore,+ Therein, Thereupon, Tonight, Underclock, Upset, Upward, Whereupon, Widespread, Worldwide,};+use super::compound_nouns::CompoundNouns;use super::correct_number_suffix::CorrectNumberSuffix;use super::despite_of::DespiteOf;use super::dot_initialisms::DotInitialisms;@@ -175,6 +171,7 @@ macro_rules! create_lint_group_config {}create_lint_group_config!(+ CompoundNouns => true,Evermore => true,Regardless => true,Henceforth => true,@@ -194,53 +191,20 @@ create_lint_group_config!(Anyhow => true,Notwithstanding => true,Widespread => true,- Fingerprint => true,- Websocket => true,- Cyberattack => true,- Datascience => true,- Datamining => true,Ecommerce => true,Multimedia => true,- Cyberspace => true,- Dashboard => true,- Microservices => true,Multicore => true,Multithreading => true,- Sitemap => true,- Firewall => true,- Bitstream => true,Devops => true,Opensource => true,- Blockchain => true,Underclock => true,Overload => true,Bitrate => true,- Smartcard => true,Backplane => true,Overclocking => true,- Laptop => true,- Desktop => true,- Headphone => true,- Webcam => true,- Smartphone => true,- Datacenter => true,- Microprocessor => true,- Touchpad => true,- Framework => true,- Headset => true,- Touchscreen => true,- Smartwatch => true,- Firmware => true,Middleware => true,Somewhere => true,- Keyboard => true,- Cupboard => true,- Notebook => true,- Backpack => true,Instead => true,- Overnight => true,- Everywhere => true,- Nowhere => true,Anywhere => true,Anytime => true,Anyway => true,@@ -248,21 +212,10 @@ create_lint_group_config!(Anybody => true,Somebody => true,Nobody => true,- Everyone => true,Into => true,- Forever => true,Proofread => true,- Upholstery => true,- Northeastern => true,- Northeast => true,- Runway => true,- Playground => true,- Handheld => true,- Facewash => true,- Bathroom => true,Somehow => true,Intact => true,- Thumbnail => true,Upset => true,Misunderstood => true,Asleep => true,@@ -339,6 +292,7 @@ create_lint_group_config!(SneakingSuspicion => true,SupposeTo => true,SpecialAttention => true,+ Everywhere => true,ThanOthers => true,);diff --git a/harper-core/src/linting/mod.rs b/harper-core/src/linting/mod.rsindex f66df831f..4381d8004 100644--- a/harper-core/src/linting/mod.rs+++ b/harper-core/src/linting/mod.rs@@ -7,6 +7,7 @@ mod avoid_curses;mod boring_words;mod capitalize_personal_pronouns;mod closed_compounds;+mod compound_nouns;mod correct_number_suffix;mod currency_placement;mod dashes;@@ -50,19 +51,15 @@ pub use avoid_curses::AvoidCurses;pub use boring_words::BoringWords;pub use capitalize_personal_pronouns::CapitalizePersonalPronouns;pub use closed_compounds::{- Altogether, Anybody, Anyhow, Anytime, Anyway, Anywhere, Asleep, Backpack, Backplane, Bathroom,- Bitrate, Bitstream, Blockchain, Cupboard, Cyberattack, Cyberspace, Dashboard, Datacenter,- Datamining, Datascience, Desktop, Devops, Downright, Ecommerce, Evermore, Everyone, Everywhere,- Facewash, Fingerprint, Firewall, Firmware, Forever, Forthwith, Framework, Handheld, Headphone,- Headset, Henceforth, Hereafter, Hereby, Hereunder, However, Insofar, Instead, Intact, Into,- Itself, Keyboard, Laptop, Likewise, Microprocessor, Microservices, Middleware, Misunderstand,- Misunderstood, Misuse, Misused, Multicore, Multimedia, Multithreading, Myself, Nobody,- Nonetheless, Northeast, Northeastern, Notebook, Nothing, Notwithstanding, Nowhere, Opensource,- Otherwise, Overall, Overclocking, Overload, Overnight, Playground, Postpone, Proofread,- Regardless, Runway, Sitemap, Smartcard, Smartphone, Smartwatch, Somebody, Somehow, Somewhere,- Thereafter, Therefore, Therein, Thereupon, Thumbnail, Tonight, Touchpad, Touchscreen,- Underclock, Upholstery, Upset, Upward, Webcam, Websocket, Whereupon, Widespread, Worldwide,+ Altogether, Anybody, Anyhow, Anytime, Anyway, Anywhere, Asleep, Backplane, Bitrate, Devops,+ Downright, Ecommerce, Evermore, Everywhere, Forthwith, Henceforth, Hereafter, Hereby,+ Hereunder, However, Insofar, Instead, Intact, Into, Itself, Likewise, Middleware,+ Misunderstand, Misunderstood, Misuse, Misused, Multicore, Multimedia, Multithreading, Myself,+ Nobody, Nonetheless, Nothing, Notwithstanding, Opensource, Otherwise, Overall, Overclocking,+ Overload, Postpone, Proofread, Regardless, Somebody, Somehow, Somewhere, Thereafter, Therefore,+ Therein, Thereupon, Tonight, Underclock, Upset, Upward, Whereupon, Widespread, Worldwide,};+pub use compound_nouns::CompoundNouns;pub use correct_number_suffix::CorrectNumberSuffix;pub use currency_placement::CurrencyPlacement;pub use despite_of::DespiteOf;diff --git a/justfile b/justfileindex 757be190a..b1c78679d 100644--- a/justfile+++ b/justfile@@ -192,8 +192,8 @@ precommit: check test build-harperjs build-obsidian build-web# Install `harper-cli` and `harper-ls` to your machine via `cargo`install:- cargo install --path harper-ls- cargo install --path harper-cli+ cargo install --path harper-ls --locked+ cargo install --path harper-cli --locked# Run `harper-cli` on the Harper repositorydogfood: