Skip to content

Commit

Permalink
[pronoundb] refactor pronouns list
Browse files Browse the repository at this point in the history
  • Loading branch information
ioj4 authored and yellowsink committed Sep 14, 2024
1 parent f5335d6 commit 0ebbbf1
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions plugins/pronoundb/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,32 @@ 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",
ask: "Ask me my 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);

Expand Down

0 comments on commit 0ebbbf1

Please sign in to comment.