Debian Codegraph @

proselint/checks/jargon/misc.py

raw
1 """Cliches.
2
3 ---
4 layout: post
5 source: Garner's Modern American Usage
6 source_url: http://bit.ly/1T4alrY
7 title: a vs. an
8 date: 2014-06-10 12:31:19
9 categories: writing
10 ---
11
12 Cliches are cliché.
13
14 """
15 from proselint.tools import existence_check, memoize
16
17
18 @memoize
19 def check(text):
20 """Check the text."""
21 err = "jargon.misc"
22 msg = "'{}' is jargon. Can you replace it with something more standard?"
23
24 jargon = [
25 "in the affirmative",
26 "in the negative",
27 "agendize",
28 "per your order",
29 "per your request",
30 "disincentivize",
31 ]
32
33 return existence_check(text, jargon, err, msg, join=True)