[CODEC-147] BeiderMorse phonetic filter give uncertain results (original) (raw)

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.