Skip to content

Commit

Permalink
Merge pull request #1 from Maphardam/master
Browse files Browse the repository at this point in the history
Fixed bug mentioned by reiver#4 by applying mschoch/go-porterstemmer/c5e9efb
  • Loading branch information
dhowden committed Feb 2, 2016
2 parents 7de9fd1 + 7b4547d commit 2e327a3
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 2e327a3

Please sign in to comment.