jamesturk / jellyfish

🪼 a python library for doing approximate and phonetic matching of strings.
https://jamesturk.github.io/jellyfish/
MIT License
2.07k stars 160 forks source link

metaphone returns different results for same word, different case #15

Closed jcarbaugh closed 10 years ago

jcarbaugh commented 10 years ago

Found an instance where metaphone will return different results based on case. My quick research indicates that metaphone should be case-insensitive.

>>> import jellyfish
>>> jellyfish.metaphone('kentucky')
'KNTK'
>>> jellyfish.metaphone('KENTUCKY')
'KNTKK'

JELLYFISH IS UNUSABLE!!!!!!

jamesturk commented 10 years ago

weird. looking into it

jamesturk commented 10 years ago

ok fixed in 0.2.1

jcarbaugh commented 10 years ago

You are a true gem, @jamesturk.