I am doing some coding to retrieve the dictionary forms of Russian words. It generally seems to be working reasonably well, but for the word "её", it leaves it unchanged instead of changing it to "она". I've tried two different programmes with similar results.
In the first (pymystem3), if I try it with only the word "её", it does give me the correct "она", but if it's in a sentence, it returns "ее".
In the second (pymorphy2), it gives "её" on both occasions. If I try the same with e.g. "его", I get the correct "он".
It made me wonder if this is some kind of a glitch with the programmes I'm using or if I'm missing something about the word "её"?