Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fresheyeball/deburr


https://github.com/fresheyeball/deburr

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

        

# Deburr

A small package exposing the deburr function, which converts unicode
characters with burrs (umlauts, accents, etc) to their ASCII counterparts.
The function intelligently handles capitals and some other edge cases.

For example lets say you want to provide your users with a
search input. And you want the search to be as forgiving as possible.
You might make the search case insensitive, use Levenshtein, but what
about burrs like in "Jalapeño"? The search might work better on "Jalapeno".

```elm
deburr "Jalapeño" == "Jalapeno"
```

While useful, this function is expensive. Use with care.