For this assignment, you are to write a program that computes the Flesch Readability Score for a document. The Flesch Readability Score is computed using a formula developed in the early 1940s. It measures the average sentence length in words and the average word length in syllables. Put these two numbers into a formula and get a number between 0 and 100 that shows you the difficulty of a piece of writing.
Here is the algorithm according to the original author, Rudolf Flesch, along with simplifications you should make for this project:
• "Count the words in your piece of writing. Count as single words contractions, hyphenated words, abbreviations, figures, symbols and their combinations." That is not always easy to do accurately, so if you are using the chn utility package, it is sufficient to read tokens and count each as a word.
• "Count the syllables in your piece of writing. Count the syllables in words as they are pronounced. Count abbreviations, figures, symbols and their combinations as one-syllable words." A syllable needs a vowel, so each vowel (a,e,i,o,u,y) or group of vowels counts as a syllable. However, don't count an "e" at the end of a word as a syllable (as in the word "here"). Every word must be pronounced, so there will be at least one syllable even if the rules say there are none.
• "Count the sentences in your piece of writing. Count as a sentence each full unit of speech marked off by a period, colon, semicolon, dash, question mark or exclamation point. Disregard paragraph breaks, colons, semicolons, dashes or initial capitals within a sentence." For this assignment, ignore dashes entirely and just count as a sentence text that ends in a period, colon, semicolon, question mark or exclamation point.
• "Figure the average number of syllables per word. Divide the number of syllables by the number of words."
• "Figure the average number of words per sentence. Divide the number of words by the number of sentences."
• Find the readability score. Use Flesch's formula: "Multiply the average sentence length by 1.015. Multiply the average word length by 84.6. Add the two numbers. Subtract this sum from 206.835. The balance is your readability score."
The readability score is a number, usually between 0 and 100, indicating how difficult the text is to read. Higher numbers indicate easier reading material.
here is an example of the format that should be outputted:
Here is the format of the output using the Gettysburg Address:
Source text file: [login to view URL]
Readability score: 61.0
Educational level: 8th and 9th grade
Syllables: 374
Words: 265
Sentences: 10
I will help with the extra files. I am looking for someone to do this simple project for me for $10 and it needs to be done ASAP.
hello,how are you.i read your bid carefully.
i am java/javafx expert and have full experience for 12 years.
java/javafx is my top skill and passision.
i can provide most quality and high speed.
if you want to success, please contact me.
Then, I will give you good result.
hire me.
Hi,
I am a teaching assistant for 'Analysis and Design of Algorithms and Data Structure' course, so I believe I can help you.
I did related work before, you can check my profile for more details, and if you are interested to work with me, just send me a private message to discuss details.
Regards,
Ahmed
Hi! I can do your stuff in 2 days. I am a university student and have hands on Java programming.
Also known C,C++, and other languages mention on my profile.
I have been working for around 4.5 years in Java with REST. I have also experience in Multithreading, Amazon Web Services, MySQL, Mongo, Spring, Hibernate.
Hi,
I am very much interested in your project. I will write a program that will compute the Flesch Readability Score for a given document. The program will definitely be written as per the algorithm and the output will be similar as per your description.
I am have 9 years of experience in working with JAVA and J2EE and can definitely complete the job in the said time. I am new here and want to take the challenges and fulfill my clients expectations.
Hope to hear from you soon. Would love to work with you on this project.
Thank You,
Sudip Das