woccur 0.0.1 → 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +25 -0
- data/lib/woccur/version.rb +1 -1
- data/woccur.gemspec +1 -1
- metadata +3 -2
data/README.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Woccur - Find the most commonly used words in a string
|
2
|
+
|
3
|
+
This gem allows you find the most commonly used words in for a string or block of text
|
4
|
+
|
5
|
+
## How to Use
|
6
|
+
|
7
|
+
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
|
8
|
+
|
9
|
+
### Install
|
10
|
+
|
11
|
+
gem install woccur
|
12
|
+
|
13
|
+
### String extension
|
14
|
+
|
15
|
+
"String of text".common_words
|
16
|
+
|
17
|
+
### Woccur module
|
18
|
+
|
19
|
+
Woccur.common_words("String of text")
|
20
|
+
|
21
|
+
### Output Results
|
22
|
+
|
23
|
+
@text.common_words.each do |word, count|
|
24
|
+
"#{word} - #{count}"
|
25
|
+
end
|
data/lib/woccur/version.rb
CHANGED
data/woccur.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Sam Knight"]
|
10
10
|
s.email = ["sam@samknight.co.uk"]
|
11
|
-
s.homepage = ""
|
11
|
+
s.homepage = "https://github.com/samknight/woccur"
|
12
12
|
s.summary = %q{Find the most commons words in a string}
|
13
13
|
s.description = %q{Find the most commons words in a string}
|
14
14
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: woccur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: "0.1"
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Sam Knight
|
@@ -36,6 +36,7 @@ extra_rdoc_files: []
|
|
36
36
|
files:
|
37
37
|
- .gitignore
|
38
38
|
- Gemfile
|
39
|
+
- README.md
|
39
40
|
- Rakefile
|
40
41
|
- lib/common.yml
|
41
42
|
- lib/woccur.rb
|
@@ -44,7 +45,7 @@ files:
|
|
44
45
|
- spec/woccur_spec.rb
|
45
46
|
- woccur.gemspec
|
46
47
|
has_rdoc: true
|
47
|
-
homepage:
|
48
|
+
homepage: https://github.com/samknight/woccur
|
48
49
|
licenses: []
|
49
50
|
|
50
51
|
post_install_message:
|