Project

woccur

0.0
No commit activity in last 3 years
No release in over 3 years
Find the most commons words in a string
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.6
 Project Readme

Woccur - Find the most commonly used words in a string

This gem allows you find the most commonly used words in for a string or block of text

How to Use

You can use this gem in 2 ways. You can use it as an extension on the string class or as it's own module

Install

gem install woccur

String extension

"String of text".common_words

Woccur module

Woccur.common_words("String of text")

Output Results

@text.common_words.each do |word, count|
	"#{word} - #{count}"
end