Debian Codegraph @

proselint/checks/misc/scare_quotes.py

raw
1 """Misuse of scare quotes.
2
3 ---
4 layout: post
5 source: Pinker's book on writing
6 source_url: ???
7 title: misuse of scare quotes
8 date: 2014-06-10 12:31:19
9 categories: writing
10 ---
11
12 Points out misuse of scare quotes.
13
14 """
15 from proselint.tools import existence_check, memoize
16
17
18 @memoize
19 def check(text):
20 """Suggest the preferred forms."""
21 err = "pinker.scare_quotes"
22 msg = "Misuse of 'scare quotes'. Delete them."
23
24 narcissism = [
25 "the 'take-home message'",
26 ]
27
28 return existence_check(text, narcissism, err, msg)