This project requires the package hyphenate
hyphenate can be installed with the folowing command in a terminal (mac / linux) or in a command prompt (windows).
pip install hyphenate
calculation.py calculates the number of; lines, words, and sylables.
preperations.py calculates the Flesch reading ease & Flesch-Kincaid grade level.
To change the file location (default is text) for the tests replace text.txt with the path to your chosen file.
-
(You would replace the example name with your chosen file)
-
(This code you need to change is in preperations.py)
text = r'some_file_name_here_please.something'