Debian Codegraph @

proselint/checks/lgbtq/terms.py

raw
1 """GLAAD.
2
3 ---
4 layout: post
5 source: GLAAD Media Reference Guide - 9th Edition
6 source_url: http://www.glaad.org/reference
7 title: GLAAD Guidelines
8 date: 2016-07-06
9 categories: writing
10 ---
11
12 This check looks for possibly offensive terms related to LGBTQ issues and
13 makes more acceptable recommendations. TheNew York Times and
14 Associated Press have also adopted this style guide.
15
16 """
17 from proselint.tools import memoize, preferred_forms_check
18
19
20 @memoize
21 def check(text):
22 """Suggest preferred forms given the reference document."""
23 err = "glaad.terms"
24 msg = "Possibly offensive term. Consider using '{}' instead of '{}'."
25
26 list = [
27 ["gay man", ["homosexual man"]],
28 ["gay men", ["homosexual men"]],
29 ["lesbian", ["homosexual woman"]],
30 ["lesbians", ["homosexual women"]],
31 ["gay people", ["homosexual people"]],
32 ["gay couple", ["homosexual couple"]],
33 ["sexual orientation", ["sexual preference"]],
34 ["openly gay", ["admitted homosexual", "avowed homosexual"]],
35 ["equal rights", ["special rights"]]
36 ]
37
38 return preferred_forms_check(text, list, err, msg, ignore_case=False)