#search #normalize #text

diacritics

Remove diacritics from letters, for example when standardizing input for a search

7 releases

0.2.2 May 13, 2024
0.2.1 May 13, 2024
0.2.0 Mar 25, 2023
0.1.3 Mar 9, 2022
0.1.1 Oct 7, 2020

#371 in Text processing

Download history 108/week @ 2024-10-26 206/week @ 2024-11-02 164/week @ 2024-11-09 146/week @ 2024-11-16 255/week @ 2024-11-23 144/week @ 2024-11-30 327/week @ 2024-12-07 247/week @ 2024-12-14 112/week @ 2024-12-21 124/week @ 2024-12-28 160/week @ 2025-01-04 501/week @ 2025-01-11 272/week @ 2025-01-18 200/week @ 2025-01-25 163/week @ 2025-02-01 231/week @ 2025-02-08

966 downloads per month
Used in 11 crates (5 directly)

GPL-3.0 license

13KB
171 lines

Diacritics

This is a rust crate for removing diacritics from a string. It can be useful when wanting to standardize some material to make it easier to search, among other things.

Example

let string = "TÅRÖÄÆØ";
let new_string = diacritics::remove_diacritics(string);
assert_eq!("TAROAAO", new_string);

lib.rs:

Used for removing diacritics from a string.

Examples

let new_string = diacritics::remove_diacritics("TÅRÖÄÆØ");
assert_eq!("TAROAAO", new_string);

No runtime deps