http://thewebdev.de/highscore-a-lightweight-ruby-library-that-finds-and-ranks-keywords-in-a-string/
Features
- get the top n words
- blacklist words via a file, array or string
- default blacklist in the gem
- merge different Keywords objects (e.g. from different sources)
- configureable to rank different types of words differently (uppercase, long words, etc.)
- String has it’s own keywords method that you can use
Roadmap
- detect the language of a string via “indicator words”
- define a blacklist file per language (based on language detection)
- fine grain the default blacklist (just a few words atm)
看起來值得期待
暫無回應。