Giter Site home page Giter Site logo

tmtjohn / uinames Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thm/uinames

0.0 1.0 0.0 995 KB

A simple tool to generate names for use in designs and mockups.

Home Page: uinames.com

ApacheConf 0.59% PHP 43.98% CSS 33.13% JavaScript 22.30%

uinames's Introduction

uinames.com

This is the repo for uinames.com. Feel free to contribute to the project by adding names. Keep in mind that more isn't better. Quality over quantity. Quality being the most common/popular names in a region.

The Algorithm

When the option to pick a region at random is selected, a region will be picked based on the amount of possible name-combinations for that region. A region with more names is more likely to be picked, and regions with less names are less likely to be picked. I propose having a maximum of 100 male names, 100 female names and 300 last names per region. That's 60.000 possible combinations per region.

The Layout (JSON)

[
  {
    "region": "Region",
    "male": ["Male", "First", "Names"],
    "female": ["Female", "First", "Names"],
    "surnames": ["Last", "Names"]
  },
  {etc}
]

The API

All responses are returned as JSON(P), with no request limit. Please keep the amount of calls to a minimum though, and cache responses whenever possible.

Basic usage

http://uinames.com/api/
---
{
  "name":"John",
  "surname":"Doe",
  "gender":"male",
  "region":"United States"
}

Optional Parameters

Amount of names to return, between 1 and 500:

http://uinames.com/api/?amount=25

Limit results to the male or female gender:

http://uinames.com/api/?gender=female

Region-specific results:

http://uinames.com/api/?region=germany

Require a minimum number of characters in a name:

http://uinames.com/api/?minlen=25

Require a maximum number of characters in a name:

http://uinames.com/api/?maxlen=75

For JSONP, specify a callback function to wrap results in:

http://uinames.com/api/?callback=example

Exception handling

Error messages have the following format:

{"error":"Region or language not found"}

Author

This project is initiated and maintained by @thomweerd.

Credit

This massive collection of names wouldn't have been as complete without the help of these wonderful people. Thanks for all the contributions and the continued support!

Special thanks to Claudio Albertin for his work on the API.

uinames's People

Contributors

tranlamnhatnam avatar claudioalbertin avatar rustamli avatar peterhupuczi avatar gfnool avatar shafir avatar mhm5000 avatar juree avatar jaimerodas avatar softwaretailoring avatar gabrielizalo avatar erikreagan avatar edsadr avatar anton-liubushkin avatar seyekuyinu avatar sskrebkov avatar thmsvhwgr avatar totocaster avatar vedranio avatar yosefw avatar jmblog avatar zhaofengli avatar nabilahami avatar andreascyp avatar danielmorosan avatar ecez avatar fireyy avatar glenbaku avatar nelsonschutt avatar mizr avatar

Watchers

 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.