Skip to content

New Problem Suggestion : Readability of text #61

Description

@ashish2199

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions