Skip to content

This repository contains a script for calculating the Flesch Reading Ease Score (https://en.wikipedia.org/wiki/Flesch–Kincaid_readability_tests) of a text. It uses the CMU Pronouncing Dictionary to calculate the number of syllables, words, and sentences in a file.

Notifications You must be signed in to change notification settings

CharlesIhara/Flesch-Reading-Ease-Score-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flesch-Reading-Ease-Score-Calculator

This repository contains a script for calculating the Flesch Reading Ease Score of a text.

It uses the CMU Pronouncing Dictionary to calculate the number of syllables, words, and sentences in a file.

This script was used in a research project at the UC Irvine Department of Obstetrics and Gynecology to score the readability of ChatGPT's responses to patient questions about Pelvic Floor Disorders (PFDs).

The manual_counts.json file contains a dictionary of syllable counts for words that are not in the CMU Pronouncing Dictionary.

The Flesch.txt file contains a sample ChatGPT response that was scored using this script.

About

This repository contains a script for calculating the Flesch Reading Ease Score (https://en.wikipedia.org/wiki/Flesch–Kincaid_readability_tests) of a text. It uses the CMU Pronouncing Dictionary to calculate the number of syllables, words, and sentences in a file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages