Skip to content

mkozturk/trnames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trnames

Random Turkish name generator with realistic probabilities.

Based on Trey Hunner's names package.

Installation

The package can be installed using pip with the following command

pip install git+https://github.com/mkozturk/trnames@main

No other packages are required.

Usage

Here are examples of all current features:

>>> import trnames
>>> trnames.get_full_name() # gender is set randomly if not given
'Emine Ozdemir'
>>> trnames.get_full_name(gender='male')
'Mustafa Berber'
>>> trnames.get_first_name() # gender is set randomly if not given
'Hasan'
>>> trnames.get_first_name(gender='female')
'Behiye'
>>> trnames.get_last_name()
'Yuksel'

Data

The probabilities of first and last names are parsed from 49,611,709 individuals, 24,534,483 men and 25,077,226 women, born between 1888 and 1991.

Names that are seen in less than 100 individuals are not used.

License

This project is released under an MIT License.

About

Random Turkish name generator with realistic probabilities.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages