You should prepare for the possibility that the player chooses an adrogynous name and just keeps it over the accident...
hard to code against a player chosen name but I get your point.