mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Added a reference to the discussion in Knuth's "Sorting and Searching", and
noted that the original algorithm produces 4-character results rather than the 6-character results provided by this module.
This commit is contained in:
parent
41565f66b6
commit
c708605f4f
2 changed files with 30 additions and 2 deletions
|
@ -16,7 +16,8 @@ misspellings together.
|
||||||
\begin{funcdesc}{get_soundex}{string}
|
\begin{funcdesc}{get_soundex}{string}
|
||||||
Return the soundex hash value for a word; it will always be a
|
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,
|
6-character string. \var{string} must contain the word to be hashed,
|
||||||
with no leading whitespace; the case of the word is ignored.
|
with no leading whitespace; the case of the word is ignored. (Note
|
||||||
|
that the original algorithm produces a 4-character result.)
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{sound_similar}{string1, string2}
|
\begin{funcdesc}{sound_similar}{string1, string2}
|
||||||
|
@ -25,3 +26,16 @@ is equivalent to
|
||||||
\code{get_soundex(\var{string1})} \code{==}
|
\code{get_soundex(\var{string1})} \code{==}
|
||||||
\code{get_soundex(\var{string2})}.
|
\code{get_soundex(\var{string2})}.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
|
|
||||||
|
\begin{seealso}
|
||||||
|
|
||||||
|
\seetext{Donald E. Knuth, \emph{Sorting and Searching,} vol. 3 in
|
||||||
|
``The Art of Computer Programming.'' Addison-Wesley Publishing
|
||||||
|
Company: Reading, MA: 1973. pp.\ 391-392. Discusses the origin and
|
||||||
|
usefulness of the algorithm, as well as the algorithm itself. Knuth
|
||||||
|
gives his sources as \emph{U.S. Patents 1261167} (1918) and
|
||||||
|
\emph{1435663} (1922), attributing the algorithm to Margaret K. Odell
|
||||||
|
and Robert C. Russel. Additional references are provided.}
|
||||||
|
|
||||||
|
\end{seealso}
|
||||||
|
|
|
@ -16,7 +16,8 @@ misspellings together.
|
||||||
\begin{funcdesc}{get_soundex}{string}
|
\begin{funcdesc}{get_soundex}{string}
|
||||||
Return the soundex hash value for a word; it will always be a
|
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,
|
6-character string. \var{string} must contain the word to be hashed,
|
||||||
with no leading whitespace; the case of the word is ignored.
|
with no leading whitespace; the case of the word is ignored. (Note
|
||||||
|
that the original algorithm produces a 4-character result.)
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{sound_similar}{string1, string2}
|
\begin{funcdesc}{sound_similar}{string1, string2}
|
||||||
|
@ -25,3 +26,16 @@ is equivalent to
|
||||||
\code{get_soundex(\var{string1})} \code{==}
|
\code{get_soundex(\var{string1})} \code{==}
|
||||||
\code{get_soundex(\var{string2})}.
|
\code{get_soundex(\var{string2})}.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
|
|
||||||
|
\begin{seealso}
|
||||||
|
|
||||||
|
\seetext{Donald E. Knuth, \emph{Sorting and Searching,} vol. 3 in
|
||||||
|
``The Art of Computer Programming.'' Addison-Wesley Publishing
|
||||||
|
Company: Reading, MA: 1973. pp.\ 391-392. Discusses the origin and
|
||||||
|
usefulness of the algorithm, as well as the algorithm itself. Knuth
|
||||||
|
gives his sources as \emph{U.S. Patents 1261167} (1918) and
|
||||||
|
\emph{1435663} (1922), attributing the algorithm to Margaret K. Odell
|
||||||
|
and Robert C. Russel. Additional references are provided.}
|
||||||
|
|
||||||
|
\end{seealso}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue