Skip to content

vk4arm/pysoundex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pysoundex

Python library for Multilanguage configurable soundex (with English and Russian)

Installation

From source:

$ sudo python setup.py install

Usage

>>> import pysoundex
>>> print pysoundex.soundex("Приветище", lang='ru_RU')
п613
>>> print pysoundex.soundex("Hello")
h400   <--- the same as un mysql!
>>> print pysoundex.soundex("Halo")
h400

Languages configuration:

In lang_soundconfig.py: add dictionary element, similar with "en_US" or "ru_RU":

"en_US": { "vowels": [ 'a', 'e', 'h', 'i', 'o', 'u', 'w', 'y' ], "consonants": { 1: [ 'b', 'f', 'p', 'v'], 2: [ 'c', 'g', 'j', 'k', 'q', 's', 'x', 'z'],
3: ['d', 't'] , 4: ['l'] , 5: ['m', 'n'], 6: ['r'] } },

About

Multilanguage configurable soundex (initially with English and Russian, but you can add own language)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages