Debian Codegraph @

proselint/checks/misc/back_formations.py

raw
1 """Back-formations.
2
3 ---
4 layout: post
5 source: Garner's Modern American Usage
6 source_url: http://bit.ly/1T4alrY
7 title: back-formations
8 date: 2014-06-10 12:31:19
9 categories: writing
10 ---
11
12 Back-formations.
13
14 """
15 from proselint.tools import memoize, preferred_forms_check
16
17
18 @memoize
19 def check(text):
20 """Suggest the preferred forms."""
21 err = "misc.back_formations"
22 msg = "Back-formation. '{}' is the preferred form."
23
24 list = [
25 ["improper", ["improprietous"]],
26 ]
27
28 return preferred_forms_check(text, list, err, msg)