ID: 47443 User updated by: sirokai at gmail dot com Reported By: sirokai at gmail dot com -Status: Feedback +Status: Open Bug Type: Strings related Operating System: CentOS 5.2 PHP Version: 5.2CVS-2009-02-18 (CVS) New Comment:
http://code.google.com/p/yeti-witch/source/browse/trunk/lib/metaphone.js Line 227 Previous Comments: ------------------------------------------------------------------------ [2009-02-18 21:18:19] j...@php.net Exactly what algorithm does your JS func use? ------------------------------------------------------------------------ [2009-02-18 21:08:18] sirokai at gmail dot com Description: ------------ When I run metaphone('scratch'), I get string(5) "SKRTX" This is wrong. According to the rules posted for metaphone, T before CH is silent, so the result should be "SKRX". My Javascript metaphone function gets this right and I need the two to match up! Reproduce code: --------------- <?php echo metaphone("scratch"); ?> Expected result: ---------------- SKRX Actual result: -------------- SKRTX ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47443&edit=1