Skip to content

arozx/flesch_kincaid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flesch Kincaid

Prerequisites

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

How it works

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.

Example

  • (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'