CodeAbbey / meta

For issues and perhaps some other stuff
0 stars 0 forks source link

New Problem Suggestion : Readability of text #61

Open ashish2199 opened 8 years ago

ashish2199 commented 8 years ago

Hello, I want to suggest a new problem which i found while taking a course on Java Data structures in Coursera.com

Details are as follows:

Suggested Name: Readability of Text. Difficulty level : Medium

Background :

This problem is based on calculating the readability score of a piece of text to determine how easy it is to read it. Flesch reading-ease score

Input :

A paragraph of text. ( 5-10 lines )

Output:

Return the Readability score which is a floating point number.

Tasks needed to solve the problems:

  1. Find number of sentences in the text.
  2. Find total number of words in the text.
  3. Find total number of syllables in the text.

    Details:

Sentence is any line or lines ending with some selected punctuation marks say full stop(.) , question mark(?) and exclamation mark(!) .

Word is any contiguous sequence of one or more alphabetical characters.

Syllables are number of contiguous vowels including y and the last 'e' (in words ending with 'e' ) cannot be counted as a syllable. Rules for syllables

Counting the number of syllables is the main task in the problem which can be modified according to the difficulty level we want to achieve. The syllables can be found effectively using a regex (medium difficulty)

Would love to know what you think about it and what challenges could be encountered in implementing it.

RodionGork commented 8 years ago

Thank you very much, it sounds like a good implementational task... I'll try to solve it myself first :)

By the way in Russian syllables are simpler - each syllable contains exactly one vowel...