API

Readability.ariFunction
ari(text::String)::Int

Returns the Automated Readability Index (ARI) of text.

Argument

  • text::String: The text to analyze.

Returns

  • Int: The ARI score.

Reference

source
Readability.coleman_liauFunction
coleman_liau(text::String)::Number

Returns 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.
source
Readability.complex_wordsFunction
complex_words(text::String)::Int

Returns the number of complex words (words with 3 or more syllables and not ending in "es", "ed", or "ing") in text.

source
Readability.difficult_wordsFunction
difficult_words(text::String, word_list::String)::Int

Returns the number of words that are not in the specified word_list (either "dale-chall" or "spache") in text.

source
Readability.reading_timeFunction
reading_time(text::String; wpm::Number=238)::Float64

Returns 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.
source
Readability.speaking_timeFunction
speaking_time(text::String; wpm::Number=183)::Float64

Returns 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.
source