Skip to content

Commit

Permalink
Create check for corporate catchphrsases.
Browse files Browse the repository at this point in the history
Closes #136.
  • Loading branch information
laraross committed Sep 28, 2015
1 parent 0ef9405 commit 0127d03
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions proselint/.proselintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions proselint/checks/inc/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
u"""Advice from Inc.com."""
53 changes: 53 additions & 0 deletions proselint/checks/inc/corporate_speak.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 0127d03

Please sign in to comment.