The basic word counter where you can simply pass the text file or type paragraph or list of statement and word counter will read the text and find the total words, dict of words and how many word are repeated.
What is Word Counter?
Apart from counting words and characters, this program can help you to improve word choice and will tell you keyword density. To check word count, simply pass your text file or start typing if you want. 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 online.
Input Text:
Here, user need to type the text, paragraph, etc.. This feature will also help you to improve your typing skills.
Words Text file:
Here, user need to pass a text file with words or paragraph.
Run this in your terminal:
HTTPS:
https://github.com/cipherML/MyWordCounter.git
SSH:
git@github.com:cipherML/MyWordCounter.git
Important: Python 3.6 or 3.7 is needed to run the toolbox.
- IDE
Pycharm
- Total word count
- Keyword density (number of repeated words)
NOTE: run following commands in run.py
If you want to improve your typing skills with word counting feature
from WordCounter import input_texts_count
if __name__ == '__main__':
print("<<<<< BASIC WORD COUNTER >>>>> \n")
# For input texts
input_texts_count()Or, if you simply want to pass the text file.
from WordCounter import read_text_file, word_count
if __name__ == '__main__':
print("<<<<< BASIC WORD COUNTER >>>>>")
# if there is a text file
file_path = "sampleTEXT.txt"
# read the text file
file = read_text_file(path=file_path)
print("Paragraph: \n", file)
word_counts = word_count(string=file)
print("Basic_word_counter: ", word_counts)

