Giter Site home page Giter Site logo

trellixvulnteam / turkish-name-generator_nlkp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrmirhan/turkish-name-generator

0.0 0.0 0.0 39.2 MB

This package generates random Turkish names. You can choose the gender of name and you can get also only first name or last name.

Shell 0.01% JavaScript 0.04% C++ 0.19% Python 94.92% C 1.71% Fortran 0.02% PowerShell 0.04% XSLT 0.01% CSS 0.21% TeX 0.02% HTML 0.07% Smarty 0.01% Batchfile 0.01% Cython 2.74% Roff 0.02%

turkish-name-generator_nlkp's Introduction

Install

For install turkish-name-gen package use:

$ pip install turkish-name-generator

Note: add --user if you get user error

Usage

  1. Import Module
import trnamegen
  1. Generate Random Names
import trnamegen as trn

# randomName() function returns name with surname.

randomName = trn.randomName() # If you won't send any arguments there will no gender selection. Default is 0.
print("Random Name:", randomName)
randomWomanName = trn.randomName(2)
print("Random Woman Name:", randomWomanName)
randomManName = trn.randomName(1)
print("Random Man Name:", randomManName)
  • Example Response
Random Name: Emir Yağcı
Random Woman Name: Melekşah Sucak
Random Man Name: Nejla Sertkayaoğlu
  1. Generate Random First Names
import trnamegen as trn

# firstName() function returns just name.

randomFirstName = trn.firstName() # If you won't send any arguments there will no gender selection. Default is 0.
print("Random Firstname:", randomFirstName)
randomWomanFirstName = trn.firstName(2)
print("Random Woman Firstname:", randomWomanFirstName)
randomManFirstName = trn.firstName(1)
print("Random Man Firstname:", randomManFirstName)
  • Example Response
Random Firstname: Nazlı
Random Woman Firstname: Çağrınur
Random Man Firstname: Yağızalp
  1. Generate Random Last Names
import trnamegen as trn

# lastName() function returns just surname.

randomLastName = trn.lastName() # There is no gender selection here.
print("Random Lastname:", randomLastName)
  • Example Response
Random Lastname: Yıldız

turkish-name-generator_nlkp's People

Contributors

mrmirhan avatar trellixvulnteam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.