The soundex module

(Optional, 1.5.2 only). This module implements a simple hash algorithm, which converts words to 6-character strings based on their English pronunciation.

As of version 2.0, this module is no longer included. Several Python implementations are available on the net, including this one by Skip Montanaro:

http://orca.mojam.com/~skip/python/soundex.py
Example: Using the soundex module
# File: soundex-example-1.py

import soundex

a = "fredrik"
b = "friedrich"

print soundex.get_soundex(a), soundex.get_soundex(b)

print soundex.sound_similar(a, b)

F63620 F63620
1
 

[comment on/vote for this article]

Comment:

soundex link seems to have no pulse, currently

Posted by gardsted (2007-02-12)

Comment:

found it: http://www.webfast.com/~skip/python/soundex.py

Posted by gardsted (2007-02-12)

A Django site. this page was rendered by a django application in 0.02s 2008-11-20 18:44:30.970262. hosted by webfaction.