This is a simple command line program written using Gradle and Java 11 which counts words.
This program can be run with the steps below:
- Go into the directory of this project using command line.
- Install the program with
gradlew clean install
- Run the word counter command using
./build/install/WordCounter/bin/WordCounter --help
-m
, --mode
- Word counter to use to count words. Default is ANY
which counts all words whether
or not they exist in a dictionary. You can change mode to ENGLISH
which filters out non-english
words (be aware uses a data source consisting of only 10,000 words).
<textFile>
- Path to the text file to output the word frequency of