Skip to content

A 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.

Notifications You must be signed in to change notification settings

cipherML/MyWordCounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Word Counter

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.

Table of contents

Introduction

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.

Demo (:Run)

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.

Clone

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

Features

  • Total word count
  • Keyword density (number of repeated words)

Run

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)

About

A 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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages