Skip to content

Commit

Permalink
Add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
balasankarc committed Sep 4, 2017
1 parent 85ef312 commit cbc6898
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
29 changes: 29 additions & 0 deletions README.md
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
```
21 changes: 0 additions & 21 deletions README.rst

This file was deleted.

0 comments on commit cbc6898

Please sign in to comment.