#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

#368 in Text processing

Download history 149/week @ 2024-11-14 215/week @ 2024-11-21 187/week @ 2024-11-28 278/week @ 2024-12-05 252/week @ 2024-12-12 156/week @ 2024-12-19 139/week @ 2024-12-26 127/week @ 2025-01-02 388/week @ 2025-01-09 323/week @ 2025-01-16 277/week @ 2025-01-23 137/week @ 2025-01-30 254/week @ 2025-02-06 247/week @ 2025-02-13 274/week @ 2025-02-20 221/week @ 2025-02-27

1,020 downloads per month
Used in 11 crates (5 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