#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

#407 in Text processing

Download history 250/week @ 2024-08-26 183/week @ 2024-09-02 162/week @ 2024-09-09 63/week @ 2024-09-16 228/week @ 2024-09-23 155/week @ 2024-09-30 192/week @ 2024-10-07 243/week @ 2024-10-14 158/week @ 2024-10-21 114/week @ 2024-10-28 204/week @ 2024-11-04 172/week @ 2024-11-11 165/week @ 2024-11-18 239/week @ 2024-11-25 140/week @ 2024-12-02 353/week @ 2024-12-09

904 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