Skip to content

idarkpearl/Readability_checking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Readability_checking

This code provides a simple tool to analyze the readability of a given text input. It calculates the number of letters, words, and sentences in the input, and then determines a readability grade based on the Coleman-Liau index. Input: The program prompts the user to enter a block of text.

Counting Functions:

count_letters: Counts the total number of alphabetic characters. count_words: Counts the total number of words by counting spaces. count_sentences: Counts the number of sentences based on punctuation marks (., !, ?). Readability Calculation: The program computes the readability index using the formula:

index = 0.0588 ร— ๐ฟ โˆ’ 0.296 ร— ๐‘† โˆ’ 15.8 where L is the average number of letters per 100 words, and S is the average number of sentences per 100 words.

Output: The program outputs the grade level of the text, indicating whether it's suitable for grade 1, 16+, or somewhere in between.

About

This code provides a simple tool to analyze the readability of a given text input. It calculates the number of letters, words, and sentences in the input, and then determines a readability grade based on the Coleman-Liau index.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages