pub fn truncate_words(text: &str, max_len: usize) -> String
Truncate text to a maximum length, respecting word boundaries.