A application calculating the Flesch Index in C++ using simple measures.
The Flesch Index (FI), a numerical measure of the readability of English text. Originally invented for evaluating the difficulty of reading U.S. Army training manuals, it has since become ubiquitous.
Earlier on I said this application used simple measures in the Flesch Index calculation, this was pointed out for several reasons:
- Syllables
- Sentences
- Words
As an native English speaker, these reasons seem very base, except the more I personally looked into them, the more I realized the difficulty of a machine knowing phonemes, sentence break downs, and even words from a sentence.
- CMake >= 3.1
- C++11
Once the repo has been pulled down, follow these steps to compile and run:
cd <RepoLocation>
cd build
cmake ..
make
bin/flesch-index ../data/GettysburgAddress.txt
Line number:
- Moves into the root of the repo so that other command can be relative.
- This sets up and out of program build for the next lines.
- This allows the build file generated to not funk up the repo.
- Calls the
cmake
to on../CMakeLists.txt
to generate build files. - This starts the compile on the generated build structure
- This is an example use of the application with a sample data.