From 0ebbbf1cb6be52be45dd4e48f540e519524503ce Mon Sep 17 00:00:00 2001 From: ioj4 <69911332+ioj4@users.noreply.github.com> Date: Sat, 14 Sep 2024 05:44:39 +0200 Subject: [PATCH] [pronoundb] refactor pronouns list --- plugins/pronoundb/db.ts | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/plugins/pronoundb/db.ts b/plugins/pronoundb/db.ts index 0a96083..5dd63b1 100644 --- a/plugins/pronoundb/db.ts +++ b/plugins/pronoundb/db.ts @@ -6,20 +6,8 @@ const UserProfileStore = shelter.flux.stores.UserProfileStore as FluxStore<{ const pronouns = { he: "he/him", - hi: "he/it", - hs: "he/she", - ht: "he/they", - ih: "it/him", it: "it/its", - is: "it/she", - ith: "it/they", - shh: "she/he", she: "she/her", - si: "she/it", - st: "she/they", - th: "they/he", - ti: "they/it", - ts: "they/she", they: "they/them", any: "Any pronouns", other: "Other pronouns", @@ -27,7 +15,23 @@ const pronouns = { avoid: "Avoid pronouns, use my name", }; +const additionalPronouns = [ + "he/it", + "he/she", + "he/they", + "it/him", + "it/she", + "it/they", + "she/he", + "she/it", + "she/they", + "they/he", + "they/it", + "they/she", +]; + const pronounsToSearch = Object.values(pronouns) + .concat(additionalPronouns) .filter((p) => p.includes("/")) .sort((a, b) => b.length - a.length);