noodlesnz / double-metaphone
This class implements a "sounds like" algorithm developed by Lawrence Philips which he published in the June, 2000 issue of C/C++ Users Journal. Double Metaphone is an improved version of Philips' original Metaphone algorithm.
Installs: 110 447
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 4
Forks: 1
Open Issues: 1
This package is auto-updated.
Last update: 2024-10-25 11:53:03 UTC
README
double-metaphone
This class implements a "sounds like" algorithm developed by Lawrence Philips which he published in the June, 2000 issue of C/C++ Users Journal. Double Metaphone is an improved version of Philips' original Metaphone algorithm.
Installation
To add this package as a local, per-project dependency to your project, simply add a dependency on NoodlesNZ/double-metaphone
to your project's composer.json
file. Here is a minimal example of a composer.json
file that just defines a dependency on double-metaphone:
{
"require": {
"NoodlesNZ/double-metaphone": "~1.0"
}
}
Usage
$d = new DoubleMetaphone('richard'); echo $d->primary . "\n"; echo $d->secondary . "\n";
The code above yields the output below:
RXRT
RKRT