Skip to main content

Soundex algorithm implementation for English and Indian languages

Project description

PyPI Version

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

Python 3 is required. Using with venv is recommended

$ pip install libindic-soundex

Usage

from libindic.soundex import Soundex
instance = Soundex()
instance.soundex(u"കൃത്രിമം")
u'\u0d15PKPBN00'
instance.compare(u"വിദ്യാർഥി", u"വിദ്യാർദി")
1
instance.compare(u"മോര്", u"മുതിര")
-1
instance.compare(u'ಬೆಂಗಳೂರು', u'बॆंगळूरु')
2

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libindic-soundex-1.0.2.tar.gz (10.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page