#search #diacritics #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

#493 in Text processing

Download history 57/week @ 2023-02-06 61/week @ 2023-02-13 78/week @ 2023-02-20 43/week @ 2023-02-27 69/week @ 2023-03-06 48/week @ 2023-03-13 51/week @ 2023-03-20 86/week @ 2023-03-27 46/week @ 2023-04-03 57/week @ 2023-04-10 48/week @ 2023-04-17 141/week @ 2023-04-24 85/week @ 2023-05-01 157/week @ 2023-05-08 110/week @ 2023-05-15 81/week @ 2023-05-22

455 downloads per month
Used in 7 crates (2 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