Learn R Programming

ptstem (version 0.0.7)

unify_stems: Unify stems by mean position

Description

Hunspell can suggest a list of stems for a word. This function tries to aggregate all stems into one. Consider the folowing:

Usage

unify_stems(words, stems)

Arguments

words

character vector of words

stems

character vector of stems

Details

a c(1,2) b c(2,3) c c(3)

You want that a, b and c to have the same stem.