#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

#371 in Text processing

Download history 212/week @ 2024-07-28 147/week @ 2024-08-04 169/week @ 2024-08-11 303/week @ 2024-08-18 243/week @ 2024-08-25 191/week @ 2024-09-01 169/week @ 2024-09-08 66/week @ 2024-09-15 199/week @ 2024-09-22 182/week @ 2024-09-29 189/week @ 2024-10-06 237/week @ 2024-10-13 164/week @ 2024-10-20 119/week @ 2024-10-27 196/week @ 2024-11-03 174/week @ 2024-11-10

665 downloads per month
Used in 10 crates (4 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