Debian Codegraph @

proselint/checks/misc/chatspeak.py

raw
1 """Chatspeak.
2
3 ---
4 layout: post
5 source: ???
6 source_url: ???
7 title: textese
8 date: 2014-06-10 12:31:19
9 categories: writing
10 ---
11
12 Chatspeak.
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.chatspeak"
22 msg = "'{}' is chatspeak. Write it out."
23
24 words = [
25 "2day",
26 "4U",
27 "AFAIK",
28 "AFK",
29 "AFK",
30 "ASAP",
31 "B4",
32 "brb",
33 "btw",
34 "cya",
35 "GR8",
36 "lol",
37 "LOL",
38 "LUV",
39 "OMG",
40 "rofl",
41 "roftl",
42 "sum1",
43 "SWAK",
44 "THNX",
45 "THX",
46 "TTYL",
47 "XOXO"
48 ]
49
50 return existence_check(text, words, err, msg)