Debian Codegraph @

proselint/checks/inprogress/capitalization_errors.py

raw
1 """Password in plain text.
2
3 ---
4 layout: post
5 source: ???
6 source_url: ???
7 title: Capitalization of abbreviations
8 date: 2014-06-10 12:31:19
9 categories: writing
10 ---
11
12 In Hybrid Zones, p 255 in a citation Hughes & Huges Systems Experts and
13 Computers: The Systems Approach in Management and Engineering: World War Ii
14 and After.
15
16 World War Ii should have correct capitalization.
17 """
18 from proselint.tools import blacklist, memoize
19
20
21 @memoize
22 def check(text):
23 """Check the text."""
24 err = "MSC104"
25 msg = "Don't fail to capitalize roman numeral abbreviations."
26
27 pwd_regex = " (I(i*)|i*)"
28
29 password = [
30 f"World War{pwd_regex}",
31 ]
32
33 return blacklist(text, password, err, msg)