#normalize #search #text-search #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

#2226 in Text processing

Download history 200/week @ 2025-06-02 190/week @ 2025-06-09 430/week @ 2025-06-16 392/week @ 2025-06-23 243/week @ 2025-06-30 235/week @ 2025-07-07 321/week @ 2025-07-14 276/week @ 2025-07-21 154/week @ 2025-07-28 130/week @ 2025-08-04 170/week @ 2025-08-11 196/week @ 2025-08-18 200/week @ 2025-08-25 535/week @ 2025-09-01 251/week @ 2025-09-08 255/week @ 2025-09-15

1,255 downloads per month
Used in 11 crates (6 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);

No runtime deps