GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — [CODEC-249] Fix Incorrect transform of CH digraph according Metaphone basic rules by Shalujha0907 · Pull Request #423 · apache/commons-codec Conversation
Contributor
Incorrect transformation of the CH digraph in the Metaphone algorithm This PR fixes the above issue. Previously, we checked whether the character following CH was a vowel; if so, we appended the character "K". I have removed that check so that when "CH" is encountered, the algorithm simply appends "X".
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Hello @garydgregory Thanks for the review and for calling this out. XRKTR is the full phonetic sequence, but Metaphone in Commons Codec uses a default maxCodeLen of 4, so the returned value is truncated to XRKT. Please let me know if you think we should also add a separate assertion with a higher maxCodeLen to make that behavior explicit. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi @Shalujha0907 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… code length of 5
Hi @garydgregory Thank you! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Jira ticket is https://issues.apache.org/jira/browse/CODEC-249 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.