diff --git a/proselint/checks/industrial_language/__init__.py b/proselint/checks/industrial_language/__init__.py new file mode 100644 index 000000000..aa26a2190 --- /dev/null +++ b/proselint/checks/industrial_language/__init__.py @@ -0,0 +1,25 @@ +"""Industrial language.""" + +from proselint.checks.industrial_language.airlinese import ( + __register__ as register_airlinese, +) +from proselint.checks.industrial_language.bureaucratese import ( + __register__ as register_bureaucratese, +) +from proselint.checks.industrial_language.chatspeak import ( + __register__ as register_chatspeak, +) +from proselint.checks.industrial_language.commercialese import ( + __register__ as register_commercialese, +) +from proselint.checks.industrial_language.jargon import ( + __register__ as register_jargon, +) + +__register__ = ( + *register_airlinese, + *register_bureaucratese, + *register_chatspeak, + *register_commercialese, + *register_jargon, +) diff --git a/proselint/checks/airlinese.py b/proselint/checks/industrial_language/airlinese.py similarity index 71% rename from proselint/checks/airlinese.py rename to proselint/checks/industrial_language/airlinese.py index 0346a9dbb..b489a4825 100644 --- a/proselint/checks/airlinese.py +++ b/proselint/checks/industrial_language/airlinese.py @@ -20,11 +20,13 @@ examples_pass = [ "Smoke phrase with nothing flagged.", - "Have I menplaned that?", + "Did that car just hydroplane?", + "I know how to operate a planing mill.", ] examples_fail = [ - "We getting all deplaned.", + "This is your captain speaking. We will be taking off momentarily.", + "We deplaned promptly after.", ] check = CheckSpec( @@ -33,7 +35,7 @@ "deplan(?:e|ed|ing|ement)", "taking off momentarily", ]), - "airlinese.misc", + "industrial_language.airlinese", "'{}' is airlinese.", ) diff --git a/proselint/checks/misc/bureaucratese.py b/proselint/checks/industrial_language/bureaucratese.py similarity index 94% rename from proselint/checks/misc/bureaucratese.py rename to proselint/checks/industrial_language/bureaucratese.py index ca8e07313..65e44eb8c 100644 --- a/proselint/checks/misc/bureaucratese.py +++ b/proselint/checks/industrial_language/bureaucratese.py @@ -32,7 +32,7 @@ "meet with your approval", "meets with your approval", ]), - "misc.bureaucratese", + "industrial_language.bureaucratese", "'{}' is bureaucratese.", ) diff --git a/proselint/checks/misc/chatspeak.py b/proselint/checks/industrial_language/chatspeak.py similarity index 93% rename from proselint/checks/misc/chatspeak.py rename to proselint/checks/industrial_language/chatspeak.py index b612e28b1..494b97950 100644 --- a/proselint/checks/misc/chatspeak.py +++ b/proselint/checks/industrial_language/chatspeak.py @@ -44,7 +44,7 @@ "LUV", "OMG", "rofl", - "roftl", + "rotfl", "sum1", "SWAK", "THNX", @@ -52,7 +52,7 @@ "TTYL", "XOXO", ]), - "misc.chatspeak", + "industrial_language.chatspeak", "'{}' is chatspeak. Write it out.", ) diff --git a/proselint/checks/misc/commercialese.py b/proselint/checks/industrial_language/commercialese.py similarity index 94% rename from proselint/checks/misc/commercialese.py rename to proselint/checks/industrial_language/commercialese.py index 81a7357e7..bf88de630 100644 --- a/proselint/checks/misc/commercialese.py +++ b/proselint/checks/industrial_language/commercialese.py @@ -58,7 +58,7 @@ "your favor has come to hand", "yours of even date", ]), - "misc.commercialese", + "industrial_language.commercialese", "'{}' is commercialese.", ) @@ -74,7 +74,7 @@ }, padding=Pd.sep_in_txt, ), - "misc.commercialese.abbreviations", + "industrial_language.commercialese.abbreviations", "'{}' is commercialese. Depending on audience switch to {}.", ) diff --git a/proselint/checks/corporate_speak.py b/proselint/checks/industrial_language/corporate_speak.py similarity index 96% rename from proselint/checks/corporate_speak.py rename to proselint/checks/industrial_language/corporate_speak.py index b1e074e46..b38d8081c 100644 --- a/proselint/checks/corporate_speak.py +++ b/proselint/checks/industrial_language/corporate_speak.py @@ -55,7 +55,7 @@ "elephant in the room", "on my plate", ]), - "corporate_speak.misc", + "industrial_language.corporate_speak", "Minimize your use of corporate catchphrases like this one.", ) diff --git a/proselint/checks/jargon.py b/proselint/checks/industrial_language/jargon.py similarity index 95% rename from proselint/checks/jargon.py rename to proselint/checks/industrial_language/jargon.py index 047651136..045ddda92 100644 --- a/proselint/checks/jargon.py +++ b/proselint/checks/industrial_language/jargon.py @@ -34,7 +34,7 @@ "per your request", "disincentivize", ]), - "jargon.misc", + "industrial_language.jargon", "'{}' is jargon. Can you replace it with something more standard?", ) diff --git a/proselint/checks/misc/__init__.py b/proselint/checks/misc/__init__.py index 16799cf3f..a8ef9e18e 100644 --- a/proselint/checks/misc/__init__.py +++ b/proselint/checks/misc/__init__.py @@ -8,17 +8,10 @@ __register__ as register_back_formations, ) from proselint.checks.misc.braces import __register__ as register_braces -from proselint.checks.misc.bureaucratese import ( - __register__ as register_bureaucratese, -) from proselint.checks.misc.but import __register__ as register_but from proselint.checks.misc.capitalization import ( __register__ as register_capitalization, ) -from proselint.checks.misc.chatspeak import __register__ as register_chatspeak -from proselint.checks.misc.commercialese import ( - __register__ as register_commercialese, -) from proselint.checks.misc.composition import ( __register__ as register_composition, ) @@ -72,11 +65,8 @@ *register_apologizing, *register_back_formations, *register_braces, - *register_bureaucratese, *register_but, *register_capitalization, - *register_chatspeak, - *register_commercialese, *register_composition, *register_currency, *register_debased,