Skip to content

Added Ukrainian, Ukrainian in Latin, Russian and Russian in Latin names support.#20

Open
sikrinick wants to merge 1 commit intotreyhunner:masterfrom
sikrinick:master
Open

Added Ukrainian, Ukrainian in Latin, Russian and Russian in Latin names support.#20
sikrinick wants to merge 1 commit intotreyhunner:masterfrom
sikrinick:master

Conversation

@sikrinick
Copy link
Copy Markdown

  1. Fixed Magic number antipattern #18 issue. Now this number will be taken as cummulative wage of second row from end of current file.

  2. Just first names and last names.
    It is possible to get name of certain local by specifying, same way as with gender.
    Possible locales:
    en, ua, ua-latin, ru, ru-latin
    Statistics of slavic name usage was taken from open sources.
    By default, locale = "en" and gender = None so gender will be chosen randomly as in current version.
    Nevertheless, for slavic names you have to set gender, because lastname changes due to gender, or ValueError will be raised.
    Example of syntax:

    get_full_name() #David Gebers
    get_full_name(locale='en') #Jamie Adams
    get_full_name(gender="male") #David Rolf
    get_full_name(gender="female") #Clarence Bradley
    get_full_name(gender="male", locale='en') #Norman Gray
    get_full_name(gender="female", locale='en') #Ellen Tollefson
    get_full_name(gender="male", locale='ru') #Роман Попов
    get_full_name(gender="female", locale='ru') #Мария Громова
    get_full_name(gender="male", locale='ru-latin') #Vladimir Sidorov
    get_full_name(gender="female", locale='ru-latin') #Alina Ermilova
    get_full_name(gender="male", locale='ua') #Максим Шевченко
    get_full_name(gender="female", locale='ua') #Марина Авраменко
    get_full_name(gender="male", locale='ua-latin') #Dmytro Melnik
    get_full_name(gender="female", locale='ua-latin') #Mariia Kovalchuk

…es support.

Just first names and last names.
It is possible to get name of certain local by specifying, same way as with gender.
Possible locales:
en, ua, ua-latin, ru, ru-latin
Statistics of slavic name usage was taken from open sources.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant