Staging
v0.8.1
https://github.com/python/cpython
Revision 6af6d3511e21ee0145fddb80abece7d36fd3a2ac authored by Guido van Rossum on 04 October 1997, 20:29:17 UTC, committed by Guido van Rossum on 04 October 1997, 20:29:17 UTC
Since there's also an imghdr.py file, I propose to make sndhdr.py the
official one.  For compatibility, whatsound.py imports * from
sndhdr.py.
1 parent bfeb74d
Raw File
Tip revision: 6af6d3511e21ee0145fddb80abece7d36fd3a2ac authored by Guido van Rossum on 04 October 1997, 20:29:17 UTC
Turns out whatsound.py and sndhdr.py were identical modules.
Tip revision: 6af6d35
libsoundex.tex
\section{Standard Module \sectcode{soundex}}
\label{module-soundex}
\stmodindex{soundex}

\renewcommand{\indexsubitem}{(in module soundex)}
The soundex algorithm takes an English word, and returns an
easily-computed hash of it; this hash is intended to be the same for
words that sound alike.  This module provides an interface to the
soundex algorithm.

Note that the soundex algorithm is quite simple-minded, and isn't
perfect by any measure.  Its main purpose is to help looking up names
in databases, when the name may be misspelled -- soundex hashes common
misspellings together.

\begin{funcdesc}{get_soundex}{string}
Return the soundex hash value for a word; it will always be a
6-character string.  \var{string} must contain the word to be hashed,
with no leading whitespace; the case of the word is ignored.
\end{funcdesc}

\begin{funcdesc}{sound_similar}{string1, string2}
Compare the word in \var{string1} with the word in \var{string2}; this
is equivalent to 
\code{get_soundex(\var{string1})==get_soundex(\var{string2})}.
\end{funcdesc}
back to top