Programming verbs for gender-variable characters

For my current project, I’ve created a set of variables for NPCs who may be non-binary, so that I can have sentences like:

Darcy frowns at you. "You're wasting your time," ${darcy_he} say${darcy_s}.

If Darcy’s pronouns are he or she, then I do the following:

*set darcy_s "s"

If Darcy’s pronouns are they, then I use

*set darcy_s ""

I also have darcy_es (for cases like “she pushes/they push”), darcy_is, darcy_has, darcy_heis (he’s/she’s/they’re), darcy_hehas (he’s/she’s/they’ve), darcy_him (him/her/them), darcy_his (his/her/their), and darcy_hers (his/hers/theirs).

9 Likes