linggle 0.04.2 → 0.04.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linggle.rb +2 -2
- data/lib/linggle/string.rb +0 -1
- data/lib/linggle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5f8d38379b0ce1d2db5ff56bf5c9a4772faf9ac
|
4
|
+
data.tar.gz: f5e20bd2973965606855e011626e13b6d458bb52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3971be22b1784289d7001475701fb4e86bbfe0fd0b3aed5b854fca69323e1cb8d37bdf20903fda4f7a4d4e8d9c297cde1ee14093bb53c427b0b981d463aee8de
|
7
|
+
data.tar.gz: 887969f72dd3830e20d9911cee19ce9f550ed1e5f619b75bd52612a7b83e3e82992c8f0d6c5b00b0ebc94f6b10effc8dd0efe9737a020658c950d75e2a80dcf7
|
data/lib/linggle.rb
CHANGED
@@ -29,9 +29,9 @@ module Linggle
|
|
29
29
|
"total": 674125
|
30
30
|
}
|
31
31
|
=end
|
32
|
-
|
32
|
+
results['ngrams'].take(20).each do |x|
|
33
33
|
percent = ( (x[1].to_f/results['total']).round(2) * 100 ).to_s
|
34
|
-
"#{x[0].green} Percent: #{percent.yellow} #{x[1]} \n #{percent.percent_line} \n \n"
|
34
|
+
puts "#{x[0].green} Percent: #{percent.yellow} #{x[1]} \n #{percent.percent_line} \n \n"
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
data/lib/linggle/string.rb
CHANGED
data/lib/linggle/version.rb
CHANGED