string_score icon indicating copy to clipboard operation
string_score copied to clipboard

Support diacritics

Open bambeusz opened this issue 5 years ago • 1 comments

So I stumbled on matching city names in Germany and particularly I have this:

'Gross-Gerau' .score('Groß-Gerau') => 0

I wonder if there's any chance that you can support mapping it first without diacritics as an option in the config? would be much easier this would be usage (as I see it):

'Gross-Gerau' .score('Groß-Gerau', { diacriticsMap: true }) => 1

or similar

bambeusz avatar Jan 07 '20 13:01 bambeusz

If you add the fuzzy match it should work.

Sent from my iPhone

On Jan 7, 2020, at 9:39 PM, Daniel Chmielowiec [email protected] wrote:

 So I stumbled on matching city names in Germany and particularly I have this: 'Gross-Gerau' .score('Groß-Gerau') which gives me 0, so I wonder if there's any chance that you can support mapping it first without diacritics as an option in the config? would be much easier

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

joshaven avatar Jan 08 '20 08:01 joshaven