TLP - Programming Maintenance
Week 14 - Calculating the Flesch-Kinkaid Reading Level

Background

One of the most common formulas to calculate the reading level of text is the Flesch-Kinkaid reading level. On the surface it's a very simple formula:

If you don't get bogged down in the details this actually makes a lot of sense. The first set of parenthesis calculates the length of the average sentence. Longer sentences are harder to read and process. The second set of parentheses calculate the number of syllables in the average word. Words with more syllables are harder to read.

 

Sample Texts:

Remember that in order to download these files you may need to right click on the link below and choose "save as"

Task

Create a function called: readingLevel()

This function should: