use super::token::Token; pub fn word_tokenizer(text: &str) -> Vec> { text.split_inclusive(char::is_whitespace) .map(|s| Token::new(s.to_owned(), s.to_owned())) .collect() }