Debian Codegraph @

proselint/checks/archaism/misc.py

raw
1 """Archaism.
2
3 ---
4 layout: post
5 source: Garner's Modern American Usage
6 source_url: http://bit.ly/1T4alrY
7 title: archaism
8 date: 2014-06-10 12:31:19
9 categories: writing
10 ---
11
12 Archaism.
13
14 """
15 from proselint.tools import existence_check, memoize
16
17
18 @memoize
19 def check(text):
20 """Check the text."""
21 err = "archaism.misc"
22 msg = "'{}' is archaic."
23
24 archaisms = [
25 "alack",
26 "anent",
27 # "anon",
28 "begat",
29 "belike",
30 "betimes",
31 "boughten",
32 "brocage",
33 "brokage",
34 "camarade",
35 "chiefer",
36 "chiefest",
37 "Christiana",
38 "completely obsolescent",
39 "cozen",
40 "divers",
41 "deflexion",
42 "durst",
43 "fain",
44 "forsooth",
45 "foreclose from",
46 "haply",
47 "howbeit",
48 "illumine",
49 "in sooth",
50 "maugre",
51 "meseems",
52 "methinks",
53 "nigh",
54 "peradventure",
55 "perchance",
56 "saith",
57 "shew",
58 "sistren",
59 "spake",
60 "to wit",
61 "verily",
62 "whilom",
63 "withal",
64 "wot",
65 "enclosed please find",
66 "please find enclosed",
67 "enclosed herewith",
68 "enclosed herein",
69 "inforce",
70 "ex postfacto",
71 "foreclose from",
72 "forewent",
73 "for ever",
74 # "designer", when used to mean a plotter against Christ
75 # "demean", when used to mean "to behave" in legal contexts
76 # "by the bye", # variant, modern is "by the by"
77 # "comptroller" # in British English
78 # "abortive" Abortive is archaic in reference to abortions of fetuses,
79 # except in the sense “causing an abortion.”
80 ]
81
82 return existence_check(text, archaisms, err, msg, join=True)