Debian Codegraph @

proselint/checks/misc/not_guilty.py

raw
1 """Not guilty beyond a reasonable doubt.
2
3 ---
4 layout: post
5 source: Garner's Modern American Usage
6 source_url: http://bit.ly/1T4alrY
7 title: Not guilty beyond a reasonable doubt.
8 date: 2016-03-09 15:50:31
9 categories: writing
10 ---
11
12 This phrasing is ambiguous. The standard by which a jury decides criminal
13 charges is this: a defendant is guilty only if the evidence shows, beyond a
14 reasonable doubt, that he or she committed the crime. Otherwise, the defendant
15 is not guilty. Thus, we say that a defendant was not found "guilty beyond a
16 reasonable doubt."
17
18 If somebody is found not guilty, say "not guilty." Omit the standard
19 ("beyond a reasonable doubt") to prevent a miscue.
20
21 Not guilty beyond a reasonable doubt
22 """
23
24
25 from proselint.tools import existence_check, memoize
26
27
28 @memoize
29 def check(text):
30 """Check the text."""
31 err = "misc.not_guilty"
32 msg = "'not guilty beyond a reasonable doubt' is an ambiguous phrasing."
33 regex = r"not guilty beyond (a |any )?reasonable doubt"
34
35 return existence_check(text, [regex], err, msg)