-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.py
23 lines (21 loc) · 1.73 KB
/
sample.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from txtStat import *
if __name__ == '__main__':
custom_text = """Word Counter can do more than just count words and characters. It can improve word choice and
writing style, and, optionally, help you to detect grammar mistakes and plagiarism. To check word count,
simply place your cursor into the box above and start typing. You'll see the number of characters and words
increase or decrease as you type, delete, and edit them. You can also copy and paste text from another program
over into the box above. The Auto-Save feature will make sure you won't lose any changes while editing,
even if you leave the site and come back later. Knowing the word count of a text can be important. For example,
if an author has to write a minimum or maximum amount of words for an article, essay, report, story, book, paper,
you name it. Word Counter will help to make sure its word count reaches a specific requirement or stays within a
certain limit.In addition, Word Counter shows you the top 10 keywords and keyword density of the article you're
writing. This allows you to know which keywords you use how often and at what percentages. This can prevent you
from over-using certain words or word combinations and check for best distribution of keywords in your writing.In
the Details overview you can see the average speaking and reading time for your text, while Reading Level is an
indicator of the education level a person would need in order to understand the words you’re using. Disclaimer: We
strive to make our tools as accurate as possible but we cannot guarantee it will always be so."""
content = txtStat(custom_text)
c = content.get_average_sentence_length()
c = content.get_coleman_liau_index()
# print(c)
content.get_summary()