I think that, depending on how the code was written (And I'm saying it with my low acknoledge of coding), it can be easily done.
If Hyao marked the pronouns used in the dialogues with a specific tag, it can be coded to change based on the players choice.