GithubHelp home page GithubHelp logo

marek-saji / given-name Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 77 KB

Validate given name or get hypocoristics of a name.

License: ISC License

JavaScript 100.00%
name names given-name hypocoristics imie imiona zdrobnienie

given-name's Introduction

given-name

Validate given name or get hypocoristics of a name.

Build Status

Usage

const hypocoristics = require('given-name/hypocoristics');
hypocoristics('Lex');
// → [Alexander, Alex, Xander, Sander, Sandy]

const data = require('given-name/data');
// → [Aaron, Aar, Abigail, …]
const enData = require('given-name/data/en');
const plData = require('given-name/data/pl');

const plHypocoristicsData = require('given-name/data/pl/hypocoristics');
// → [Ada, Adusia], [Adela, Adelka], …]

const givenName = require('given-name');
// → { data: Array, hypocoristics: Function }

Languages and sources

Sources of data. Pull requests for additional languages are very much welcome.

License

ISC

What does that even mean?

given-name's People

Contributors

dependabot[bot] avatar marek-saji avatar

Watchers

 avatar  avatar

Forkers

abcnever

given-name's Issues

Implement hypocoristics getter

As promised in README:

const hypocoristics = require('given-name/hypocoristics');
hypocoristics('Lex'); // → [Alexander, Alex, Xander, Sander, Sandy]

Handle non-unique names

// FIXME Some names added with “/” are not unique
// (e.g. Polly in English) and with this in place
// will be groupped together
const aliasIdx = carry.findIndex(carryRow => carryRow.includes(name));
if (aliasIdx !== -1)
{
carry[aliasIdx] = unique(carry[aliasIdx].concat(row));
return carry;
}

Don’t dedup during merge, but later in #2.

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.