From 0459caaf38a601fb5ab09e9babe142d758f3af75 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Tue, 12 Nov 2019 15:15:29 -0400 Subject: [PATCH] Added more gender-non-conforming terms. See: http://nikkistevens.com/open-demographics/questions/gender.html --- analyze.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/analyze.py b/analyze.py index 36eb291..1a862c6 100644 --- a/analyze.py +++ b/analyze.py @@ -75,6 +75,38 @@ def make_pronoun_patterns(): ('he', 'male'), ('his', 'male'), ('him', 'male'), + # Source: http://nikkistevens.com/open-demographics/questions/gender.html + ('demi-?girl', 'nonbinary'), + ('demi-?woman', 'nonbinary'), + ('demi-?female', 'nonbinary'), + ('demi-?boy', 'nonbinary'), + ('demi-?man', 'nonbinary'), + ('demi-?male', 'nonbinary'), + ('gender-?flux', 'nonbinary'), + ('gender-?fluid', 'nonbinary'), + ('demi-?gender', 'nonbinary'), + ('bi-?gender', 'nonbinary'), + ('tri-?gender', 'nonbinary'), + ('two-?spirit', 'nonbinary'), + ('multi-?gender', 'nonbinary'), + ('poly-?gender', 'nonbinary'), + ('pan-?gender', 'nonbinary'), + ('omni-?gender', 'nonbinary'), + ('maxi-?gender', 'nonbinary'), + ('apora-?gender', 'nonbinary'), + ('inter-?gender', 'nonbinary'), + ('maverique', 'nonbinary'), + ('gender[ -]?confus(ion)|(ed)', 'nonbinary'), + ('gender[ -]?f[u\*]ck', 'nonbinary'), + ('gender[ -]?indifferent', 'nonbinary'), + ('gray-?gender', 'nonbinary'), + ('agender', 'nonbinary'), + ('demi-?agender', 'nonbinary'), + ('genderless', 'nonbinary'), + ('gender[ -]?neutral', 'nonbinary'), + ('neutrois', 'nonbinary'), + ('androgynous', 'nonbinary'), + ('androgyne', 'nonbinary'), ]: for text in (r'\b' + p + r'\b', r'\b' + p + r'/',