[][src]Function porter_stemmer::stem_tokenized

pub fn stem_tokenized(word: Vec<&str>) -> Vec<&str>

Take a word as a Vector of grapheme clusters, and return the stemmed equivalent using Porter's stemming algorithm.

Examples

use porter_stemmer::stem_tokenized;

let tokenized = vec!["s", "t", "e", "m", "m", "i", "n", "g"];
let stemmed = stem_tokenized(tokenized);
assert_eq!(&["s", "t", "e", "m"], &stemmed[..]);