pub fn ascii_and_nonword_filter<'a, F: Fn(Cow<'_, str>) -> Cow<'_, str>>(
    term_inflections: &mut Vec<String>,
    term_slice: &'a str,
    term_filter: F
) -> Cow<'a, str>