wikidata-person-names

v1.2.1
Set of given and last names pulled from Wikidata
data dataset datasets family female first firstname given human and 12 more...

wikidata-person-names

NPM Version node

Set of given and last names pulled from Wikidata

When using random names I needed a list of names. Wikidata has a lot of them, so I pulled them from there. As names don't change that often and are rather static this repo is a snapshot from Wikidata.

Maintainer Hint: Updating the file (with update-names.ts) will query different names than before as LIMIT in the SparQL query is non-deterministic.

Usage

Node.js

npm install wikidata-person-names
import { FAMILY, UNISEX } from "wikidata-person-names";

UNISEX;
//=> ['Akira', 'Alba', 'Jody', 'Marie', 'Sacha', …]

FAMILY;
//=> ['Hein', 'Ling', 'Owen', …]

randomItem(UNISEX);
//=> 'Jule'

Deno

via ghc.deno.dev

import {
    FAMILY,
    UNISEX,
} from "https://ghc.deno.dev/EdJoPaTo/wikidata-person-names/index.ts";

UNISEX;
//=> ['Akira', 'Alba', 'Jody', 'Marie', 'Sacha', …]

FAMILY;
//=> ['Hein', 'Ling', 'Owen', …]

randomItem(UNISEX);
//=> 'Jule'

Metadata

  • MIT
  • >=0.8
  • EdJoPaTo
  • released 2/17/2023

Downloads

Maintainers