Skip to content

Commit

Permalink
Bug fix (#589)
Browse files Browse the repository at this point in the history
Original author of this stemmer implementation here. Found a bug and fixed it ;)

Bug occured with words like "adjoint".
  • Loading branch information
Poyoman39 committed Mar 10, 2021
1 parent 575ae60 commit 78e47ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/natural/stemmers/Carry/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const tranform = (word, stepConf) => {
minRadixSize <= 1 && !newWord;
minRadixSize += 1
) {
const transformations = stepConf[minRadixSize] || []
const transformations = stepConf[minRadixSize] || {}
const newSuffix = transformations[suffix]

if (newSuffix === undefined) {
Expand Down

0 comments on commit 78e47ab

Please sign in to comment.