reiver / go-porterstemmer

A native Go clean room implementation of the Porter Stemming algorithm.
https://godoc.org/github.com/reiver/go-porterstemmer
MIT License
190 stars 45 forks source link

Update porterstemmer.go #10

Closed magiczhao closed 8 years ago

magiczhao commented 8 years ago

fix crash on some not valid english words such as "eeg", which will cause a index out range exception.

reiver commented 8 years ago

Sorry for the delay. Just getting around to this package again.

"eeg" doesn't seem to cause a panic() anymore (perhaps because of some other change already merged) but the addition of your change still passes the tests.