Skip to content

Command-line tool that can analyse a directory of text files and produce a report of the most frequently occurring words in the files.

Notifications You must be signed in to change notification settings

ashleypatricks/most-frequently-occurring-word-analyser-cli-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Most Frequently Occurring Word Analyser CLI Tool

Command-line tool that can analyze a directory of text files and produce a report of the most frequently occurring words in the files.

The tool ignores:

  • Common English words like "the", "and", "of", etc.
  • Words that contain non-alphabetic characters.
  • Words that are less than three characters long.

Install Dependencies

npm install

Run The App

You can place any .text files that you want to analyze within the dist/text-files directory.

In the project directory, you can run:

npm run start:app text-files <number>

Example: npm run start:app text-files 7

The report will be printed in the console in the following format:

Top <number> words in <directory>:

1. <word>: <count>

2. <word>: <count>

3. <word>: <count>

...

About

Command-line tool that can analyse a directory of text files and produce a report of the most frequently occurring words in the files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published