lingua-it-readability 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +1 -0
- data/lib/lingua/it/readability.rb +5 -4
- data/lib/lingua/it/readability/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: 42f6c7ecd1fac59e26a952b0b4637ca37823b9c4
|
|
4
|
+
data.tar.gz: a5b1e3865b48a65f656f0df86f870e74a376db8d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c223befa1275a132e274fe2013881b9d72a134cb2b1f1278b4c3f2ac4a07609bb468c0e12e51176c421650c1b72aef3a8a757308047c8e870f783cbdfa84d4b
|
|
7
|
+
data.tar.gz: 5fe0490781ccf1ce60d170772e52be7510002994dd5c32f75c037a0adba25999281c5a4933006080e19dc4621b4c1efda4b8edacdd37f498666ec80cc704caeb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
#### 1.1.6 - 2016-02-10
|
|
2
|
+
###### Added
|
|
3
|
+
- Refactoring
|
|
4
|
+
- Additional test for report method
|
|
5
|
+
|
|
1
6
|
#### 1.1.5 - 2016-02-10
|
|
2
7
|
###### Added
|
|
3
8
|
- Method analyze, accept text and optional delimiters
|
|
@@ -8,12 +13,14 @@
|
|
|
8
13
|
- Optimized regex, greatly improved overall performance
|
|
9
14
|
- Possibility to add custom symbols as end delimiter for sentences
|
|
10
15
|
- Readme usage section
|
|
16
|
+
|
|
11
17
|
###### Fixed
|
|
12
18
|
- Minor bugs
|
|
13
19
|
|
|
14
20
|
#### 1.0.4 - 2016-02-09
|
|
15
21
|
###### Added
|
|
16
22
|
- Readme usage section
|
|
23
|
+
|
|
17
24
|
###### Fixed
|
|
18
25
|
- Minor bugs
|
|
19
26
|
|
|
@@ -24,12 +31,14 @@
|
|
|
24
31
|
#### 1.0.2 - 2016-02-09
|
|
25
32
|
###### Added
|
|
26
33
|
- Readme usage section
|
|
34
|
+
|
|
27
35
|
###### Fixed
|
|
28
36
|
- Minor bugs
|
|
29
37
|
|
|
30
38
|
#### 1.0.1 - 2016-02-09
|
|
31
39
|
###### Added
|
|
32
40
|
- Some more tests
|
|
41
|
+
|
|
33
42
|
###### Fixed
|
|
34
43
|
- Improvements on syllables regex
|
|
35
44
|
|
data/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
[](https://travis-ci.org/codepr/lingua-it-readability)
|
|
2
|
+
[](https://badge.fury.io/rb/lingua-it-readability)
|
|
2
3
|
|
|
3
4
|
# Lingua::It::Readability
|
|
4
5
|
|
|
@@ -145,7 +145,8 @@ module Lingua
|
|
|
145
145
|
# A nicely formatted report on the sample, showing most the useful
|
|
146
146
|
# stats
|
|
147
147
|
def report
|
|
148
|
-
sprintf "
|
|
148
|
+
sprintf "Sentence delimiters %s \n" <<
|
|
149
|
+
"Number of paragraphs %d \n" <<
|
|
149
150
|
"Number of sentences %d \n" <<
|
|
150
151
|
"Number of words %d \n" <<
|
|
151
152
|
"Number of characters %d \n\n" <<
|
|
@@ -153,9 +154,9 @@ module Lingua
|
|
|
153
154
|
"Average syllables per word %.2f \n\n" <<
|
|
154
155
|
"Gulpease score %2.2f \n" <<
|
|
155
156
|
"Flesch score %2.2f \n",
|
|
156
|
-
num_paragraphs, num_sentences,
|
|
157
|
-
|
|
158
|
-
flesch
|
|
157
|
+
sentence.delim_regex.gsub(/\\/,''), num_paragraphs, num_sentences,
|
|
158
|
+
num_words, num_characters, words_per_sentence,
|
|
159
|
+
syllables_per_word, gulpease, flesch
|
|
159
160
|
end
|
|
160
161
|
|
|
161
162
|
private
|