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

#385 in Text processing

Download history 130/week @ 2024-12-27 145/week @ 2025-01-03 439/week @ 2025-01-10 309/week @ 2025-01-17 241/week @ 2025-01-24 139/week @ 2025-01-31 270/week @ 2025-02-07 233/week @ 2025-02-14 287/week @ 2025-02-21 236/week @ 2025-02-28 239/week @ 2025-03-07 320/week @ 2025-03-14 199/week @ 2025-03-21 260/week @ 2025-03-28 127/week @ 2025-04-04 84/week @ 2025-04-11

707 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