pytrovich
pytrovich copied to clipboard
Python3 port of Petrovich, an inflector (and gender detector) for Russian anthroponyms
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...
Код ниже вызывает исключение `StopIteration`: ```python gender_detector = PetrovichGenderDetector() gender = gender_detector.detect(middlename='Блаблабла') ``` Думаю в таком случае метод `detect` должен возвращать `Gender.ANDROGYNOUS`
This PR adds github CI tests workflow and some unit test. That allows to be shure that the lib works in different environments (python versions and different os). features: -...