Hi internals,

Currently, PHP core maintains the oldest and least accurate version of the 
metaphone algorithm in C in the metaphone function. It was superseded by more 
accurate algorithms, namely Double Metaphone and Metaphone 3, and only limited 
to English pronunciation rules. There are already robust and actively 
maintained userland libraries available via Composer that implement Double 
Metaphone and Metaphone 3 [1][2][3].


I therefore would like to introduce a RFC to deprecate the metaphone function. 
Maintaining this legacy function in the core provides little value to modern 
PHP applications, and users could be advised to switch to more accurate 
alternatives. Even in the case where strict backward compatibility with core 
functions is preferred, people can still use soundex instead.


RFC link: https://wiki.php.net/rfc/deprecate-metaphone


I am happy to know your thoughts on this.


— Weilin Du <[email protected], [email protected]&gt;


[1]: https://packagist.org/packages/voku/phonetic-algorithms
[2]: https://packagist.org/packages/carloswph/linguistics
[3]: https://packagist.org/packages/noodlesnz/double-metaphone

Reply via email to