Function normalize

Source
pub fn normalize(input: &str) -> String
Expand description

Matching key: lowercase, without diacritics, without punctuation, with normalized spacing and the leading article moved.

use aede_core::text::normalize;
assert_eq!(normalize("The Beatles"), normalize("Beatles, The"));
assert_eq!(normalize("Björk"), "bjork");