Skip to main content

shorter_only

Function shorter_only 

Source
pub fn shorter_only(compressed: String, original: &str) -> Option<String>
Expand description

Some(compressed) only when it carries fewer tokens than original (ties broken by length), compared on whitespace-normalized text.