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

Add customization of stemming function #5

Merged
merged 4 commits into from Aug 14, 2016
Merged

Add customization of stemming function #5

merged 4 commits into from Aug 14, 2016

Conversation

duijf
Copy link
Contributor

@duijf duijf commented Aug 12, 2016

Breaking changes ahead.

This PR allows users of the library to configure the stemming function they want to use with the library, instead of having Stemmer.stem/1 hardcoded. This is useful for me as I'd like to try this out with other languages.

This changes the configuration API from stem: true to stem: &my_stem_function/1. The old behavior can be obtained by using stem: &Stemmer.stem/1. Since users are now able to choose, I've also removed :stemmer as a run-time dependency. I've updated the relevant docs that I could find.

If you have any questions, don't hesitate to ask.

@fredwu
Copy link
Owner

fredwu commented Aug 14, 2016

Thanks @duijf, makes sense! 👍

@fredwu fredwu merged commit e376138 into fredwu:master Aug 14, 2016
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