Function words_count::count
source · pub fn count<S: AsRef<str>>(s: S) -> WordsCount
Expand description
Count the words in the given string. In general, every non-CJK string of characters between two whitespaces is a word. Dashes (at least two dashes) are word limit, too. A CJK character is considered to be an independent word.