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

PHP metaphone and JS metaphone match but NOT Jellyfish #123

Closed ojnc closed 4 years ago

ojnc commented 5 years ago

acceptingness metahone PHP & JS agree as AKSPTNKNS But jellyfish returns KSPTNKNS leading A is dropped

PHP Metaphone is built-in <?php echo metaphone('michael')."\n"; echo metaphone('crevalle')."\n"; echo metaphone('Filipowitz')."\n"; echo metaphone('Xavier')."\n"; echo metaphone('delicious')."\n"; echo metaphone('acceptingness')."\n"; echo metaphone('allegrettos')."\n"; ?> OUTPUT of metaphone('acceptingness') is AKSPTNKNS

https://www.npmjs.com/package/metaphone var metaphone = require('metaphone') metaphone('michael') metaphone('crevalle') metaphone('Filipowitz') metaphone('Xavier') metaphone('delicious') metaphone('acceptingness') metaphone('allegrettos') OUTPUT of metaphone('acceptingness') is AKSPTNKNS

jellyfish as installed using pip from jellyfish import metaphone metaphone('michael') metaphone('crevalle') metaphone('Filipowitz') metaphone('Xavier') metaphone('delicious') metaphone('acceptingness') metaphone('allegrettos')

OUTPUT of metaphone('acceptingness') is possibly wrong? returns KSPTNKNS leading A is dropped

jamesturk commented 4 years ago

fixed in upcoming 0.8