forked from namantiwari2002/TextBoat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtext_stat.py
More file actions
30 lines (26 loc) · 1.18 KB
/
text_stat.py
File metadata and controls
30 lines (26 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import sys
import textstat
test_data = sys.argv[1]
ans = []
# ans.append(textstat.flesch_reading_ease(test_data))
# ans.append(textstat.flesch_kincaid_grade(test_data))
# ans.append(textstat.smog_index(test_data))
# ans.append(textstat.coleman_liau_index(test_data))
ans.append(textstat.automated_readability_index(test_data))
ans.append(textstat.reading_time(test_data, ms_per_char=14.69))
ans.append(textstat.flesch_reading_ease(test_data))
# ans.append(textstat.dale_chall_readability_score(test_data))
# ans.append(textstat.difficult_words(test_data))
# ans.append(textstat.linsear_write_formula(test_data))
# ans.append(textstat.gunning_fog(test_data))
# ans.append(textstat.text_standard(test_data))
# ans.append(textstat.fernandez_huerta(test_data))
# ans.append(textstat.szigriszt_pazos(test_data))
# ans.append(textstat.gutierrez_polini(test_data))
# ans.append(textstat.crawford(test_data))
# ans.append(textstat.gulpease_index(test_data))
# ans.append(textstat.osman(test_data))
ans.append(textstat.sentence_count(test_data))
ans.append(textstat.char_count(test_data, ignore_spaces=True))
ans.append(textstat.letter_count(test_data, ignore_spaces=True))
print(ans)