cyyynthia / pronoundb.org

A browser extension that lets people know how to refer to each other on various places of the Internet. Available on Chrome, Firefox, and Edge.
https://pronoundb.org
BSD 3-Clause "New" or "Revised" License
271 stars 22 forks source link

Add formatted pronouns to API #111

Open williamistGitHub opened 6 months ago

williamistGitHub commented 6 months ago

Hello! I've created a Minecraft mod using the API and was wondering if you'd be up for adding pre-formatted pronoun strings to the lookup response. It would be easier to add other non-browser platforms that don't share a codebase (such as other games potentially) if the formatting code didn't have to be ported to every supported platform.

cyyynthia commented 6 months ago

That's not the first time such a request has been made; see #102 and #23

The problem I have with doing such thing is that the way the extension does things is quite often closely tied to the way pronouns are being integrated. While the most basic forms could be delivered by the API, it won't account for things such as what locale to pick to display pronouns (whenever that becomes a thing) etc.

Having the API also act as a (primitive) presentation layer does feel wrong to me, because the way the extension does it is not set in stone in any meaningful capacity; yet doing it at the API level means having a fixed data structure that can't easily change (without causing breaking changes)...

The only tricky part of PDB's implementation is the long form, which is likely something integrations won't have to deal with, or that they should handle on their end anyway to better fit their needs. Other than that, the formatting step is just a simple lookup and is trivial to implement 🤔