Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fresheyeball/deburr
https://github.com/fresheyeball/deburr
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fresheyeball/deburr
- Owner: Fresheyeball
- License: bsd-3-clause
- Created: 2019-11-18T19:06:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-18T19:16:31.000Z (almost 5 years ago)
- Last Synced: 2024-05-09T13:38:54.639Z (6 months ago)
- Language: Elm
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.