pub fn trim_to_words(content: String) -> Vec<String>
Expand description

Splits String into single words as Vector. Splits String at whitespaces and removes chars like , or ?. Change the relevant line to remove or add chars from provided String.

§Example

#[test]
fn test() {
use text_analysiss::trim_to_words;
let words = "(_test] {test2!=".to_string();
let trimmed = trim_to_words(words).unwrap();
let expected = vec!["test".to_string(), "test2".to_string()];
assert_eq!(trimmed, expected);
}