#search #normalize #text

diacritics

Remove diacritics from letters, for example when standardizing input for a search

7 releases

new 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

#1406 in Text processing

Download history 201/week @ 2024-01-22 125/week @ 2024-01-29 89/week @ 2024-02-05 88/week @ 2024-02-12 188/week @ 2024-02-19 181/week @ 2024-02-26 158/week @ 2024-03-04 273/week @ 2024-03-11 159/week @ 2024-03-18 129/week @ 2024-03-25 200/week @ 2024-04-01 139/week @ 2024-04-08 198/week @ 2024-04-15 225/week @ 2024-04-22 189/week @ 2024-04-29 208/week @ 2024-05-06

829 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