https://github.com/jze/phonet4java
Implementation of various phonetic algorithms in Java.
https://github.com/jze/phonet4java
java phonetic-algorithm
Last synced: 5 months ago
JSON representation
Implementation of various phonetic algorithms in Java.
- Host: GitHub
- URL: https://github.com/jze/phonet4java
- Owner: jze
- License: lgpl-3.0
- Created: 2015-04-15T08:52:52.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2025-02-12T09:59:30.000Z (over 1 year ago)
- Last Synced: 2025-07-26T02:52:06.595Z (11 months ago)
- Topics: java, phonetic-algorithm
- Language: Java
- Homepage:
- Size: 77.1 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phonet4java


The project provides Java implementations for several phonetic algorithms like:
* Soundex
* refined Soundex
* Kölner Phonetik
* Daitch-Mokotoff
* Phonet
## Usage
The usage is very simple. Just create an instance of the required encoder and invoke the `code` method. Here is a simple example.
Coder c = new Phonet2();
c.code("Kiel");
### Maven
To use the library you can simply add a dependency to `phonet4java` like this:
de.zedlitz
phonet4java
1.2.0
## Example
Here are some example to get an impression how the different algorithms work:
| input | Soundex | ref. Soundex | Daitch-Mokotoff | Kölner Phonetik | Phonet | Phonet (var. 2) |
| ----- | ------- | ------------ | --------------- | --------------- | ------ | --------------- |
| Zedlitz | Z343 | Z6765 | 438400 | 8258 | ZETLIZ | ZETLIZ |
| Zetlitz | Z343 | Z6765 | 438400 | 8258 | ZETLIZ | ZETLIZ |
| Zedtlitz | Z343 | Z6765 | 438400 | 8258 | ZETLIZ | ZETLIZ |
| Meyer | M600 | M9000 | 619000 | 67 | MEIA | NEIA |
| Meier | M600 | M9000 | 619000 | 67 | MEIA | NEIA |
| Mayr | M600 | M9000 | 690000 | 67 | MEIA | NEIA |
| Mayer | M600 | M9000 | 619000 | 67 | MEIA | NEIA |
| Kiew | K000 | K0000 | 570000 | 43 | KIF | KIF |
| Kyjiw | K200 | K4000 | 517000 | 43 | KÜIF | KIF |
| Kyiv | K100 | K2000 | 570000 | 43 | KÜIF | KIF |
| Kyiv | K100 | K2000 | 570000 | 43 | KÜIF | KIF |
| Kiev | K100 | K2000 | 570000 | 43 | KIW | KIF |
| Szczypiorskowski | S162 | S5351 | 279457 | 81784384 | SHÜPIORSKOFSKI | ZIPIURZKUFZKI |