-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85ef312
commit cbc6898
Showing
2 changed files
with
29 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# LibIndic Soundex | ||
|
||
[![Build Status](https://travis-ci.org/libindic/soundex.svg?branch=master)](https://travis-ci.org/libindic/soundex) | ||
[![Coverage Status](https://coveralls.io/repos/github/libindic/soundex/badge.svg?branch=master)](https://coveralls.io/github/libindic/soundex?branch=master) | ||
|
||
Soundex is phonetic algorithm for indexing names by sound as pronounced in | ||
English. LibIndic's soundex module implements Soundex algorithm for Engish as | ||
well as a modified version of soundex algorithm for Indian languages. | ||
|
||
Details on how Soundex is implemented can be found at | ||
[Santhosh's blog](http://thottingal.in/blog/2009/07/26/indicsoundex/) | ||
|
||
## Installation | ||
1. Clone the repository `git clone https://github.com/libindic/soundex.git` | ||
2. Change to the cloned directory `cd soundex` | ||
3. Run setup.py to create installable source `python setup.py sdist` | ||
3. Install using pip `pip install dist/libindic-soundex*.tar.gz` | ||
|
||
## Usage | ||
``` | ||
>>> from libindic.soundex import Soundex | ||
>>> instance = Soundex() | ||
>>> instance.soundex(u"കൃത്രിമം") | ||
u'\u0d15PKPBN00' | ||
>>> instance.compare(u"വിദ്യാർഥി", u"വിദ്യാർദി") | ||
1 | ||
>>> instance.compare(u"മോര്", u"മുതിര") | ||
2 | ||
``` |
This file was deleted.
Oops, something went wrong.