https://github.com/thesp0nge/wc
Your Word Counter Gem
https://github.com/thesp0nge/wc
Last synced: 5 months ago
JSON representation
Your Word Counter Gem
- Host: GitHub
- URL: https://github.com/thesp0nge/wc
- Owner: thesp0nge
- License: mit
- Created: 2010-06-09T15:56:35.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-11-15T16:28:52.000Z (about 14 years ago)
- Last Synced: 2025-06-18T08:06:26.439Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 195 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
Awesome Lists containing this project
- nlp-with-ruby - wc - (NLP Pipeline Subtasks / Lexical Processing)
README
= wc
wc is a rubygem to count word occurrences in a given text.
*NEWS*
This is a major rewrite since version 0.98.2 and the API is completely rewritten from scratch.
The expected behavior is to let wc gem to extend a plain ruby String object and use it to retrieve tag cloud.
Please note that reading words from a file will be removed in further releases.
{
}[http://travis-ci.org/thesp0nge/wc]
== Usage
Using wc is easy. Just require the gem and use the to_tag_cloud method to the
string containing the text you want to transform in a tag cloud
require 'wc'
"A text longer is here".to_tag_cloud ~> "
"
== Note on Patches/Pull Requests
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.
== Copyright
Copyright (c) 2011 Paolo Perego. See LICENSE for details.