Debian Codegraph @

proselint/checks/oxymorons/misc.py

raw
1 """Oxymorons.
2
3 ---
4 layout: post
5 source: Garner's Modern American Usage
6 source_url: http://bit.ly/1T4alrY
7 title: Oxymorons
8 date: 2014-06-10 12:31:19
9 categories: writing
10 ---
11
12 Archaism.
13
14 """
15 from proselint.tools import existence_check, memoize
16
17
18 @memoize
19 def check(text):
20 """Check the text."""
21 err = "oxymorons.misc"
22 msg = "'{}' is an oxymoron."
23
24 oxymorons = [
25 "amateur expert",
26 "increasingly less",
27 "advancing backwards?",
28 "alludes explicitly to",
29 "explicitly alludes to",
30 "totally obsolescent",
31 "completely obsolescent",
32 "generally always",
33 "usually always",
34 "increasingly less",
35 "build down",
36 "conspicuous absence",
37 "exact estimate",
38 "found missing",
39 "intense apathy",
40 "mandatory choice",
41 "nonworking mother",
42 "organized mess",
43 # "pretty ugly",
44 # "sure bet",
45 # "executive secretary",
46 ]
47
48 return existence_check(text, oxymorons, err, msg, offset=1, join=True)