ID:               47443
 Updated by:       [email protected]
 Reported By:      sirokai at gmail dot com
-Status:           Open
+Status:           Feedback
-Bug Type:         Unknown/Other Function
+Bug Type:         Strings related
 Operating System: CentOS 5.2
 PHP Version:      5.2CVS-2009-02-18 (CVS)
 New Comment:

Exactly what algorithm does your JS func use?


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to