pytrovich
pytrovich copied to clipboard
Hyphenated lastname support
In Cyrillic we have many double lastnames.
This includes some simple cases such as:
- Петров-Водкин
- Бестужев-Марлинский
Female lastname also can be double, but I can not remember any famous one at the time.
These can be handled by naive code: split the lexem by hyphen, translate each part, join back with hyphen. However, this becomes nasty with exceptions, including Бонч-Бруевич, Мамин-Сибиряк, Муравьёв-Апостол. Can this be supported by pytrovich rules model?
Here is the list of the most famous names.
Hi Yuriy, fair point, thanks!
Will try to find the time to look into it; meanwhile, pull requests are welcome.