Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sikrinick
Copy link

  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