BubbleMatch.Unidekode (bubble_match v0.6.3) View Source

Documentation for Unidekode.

Link to this section Summary

Functions

Remove accented characters from the string, but keeping special characters like emoji

Transliterate Unicode characters to US-ASCII.

Link to this section Functions

Specs

drop_accented(binary()) :: binary()

Remove accented characters from the string, but keeping special characters like emoji

Examples

iex> BubbleMatch.Unidekode.drop_accented("código")
"codigo"

iex> BubbleMatch.Unidekode.drop_accented("código 👍")
"codigo 👍"

Specs

to_ascii(binary() | charlist()) :: binary() | charlist()

Transliterate Unicode characters to US-ASCII.

Examples

iex> BubbleMatch.Unidekode.to_ascii("código")
"codigo"

iex> BubbleMatch.Unidekode.to_ascii("código😀")
"codigo"

iex> BubbleMatch.Unidekode.to_ascii('código')
'codigo'

iex> BubbleMatch.Unidekode.to_ascii('código℗')
'codigo'