pub(crate) fn normalize(entries: &[Entry], metadata: &Metadata) -> Vec<Entry>Expand description
Normalize entries based on dictionary metadata.
If no normalization is needed and the entries are already sorted, returns the original entries unchanged. Otherwise transforms headwords (lowercasing and/or stripping non-alphanumeric characters) and sorts by headword.