Readability
Objective: The Readability Test measures the readability of a text. It calculates various readability sub metrics to assess the ease of understanding of the text. The following sub metrics are calculated for both the prompt and response texts:
lexicon_count: Number of words in the text.
syllable_count: Number of syllables in the text.
sentence_count: Number of sentences in the text.
character_count: Number of characters in the text.
letter_count: Number of letters in the text.
polysyllable_count: Number of polysyllabic words in the text.
monosyllable_count: Number of monosyllabic words in the text.
difficult_words: Number of difficult words in the text.
automated_readability_index: Automated readability index of the text.
Required Parameters:
Prompt (str): The initial question or statement provided to the model.
Response (str): The model's generated answer or reaction to the prompt.
Interpretation:
A lower score indicates simpler and more understandable text.
The score is based on various sub metrics like syllable count, sentence count, and others, which contribute to the overall readability score.
Result interpretation:
The test result is determined by comparing the readability score against a predefined threshold.
Scores below the threshold indicate that the text is readable, while scores above indicate a lack of readability.
The threshold can be adjusted based on the desired level of strictness in evaluating readability.
Last updated