#search #normalize #text

diacritics

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

5 releases

0.2.0 Mar 25, 2023
0.1.3 Mar 9, 2022
0.1.2 Mar 9, 2022
0.1.1 Oct 7, 2020
0.1.0 Oct 7, 2020

#1430 in Text processing

Download history 600/week @ 2023-12-10 439/week @ 2023-12-17 142/week @ 2023-12-24 286/week @ 2023-12-31 357/week @ 2024-01-07 228/week @ 2024-01-14 240/week @ 2024-01-21 120/week @ 2024-01-28 93/week @ 2024-02-04 82/week @ 2024-02-11 191/week @ 2024-02-18 173/week @ 2024-02-25 144/week @ 2024-03-03 289/week @ 2024-03-10 155/week @ 2024-03-17 153/week @ 2024-03-24

758 downloads per month
Used in 8 crates (3 directly)

GPL-3.0 license

12KB
173 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);

No runtime deps