From 653bbd35dc563e96031536b0abcc11bd49f83dc1 Mon Sep 17 00:00:00 2001 From: "Lara A. Ross" Date: Thu, 9 Jul 2015 02:04:17 -0700 Subject: [PATCH] Create check for corporate catchphrsases. Closes #136. --- proselint/.proselintrc | 1 + proselint/checks/inc/__init__.py | 1 + proselint/checks/inc/corporate_speak.py | 53 +++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 proselint/checks/inc/__init__.py create mode 100644 proselint/checks/inc/corporate_speak.py diff --git a/proselint/.proselintrc b/proselint/.proselintrc index 539703aac..d6fa092ce 100644 --- a/proselint/.proselintrc +++ b/proselint/.proselintrc @@ -28,6 +28,7 @@ "consistency.spacing" : true, "consistency.spelling" : true, "butterick.symbols" : true, + "inc.corporate_speak" : true, "leonard.exclamation" : true, "leonard.hell" : true, "misc.annotations" : true, diff --git a/proselint/checks/inc/__init__.py b/proselint/checks/inc/__init__.py new file mode 100644 index 000000000..6b82e38f7 --- /dev/null +++ b/proselint/checks/inc/__init__.py @@ -0,0 +1 @@ +u"""Advice from Inc.com.""" diff --git a/proselint/checks/inc/corporate_speak.py b/proselint/checks/inc/corporate_speak.py new file mode 100644 index 000000000..bda10efc3 --- /dev/null +++ b/proselint/checks/inc/corporate_speak.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +"""Corporate speak. + +--- +layout: post +source: Travis Bradberry for Inc.com +source_url: http://bit.ly/1IxWnto +title: corporate speak +date: 2014-06-10 12:31:19 +categories: writing +--- + +Avoid these cases of business jargon. + +""" +from tools import existence_check, memoize + + +@memoize +def check_repeated_exclamations(text): + """Check the text.""" + err = "inc.corporate_speak" + msg = u"Minimize your use of corporate catchphrases like this one." + + list = [ + "at the end of the day", + "back to the drawing board", + "hit the ground running", + "get the ball rolling", + "low-hanging fruit", + "thrown under the bus", + "think outside the box", + "let's touch base", + "get my manager's blessing", + "it's on my radar", + "ping me", + "i don't have the bandwidth", + "no brainer", + "par for the course", + "bang for your buck", + "synergy", + "move the goal post", + "apples to apples", + "win-win", + "circle back around", + "all hands on deck", + "take this offline", + "drill-down", + "elephant in the room", + "on my plate", + ] + + return existence_check(text, list, err, msg, ignore_case=True)