Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

us-baby-names

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

us-baby-names

U.S. baby name data from 1880 to 2016

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

U.S. Baby Names

U.S. baby name data from 1880 to 2016

⚠️ Warning: don't use these datasets client-side. The by-year dataset is 74 MB and the by-name dataset is 67 MB.

Install

$ npm install us-baby-names --save

Usage

Data by year

const byYear = require('us-baby-names/by-year')
console.log(byYear[1880])
// [ { name: 'Mary', sex: 'F', count: 7065 },
//  { name: 'Anna', sex: 'F', count: 2604 },
//  { name: 'Emma', sex: 'F', count: 2003 },
//  { name: 'Elizabeth', sex: 'F', count: 1939 },
//  ... ]

Data by name

const byName = require('us-baby-names/by-name')
console.log(byName['Mary'])
// [ { year: 1880, sex: 'F', count: 7065 },
//   { year: 1880, sex: 'M', count: 27 },
//   { year: 1881, sex: 'F', count: 6919 },
//   { year: 1881, sex: 'M', count: 29 },
//  ... ]

Both at once

const { byYear, byName } = require('us-baby-names')

Source

This dataset is from data.gov. From the Social Security Administration website:

All names are from Social Security card applications for births that occurred in the United States after 1879. All data are from a 100% sample of the Social Security Administration's records on Social Security card applications as of March 2017.

Limitations

  • Many people born before 1937 never applied for a Social Security card, so their names are not included in this data. For others who did apply, records may not show the place of birth, and again their names are not included in this data.
  • Names are restricted to cases where the year of birth, sex, State of birth (50 States and District of Columbia) are on record, and where the given name is at least 2 characters long.
  • Name data are not edited. For example, the sex associated with a name may be incorrect. Entries such as "Unknown" and "Baby" are not removed from the lists.
  • Different spellings of similar names are not combined. For example, the names Caitlin, Caitlyn, and Kaitlin are considered separate names.
  • A name must have at least 5 occurrences in a given year to be included in the data.

Raw Data

The raw csv data is available in the raw-data subdirectory.

Created by

Keywords

FAQs

Package last updated on 12 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc