Fork of sample project from article Phonetic algorithms [RU]
The sample project contains realisation:
- NYSIIS phonetic-lib/Nysiis.java at master · kolipass/phonetic-lib
- Russian Metaphone phonetic-lib/MetaphoneRussian.java at master · kolipass/phonetic-lib
Also the project used Apache Commons Codec:
- NYSIIS Nysiis (Apache Commons Codec 1.10 API) Since: 1.7
- Soundex Soundex (Apache Commons Codec 1.10 API)
- Refined Soundex RefinedSoundex (Apache Commons Codec 1.10 API)
- Daitch-Mokotoff Soundex DaitchMokotoffSoundex (Apache Commons Codec 1.10 API)
- Metaphone Metaphone (Apache Commons Codec 1.10 API)
- Double Metaphone DoubleMetaphone (Apache Commons Codec 1.10 API)
- Caverphone Caverphone2 (Apache Commons Codec 1.10 API)
Create dictionary.txt (or get it here 252 russian surnames ) and run MetaphoneRussian.main(null);
- Normal usage (not work in current moment)
Add it to your root build.gradle with:
repositories {
maven { url "https://jitpack.io" }
}
and:
dependencies {
compile 'com.github.kolipass:phonetic-lib:0.0.1'
}
or
dependencies {
compile 'com.github.kolipass:phonetic-lib:-SNAPSHOT'
}
- Sub project dependency
In your project root folder:
$ git submodule add https://github.com/kolipass/phonetic-lib
$ git submodule init
$ git submodule update
$ echo "include ':speachkit:library'" > settings.gradle
- Local usage (prefer in current moment)
If you want to use you own local fork:
You need run gradle install
and check the local Maven repo folder .m2/repository/ru/phonetic/phoneticlib/0.0.1
Add it to your root build.gradle with:
repositories {
mavenLocal()
}
and:
dependencies {
compile 'ru.phonetic.phoneticlib:0.0.1'
}