API
Readability.ari — Functionari(text::String)::IntReturns the Automated Readability Index (ARI) of text.
Argument
text::String: The text to analyze.
Returns
Int: The ARI score.
Reference
Readability.characters — Functioncharacters(text::String)::IntReturns the number of characters in text.
Readability.characters_per_word — Functioncharacters_per_word(text::String)::NumberReturns the number of characters per word or the average word length in text.
Readability.coleman_liau — Functioncoleman_liau(text::String)::NumberReturns the Coleman-Liau Index of text.
CLI = 0.0588 * L - 0.296 * S - 15.8
L = number of characters per 100 words
S = number of sentences per 100 words
Argument
text::String: The text to analyze.
Returns
Number: The Coleman-Liau Index.
Readability.complex_words — Functioncomplex_words(text::String)::IntReturns the number of complex words (words with 3 or more syllables and not ending in "es", "ed", or "ing") in text.
Readability.dale_chall — Functiondale_chall(text::String)::NumberReturns the Dale-Chall readability score of text.
Readability.difficult_words — Functiondifficult_words(text::String, word_list::String)::IntReturns the number of words that are not in the specified word_list (either "dale-chall" or "spache") in text.
Readability.flesch_kincaid_grade_level — Functionflesch_kincaid_grade_level(text::String)::Float64Returns the Flesch-Kincaid grade level of text.
Readability.flesch_reading_ease_score — Functionflesch_reading_ease_score(text::String)::Float64Returns the Flesch Reading Ease Score of text.
Readability.gunning_fog — Functiongunning_fog(text::String)::NumberReturns the Gunning Fog index of text.
Readability.lines — Functionlines(text::String)::IntReturns the number of lines text.
Readability.paragraphs — Functionparagraphs(text::String)::IntReturns the number of paragraphs in text.
Readability.polysyllabic_words — Functionpolysyllabic_words(text::String)::IntReturns the number of words with 3 or more syllables in text.
Readability.reading_time — Functionreading_time(text::String; wpm::Number=238)::Float64Returns the reading time of text in seconds.
Arguments
text::String: The text to analyze.wpm::Number: The words per minute.
Returns
Float64: The reading time in seconds.
Readability.sentences — Functionsentences(text::String)::IntReturns the number of sentences in text.
Readability.sentences_per_paragraph — Functionsentences_per_paragraph(text::String)::NumberReturns the number of sentences per paragraph or the average paragraph length in text.
Readability.smog — Functionsmog(text::String)::NumberReturns the SMOG Index of text.
Readability.spache — Functionspache(text::String)::NumberReturns the Spache readability score of text.
Readability.speaking_time — Functionspeaking_time(text::String; wpm::Number=183)::Float64Returns the speaking time of text in seconds.
Arguments
text::String: The text to analyze.wpm::Number: The words per minute.
Returns
Float64: The speaking time in seconds.
Readability.syllables — Functionsyllables(text::String)::IntReturns the number of syllables in text.
Readability.syllables_per_word — Functionsyllables_per_word(text::String)::NumberReturns the number of syllables per word or the average word length in text.
Readability.words — Functionwords(text::String)::IntReturns the number of words in text.
Readability.words_per_sentence — Functionwords_per_sentence(text::String)::NumberReturns the number of words per sentence or the sentence length in text.