Hunspell can suggest a list of stems for a word. This function tries to aggregate all stems into one. Consider the folowing:
unify_stems(words, stems)
| words | character vector of words |
|---|---|
| stems | character vector of stems |
a c(1,2) b c(2,3) c c(3)
You want that a, b and c to have the same stem.