stemmer
stemmer
Currently Cadmium only comes with a Porter Stemmer, but Lancaster will be added soon. Stemmer methods stem
and tokenize_and_stem
have also been added to the String class to simplify use.
Installation
-
Add the dependency to your
shard.yml
:dependencies: cadmium_stemmer: github: cadmiumcr/stemmer
-
Run
shards install
Usage
require "cadmium_stemmer"
"words".stem
# => word
"i am waking up to the sounds of chainsaws".tokenize_and_stem
# => ["wake", "sound", "chainsaw"]
Contributing
- Fork it (https://github.com/cadmiumcr/stemmer/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Chris Watson - creator and maintainer
Repository
stemmer
Owner
Statistic
- 1
- 1
- 4
- 2
- 2
- about 5 years ago
- August 26, 2019
License
MIT License
Links
Synced at
Sun, 22 Dec 2024 13:09:46 GMT
Languages