2017 © Pedro Peláez
 

library nicknames

Find nicknames for a given name or perform a reverse search on a nickname.

image

commerce-wa-ols/nicknames

Find nicknames for a given name or perform a reverse search on a nickname.

  • Thursday, June 1, 2017
  • by cyruseftos
  • Repository
  • 2 Watchers
  • 1 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Nicknames1

Code Climate Build Status, (*1)

Nicknames is a simple package that either returns an array of common nicknames for a provided name or returns an array of potential matches to a provided nickname. The data features common English diminutives, nicknames and shortened forms, of given names., (*2)

For example, "William" may appear in databases as "Bill" or "Willie", and "Rebecca" as "Becca" or "Becky"., (*3)

The list of names is from Diminutives.db with some extra names added to the list from our sources. The idea behind the package has also taken heavy influence from the ruby gem Nickname which also has some great information about other techniques for fuzzy matching strings., (*4)

Usage

Get nicknames for a given formal name., (*5)

Nicknames::givenTo("William");use CommerceWA\Utilities\Nicknames;


The above example will return:, (*6)

Array
(
    [0] => bill
    [1] => billy
    [2] => will
    [3] => willie
    [4] => willy
)

Get the formal name for a given nickname., (*7)

use CommerceWA\Utilities\Nicknames;

Nicknames::givenTo("Becky");

The above example will return:, (*8)

Array
(
    [0] => rebecca
)

Why?

The library was created to solve issues when trying match names from multiple databases where full names and preferred names (nicknames) were used to identify a person., (*9)

Example of different names for the same person, (*10)

first_name surname
Database 1 Bill Doe
Database 2 William Doe

Installation

This package uses composer so you can just add commerce-wa-ols/nicknames as a dependency to your composer.json file or execute the following command:, (*11)

composer require commerce-wa-ols/nicknames

Contributors

Developed by Cyrus Eftos at the Department of Commerce., (*12)

The Versions

01/06 2017

dev-master

9999999-dev

Find nicknames for a given name or perform a reverse search on a nickname.

  Sources   Download

MIT

The Requires

  • php ~5.6 || ~7.0

 

The Development Requires

by Cyrus Eftos

nickname nicknames diminutives

01/06 2017

1.0.1

1.0.1.0

Find nicknames for a given name or perform a reverse search on a nickname.

  Sources   Download

MIT

The Requires

  • php ~5.6 || ~7.0

 

The Development Requires

by Cyrus Eftos

nickname nicknames diminutives

31/03 2017

1.0.0

1.0.0.0

Find nicknames for a given name or perform a reverse search on a nickname.

  Sources   Download

MIT

The Requires

  • php ~5.6 || ~7.0

 

The Development Requires

by Cyrus Eftos

nickname nicknames diminutives

07/10 2016

dev-tests

dev-tests

Find nicknames for a given name or perform a reverse search on a nickname.

  Sources   Download

MIT

The Requires

  • php ~5.6 || ~7.0

 

The Development Requires

by Cyrus Eftos

nickname nicknames diminutives

22/09 2016

dev-ocean-badger-1

dev-ocean-badger-1

Find nicknames for a given name or perform a reverse search on a nickname.

  Sources   Download

MIT

The Requires

  • php ~5.6 || ~7.0

 

The Development Requires

by Cyrus Eftos

nickname nicknames diminutives

22/09 2016

dev-ocean-readme-patch

dev-ocean-readme-patch

Find nicknames for a given name or perform a reverse search on a nickname.

  Sources   Download

MIT

The Requires

  • php ~5.6 || ~7.0

 

The Development Requires

by Cyrus Eftos

nickname nicknames diminutives