Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug stemming the word "ion" #16

Merged
merged 1 commit into from
Dec 3, 2019

Conversation

pwoolcoc
Copy link
Contributor

When attempting to stem the word "ion," I got this panic:

thread 'main' panicked at 'attempt to subtract with overflow', /home/paul/.cargo/registry/src/github.com-1ecc6299db9ec823/natural-0.3.0/src/stem.rs:273:29

@tsturzl
Copy link
Collaborator

tsturzl commented Dec 3, 2019

Sorry for the late reply. I'll be jumping on to help maintain. This stemmer seems to have a few edge cases like that of which you've pointed out, and perhaps in the future a consideration will be to support more stemmers, especially those like snowball which are flexible and programmable. The PR looks good, I'll merge it up and deliver in the next release.

@tsturzl tsturzl merged commit 4bba93c into lexi-sh:master Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants