1
0
Fork
You've already forked phonet4java
0
Implementation of various phonetic algorithms in Java.
Java 100%
2025年02月12日 10:49:19 +01:00
.github Coverage badge ( #2 ) 2024年11月30日 17:22:39 +01:00
.mvn/wrapper add Maven wrapper 2024年11月28日 20:30:14 +01:00
src updated versions including JUnit 5 and Java 7 2024年11月28日 21:03:41 +01:00
.gitignore code cleanup 2016年07月26日 08:12:31 +02:00
.travis.yml fix gpg error with Travis 2018年04月21日 11:04:58 +02:00
LICENSE Initial commit 2015年04月15日 10:52:52 +02:00
mvnw add Maven wrapper 2024年11月28日 20:30:14 +01:00
mvnw.cmd add Maven wrapper 2024年11月28日 20:30:14 +01:00
pom.xml [maven-release-plugin] prepare for next development iteration 2025年02月12日 10:49:19 +01:00
README.md Update README.md 2024年11月30日 17:48:17 +01:00
rules.xml update library and exclude beta- and RC-versions 2025年02月12日 10:32:42 +01:00

phonet4java

Maven Central version Coverage

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:

<dependency>
	<groupId>de.zedlitz</groupId>
	<artifactId>phonet4java</artifactId>
	<version>1.2.0</version>
</dependency>

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