Skip to content

Commit

Permalink
Fixed bug introduced by reiver#4 by applying mschoch/go-porterstemmer…
Browse files Browse the repository at this point in the history
…/c5e9efb
  • Loading branch information
tsabsch committed Feb 2, 2016
1 parent 7de9fd1 commit 7b4547d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions porterstemmer.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,10 @@ func step5a(s []rune) []rune {
m := measure(subSlice)
if 1 < m {
result = subSlice
} else if c := subSlice[len(subSlice)-1]; 1 == m && !(hasConsonantVowelConsonantSuffix(subSlice) && 'w' != c && 'x' != c && 'y' != c) {
result = subSlice
} else if 1 == m {
if c := subSlice[len(subSlice)-1]; !(hasConsonantVowelConsonantSuffix(subSlice) && 'w' != c && 'x' != c && 'y' != c) {
result = subSlice
}
}
}
return result
Expand Down

0 comments on commit 7b4547d

Please sign in to comment.