As a developer that writes blog posts I want a tool that helps me to understand better the text I am writing. For that I need a way to know the following:
-
What are the most common words used in the text?
-
How many characters does the text have?
Passing a text through the command line the programa should show the results on the console.
- Count the words in the text.
- Rank the words from most used to less used.
- Show the frequency of each word.
- Indicate the maximum number of words to show. Use the parameter
--max
:analyze Hello, this is an example --max=2
- Don't show infrequent words. Indicate the minimum frequency to show using the
minfreq
parameter (hint use--minfreq=3
).
- Don't show some words using the
noshow
parameter (hint use--noshow=[return constructor readonly class private public]
).