1. YouGov, plc.
  2. Untitled project
  3. fuzzy
  4. Issues
Issue #1 resolved

soundex modifies input argument

Doug Hellmann
created an issue

The soundex implementation modifies the characters of the input Python string, changing the case of the letters. It doesn't look like any of the other algorithms have this problem.

For example, this Python code:



import fuzzy

names = [ 'Catherine', 'Katherine', 'Katarina', 'Johnathan', 'Jonathan', 'John', ]

for n in names: print n, fuzzy.Soundex(4)(n), n }}}

produces this output:

{{{ $ python show_soundex.py Catherine C365 CATHERINe Katherine K365 KATHERINe Katarina K365 KATARINa Johnathan J535 JOHNATHAN Jonathan J535 JONATHAN John J500 JOHN }}}

Comments (1)

  1. Log in to comment