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

#491 in Text processing

Download history 172/week @ 2024-03-28 147/week @ 2024-04-04 209/week @ 2024-04-11 206/week @ 2024-04-18 160/week @ 2024-04-25 216/week @ 2024-05-02 469/week @ 2024-05-09 249/week @ 2024-05-16 160/week @ 2024-05-23 150/week @ 2024-05-30 121/week @ 2024-06-06 122/week @ 2024-06-13 94/week @ 2024-06-20 95/week @ 2024-06-27 111/week @ 2024-07-04 380/week @ 2024-07-11

700 downloads per month
Used in 8 crates (3 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);

lib.rs:

Used for removing diacritics from a string.

Examples

let new_string = diacritics::remove_diacritics("TÅRÖÄÆØ");
assert_eq!("TAROAAO", new_string);

No runtime deps