Download the PHP package voku/phonetic-algorithms without Composer
On this page you can find all versions of the php package voku/phonetic-algorithms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package phonetic-algorithms
Phonetic-Algorithms
Description
Fuzzy searching for words that sound alike but are written differently.
| Code | Class | Algorithm | Key |
|---|---|---|---|
de |
PhoneticGerman |
"Kölner Phonetik" (Wikipedia) | digits |
en |
PhoneticEnglish |
"metaphone" (Wikipedia), via the native PHP function | letters |
es |
PhoneticSpanish |
rule set documented in the class | letters |
fr |
PhoneticFrench |
"SOUNDEX FR" (roudoudou.com) | letters |
it |
PhoneticItalian |
rule set documented in the class | letters |
nl |
PhoneticDutch |
rule set documented in the class | letters |
pl |
PhoneticPolish |
rule set documented in the class | letters |
pt |
PhoneticPortuguese |
rule set documented in the class | letters |
"Kölner Phonetik", "metaphone" and "SOUNDEX FR" are published algorithms and are implemented as published.
The other languages have no single published standard, so they are rule sets that are documented in the class itself: every class carries its complete sound table in the docblock, and every row of that table is pinned by a test. They are built for the mistakes people really make in that language, for example:
Codes from different languages are not comparable with each other: pick the language of the data you are searching in.
- Installation
- Usage
- Development
- History
Installation
- Install and use composer in your project.
- Require this package via composer:
Usage
You the "phonetic_word"-method if you need a fuzzy-search for single words e.g. last-names or product-names.
You can use the "phonetic_sentence"-method to process sentences.
You can use the "phonetic_matches"-method to search for words in an array of words.
Development
Coding-agent work in this repository runs through
voku/agent-loop: plan, approve,
implement, validate with recorded evidence, review, close. The board, the task
contracts and the run receipts live under .agent-loop/.
See docs/agent-loop.md for the setup and docs/agent-loop-dogfood.md for what the workflow did and did not catch while these languages were added.
History
See CHANGELOG for the full history of changes.