Module readability

Source
Expand description

§Readability utilities

Analyze readabilty of prose using modern readability metrics.

Structs§

APOSTROPHE
Apostrophe
DOUBLE
Match double syllable pre- and suffixes
DOUBLE_SYLLABIC_FOUR
Match four-syllable words counted as one, but should be two
DOUBLE_SYLLABIC_ONE
Match syllables counted as one, but should be two
DOUBLE_SYLLABIC_THREE
Match three-syllable words counted as one, but should be two
DOUBLE_SYLLABIC_TWO
Match two-syllable words counted as one, but should be two
IRREGULAR_NOUNS
Nouns with irregular singular/plural forms
IRREGULAR_NOUNS_INVERTED
Nouns with irregular plural/singular forms
NEED_TO_BE_FIXED
Nouns that need to be fixed when counting syllables
NON_ALPHABETIC
Non-alphabetic
PROBLEMATIC_WORDS
Nouns with problematic syllable counts
SINGLE
Match single syllable pre- and suffixes
SINGLE_SYLLABIC_ONE
Match syllables counted as two, but should be one
SINGLE_SYLLABIC_TWO
Match two-syllable words counted as two, but should be one
TRIPLE
Match triple syllabble suffixes
VOWEL
Vowels

Constants§

SAME_SINGULAR_PLURAL
Nouns with the same singular and plural forms

Functions§

automated_readability_index
Automated Readability Index (ARI)
coleman_liau_index
Coleman-Liau Index (CLI)
complex_word_count
Count the number of “complex words” in a given text
flesch_kincaid_grade_level
Flesch-Kincaid Grade Level (FKGL)
flesch_reading_ease_score
Flesch Reading Ease Score (FRES)
gunning_fog_index
Gunning Fog Index (GFI)
letter_count
Count the number of letters in a given text
lix
Lix (abbreviation of Swedish läsbarhetsindex)
long_word_count
Count the number of “long words” in a given text
sentence_count
Count the number of sentences in a given text
singular_form
Get the singular form of a word (e.g. “people” -> “person”)
smog
Simple Measure of Gobbledygook (SMOG)
syllable_count
Count the number of syllables in a given text
tokenize
Break text into tokens
word_count
Count the number of words in a given text
words
Get list of words in a given text