Debian Codegraph @

proselint/checks/misc/currency.py

raw
1 """Currency.
2
3 ---
4 layout: post
5 source: SublimeLinter-annotations
6 source_url: http://bit.ly/16Q7H41
7 title: symbols
8 date: 2014-06-10 12:31:19
9 categories: writing
10 ---
11
12 Symbols.
13
14 """
15 from proselint.tools import existence_check, memoize
16
17
18 @memoize
19 def check(text):
20 """Check the text."""
21 err = "misc.currency"
22 msg = "Incorrect use of symbols in {}."
23
24 symbols = [
25 r"\$[\d]* ?(?:dollars|usd|us dollars)"
26 ]
27
28 return existence_check(text, symbols, err, msg)