#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

#332 in Text processing

Download history 211/week @ 2024-12-16 158/week @ 2024-12-23 86/week @ 2024-12-30 188/week @ 2025-01-06 478/week @ 2025-01-13 291/week @ 2025-01-20 170/week @ 2025-01-27 173/week @ 2025-02-03 259/week @ 2025-02-10 266/week @ 2025-02-17 267/week @ 2025-02-24 232/week @ 2025-03-03 292/week @ 2025-03-10 256/week @ 2025-03-17 254/week @ 2025-03-24 200/week @ 2025-03-31

1,007 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