You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (JIRA)" <ji...@apache.org> on 2012/09/14 22:21:11 UTC
[jira] [Closed] (CODEC-147) BeiderMorse phonetic filter give
uncertain results
[ https://issues.apache.org/jira/browse/CODEC-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory closed CODEC-147.
---------------------------------
Released in 1.7 today.
> BeiderMorse phonetic filter give uncertain results
> ---------------------------------------------------
>
> Key: CODEC-147
> URL: https://issues.apache.org/jira/browse/CODEC-147
> Project: Commons Codec
> Issue Type: Bug
> Affects Versions: 1.6
> Environment: Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
> Reporter: Emmanuel Keller
> Fix For: 1.7
>
>
> Hi,
> I use the new Beider-Morse encoder and I came across the following issue:
> Consecutive encodings with the identical parameters returns different results.
> I don't know if I am doing something wrong.
> Here is a small application to reproduce the issue:
> public static void main(String[] args) {
> PhoneticEngine encoder = new PhoneticEngine(NameType.GENERIC,
> RuleType.APPROX, true);
> for (int i = 0; i < 10; i++)
> System.out.println(encoder.encode("test"));
> }
> Here are the results:
> ti|tis|tist|tit
> ti|tis|tist|tit
> tist
> ti|tis|tist|tit
> ti|tis|tist|tit
> tist
> ti|tis|tist|tit
> tist
> ti|tis|tist|tit
> tist
> Thank you for your help.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira