Download the PHP package commerce-wa-ols/nicknames without Composer
On this page you can find all versions of the php package commerce-wa-ols/nicknames. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download commerce-wa-ols/nicknames
More information about commerce-wa-ols/nicknames
Files in commerce-wa-ols/nicknames
Package nicknames
Short Description Find nicknames for a given name or perform a reverse search on a nickname.
License MIT
Informations about the package nicknames
Nicknames1
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.
For example, "William" may appear in databases as "Bill" or "Willie", and "Rebecca" as "Becca" or "Becky".
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.
Usage
Get nicknames for a given formal name.
The above example will return:
Get the formal name for a given nickname.
The above example will return:
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.
Example of different names for the same person
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:
Contributors
Developed by Cyrus Eftos at the Department of Commerce.