Debian Codegraph @

proselint/checks/misc/punctuation.py

raw
1 """Punctuation.
2
3 ---
4 layout: post
5 source: Garner's Modern American Usage
6 source_url: http://bit.ly/1T4alrY
7 title: dates
8 date: 2014-06-10 12:31:19
9 categories: writing
10 ---
11
12 Dates.
13
14 """
15 from proselint.tools import existence_check, memoize
16
17
18 @memoize
19 def check(text):
20 """Check the text."""
21 err = "garner.punctuation"
22 msg = "Misplaced punctuation. It's 'et al.'"
23
24 list = [
25 "et. al",
26 "et. al."
27 ]
28 return existence_check(text, list, err, msg, join=True)