The only possible way I could think of would be to get the name and then use zo_strformat to format the gender afterwards, via the modificators:
https://wiki.esoui.com/How_to_format...h_zo_strformat
I guess ingame it will always be the character's gender as you said.
I guess you need to test if this works.
Edit:
Or you'll overwrite GetUnitGender with your own function and return the desired gender for your test purposes!
Maybe it is used internally as well and works.