I want to use the function java apache DoubleMetaphoneEqual but with french language ? I'm using as routine in my talend job
Could you please tell me what should i add to my code ? For the example JAID MOHAMED, JAWAD MOHAMED gives true and in french is should be false
static DoubleMetaphone dd = new DoubleMetaphone();
public static boolean resultat (final String value1, final String value2)
{
return dd.isDoubleMetaphoneEqual(value1, value2,false);
}
Thanks
If you are using the standard Apache implementation, this is not possible. From the DoubleMetaphone Javadoc:
and from the Metaphone page on Wikipedia
So it will not work for French