A good way of avoiding this problem is to get rid of pronouns altogether. Case in point (drumroll): Facebook's interface!
You can count on one hand how many times they use pronouns, and those could be actually be removed as well.
You can count on one hand how many times they use pronouns, and those could be actually be removed as well.
Interestingly, Google Translate assumes (in this case) that Sam is male, while Microsoft Translate assumes (in this case) that Sam is female.