pytrovich icon indicating copy to clipboard operation
pytrovich copied to clipboard

Hyphenated lastname support

Open georgthegreat opened this issue 3 years ago • 1 comments

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.

georgthegreat avatar Jan 15 '22 20:01 georgthegreat

Hi Yuriy, fair point, thanks!

Will try to find the time to look into it; meanwhile, pull requests are welcome.

alexeyev avatar Jan 22 '22 21:01 alexeyev