Code Monkey home page Code Monkey logo

name_data.js's Introduction

name_data.js

Name data in JSON for Javascript

Selection and generation of names, for fake name data.

Parsed JSON of male and female first name data, as well as gender neutral last name data, ostensibly taken from the 1990 US census. Contains 1219 male names, 4275 female names, and 18,840 last names, as well as estimated (rough) commonality.

Usage

Pretty straightforward stuff, rly.

> const nd = require('name_data');
undefined

> nd.mens_first_name_data;
{ aaron: 350151,
  abdul: 10213,
...
  zackary: 5836,
  zane: 10213 }

> Object.keys(nd.mens_first_name_data).length;
1219

> nd.random_womens_first_name();
'helen'

> nd.random_mens_first_name();
'john'

> [1,1,1,1,1,1].map(_ => nd.random_first_name() );
[ 'seth', 'lauren', 'jill', 'kathy', 'marshall', 'loretta' ]

> nd.random_last_name();
'lopez'

> nd.random_name();
'dawn knight'

> [1,1,1,1,1,1].map(_ => nd.random_name() );
[ 'maria burns',
  'jennette howell',
  'vanessa carnes',
  'richard robertson',
  'amanda reiley',
  'jason carroll' ]

Polemic :neckbeard:

name_data.js is MIT licensed, because viral licenses and newspeak language modification are evil. Free is only free when it's free for everyone.

name_data.js's People

Contributors

stonecypher avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

hauran

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.