Debian Codegraph @

proselint/checks/misc/bureaucratese.py

raw
1 """Bureaucratese.
2
3 ---
4 layout: post
5 source: Garner's Modern American Usage
6 source_url: http://bit.ly/1T4alrY
7 title: bureaucratese
8 date: 2014-06-10 12:31:19
9 categories: writing
10 ---
11
12 Bureaucratese.
13
14 """
15 from proselint.tools import existence_check, memoize
16
17
18 @memoize
19 def check(text):
20 """Check the text."""
21 err = "misc.bureaucratese"
22 msg = "'{}' is bureaucratese."
23
24 bureaucratese = [
25 "meet with your approval",
26 "meets with your approval",
27 ]
28
29 return existence_check(text, bureaucratese, err, msg, join=True)