Update pronouns.py

This commit is contained in:
InspectorCaracal 2022-10-11 10:17:21 -06:00 committed by GitHub
parent e129e5682c
commit 1c4cf58f12

View file

@ -407,8 +407,8 @@ def pronoun_to_viewpoints(
# step down into the mapping
viewpoint_map = PRONOUN_MAPPING[viewpoint]
pronouns = viewpoint_map.get(pronoun_type) or viewpoint_map.get(DEFAULT_PRONOUN_TYPE)
mapped_pronoun = pronouns.get(gender) or pronouns.get(DEFAULT_GENDER)
pronouns = viewpoint_map.get(pronoun_type, viewpoint_map[DEFAULT_PRONOUN_TYPE])
mapped_pronoun = pronouns.get(gender, pronouns[DEFAULT_GENDER])
# keep the same capitalization as the original
if pronoun != "I":