Debian Codegraph @

proselint/checks/malapropisms/misc.py

raw
1 """Malaproprisms.
2
3 ---
4 layout: post
5 source: Garner's Modern American Usage
6 source_url: http://bit.ly/1T4alrY
7 title: Malaproprisms
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 = "malapropisms.misc"
22 msg = "'{}' is a malapropism."
23
24 illogics = [
25 "the infinitesimal universe",
26 "a serial experience",
27 "attack my voracity",
28 ]
29
30 return existence_check(text, illogics, err, msg, offset=1)