jamesturk / jellyfish

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

The word "why" is encoded by metaphone as a blank string #108

Closed hosford42 closed 4 years ago

hosford42 commented 5 years ago
In[2]: import jellyfish
In[3]: jellyfish.metaphone('why')
Out[3]: ''

It's my understanding that it should be 'W' instead. Also, anything starting with 'why', e.g. 'whynot' will have the leading 'W' omitted.

jamesturk commented 4 years ago

fixed in upcoming 0.8