Debian Codegraph @

proselint/checks/misc/institution_name.py

raw
1 """Common errors with institution names.
2
3 ---
4 layout: post
5 source: Institution's webpage
6 source_url: http://bit.ly/2en1zbv,
7 title: Institution Name
8 date: 2016-11-16 11:46:19
9 categories: writing
10 ---
11
12 Institution names.
13
14 """
15 from proselint.tools import memoize, preferred_forms_check
16
17
18 @memoize
19 def check_vtech(text):
20 """Suggest the correct name.
21
22 source: Virginia Tech Division of Student Affairs
23 source_url: http://bit.ly/2en1zbv
24 """
25 err = "institution.vtech"
26 msg = "Incorrect name. Use '{}' instead of '{}'."
27
28 institution = [
29 ["Virginia Polytechnic Institute and State University",
30 ["Virginia Polytechnic and State University"]],
31 ]
32 return preferred_forms_check(text, institution, err, msg)