Re: [HACKERS] [PATCH] RFC: Add length parameterised dmetaphone functions

2015-11-06 Thread Albe Laurenz
Christian Marie wrote: > A developer I work with was trying to use dmetaphone to group people names > into > equivalence classes. He found that many long names would be grouped together > when they shouldn't be, this turned out to be because dmetaphone has an > undocumented upper bound on its outp

Re: [HACKERS] [PATCH] RFC: Add length parameterised dmetaphone functions

2015-11-05 Thread Michael Paquier
On Fri, Nov 6, 2015 at 2:00 PM, Christian Marie wrote: > This patch addresses this by adding and documenting an optional argument to > dmetaphone and dmetaphone_alt that specifies the maximum output length. This > makes it possible to use dmetaphone on much longer inputs. It would be good if you

[HACKERS] [PATCH] RFC: Add length parameterised dmetaphone functions

2015-11-05 Thread Christian Marie
A developer I work with was trying to use dmetaphone to group people names into equivalence classes. He found that many long names would be grouped together when they shouldn't be, this turned out to be because dmetaphone has an undocumented upper bound on its output length, of four. This is obviou