|
15 | 15 | # https://github.com/witch-house/pronoun.is/pull/96 gets merged, using that |
16 | 16 | # would be a lot easier. |
17 | 17 | # If ambiguous, the earlier one will be used. |
18 | | -KNOWN_SETS = [ |
19 | | - "ze/hir/hir/hirs/hirself", |
20 | | - "ze/zir/zir/zirs/zirself", |
21 | | - "they/them/their/theirs/themselves", |
22 | | - "they/them/their/theirs/themself", |
23 | | - "she/her/her/hers/herself", |
24 | | - "he/him/his/his/himself", |
25 | | - "xey/xem/xyr/xyrs/xemself", |
26 | | - "sie/hir/hir/hirs/hirself", |
27 | | - "it/it/its/its/itself", |
28 | | - "ey/em/eir/eirs/eirself", |
29 | | -] |
| 18 | +KNOWN_SETS = { |
| 19 | + "ze/hir": "ze/hir/hir/hirs/hirself", |
| 20 | + "ze/zir": "ze/zir/zir/zirs/zirself", |
| 21 | + "they/them/their/theirs/themselves": "they/them/their/theirs/themselves", |
| 22 | + "they/them/their/theirs/themself": "they/them/their/theirs/themself", |
| 23 | + "she/her": "she/her/her/hers/herself", |
| 24 | + "he/him": "he/him/his/his/himself", |
| 25 | + "xey/xem": "xey/xem/xyr/xyrs/xemself", |
| 26 | + "sie/hir": "sie/hir/hir/hirs/hirself", |
| 27 | + "it/it": "it/it/its/its/itself", |
| 28 | + "ey/em": "ey/em/eir/eirs/eirself", |
| 29 | +} |
30 | 30 |
|
31 | 31 |
|
32 | 32 | @plugin.command('pronouns') |
@@ -82,7 +82,7 @@ def set_pronouns(bot, trigger): |
82 | 82 | requested_pronoun_split = pronouns.split("/") |
83 | 83 | if len(requested_pronoun_split) < 5: |
84 | 84 | matching = [] |
85 | | - for known_pronoun_set in KNOWN_SETS: |
| 85 | + for known_pronoun_set in KNOWN_SETS.values(): |
86 | 86 | known_pronoun_split = known_pronoun_set.split("/") |
87 | 87 | if known_pronoun_set.startswith(pronouns + "/") or ( |
88 | 88 | len(requested_pronoun_split) == 3 |
|
0 commit comments