Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-147

BeiderMorse phonetic filter give uncertain results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 1.7
    • None
    • Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ekeller Emmanuel Keller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: