janus.metrics.reading#

Functions#

word_count(text)

Calculates word count exactly how readability package does

flesch(target, **kwargs)

Calculate the Flesch Score using textstat.

flesch_grade(target, **kwargs)

Calculate the Flesch Score using textstat.

gunning_fog(target, **kwargs)

Calculate the Gunning-Fog Score using textstat.

dale_chall(target, **kwargs)

Calculate the Dale-Chall Readability Score using textstat.

automated_readability(target, **kwargs)

Calculate the Automated Readability Index using textstat.

coleman_liau(target, **kwargs)

Calculate the Coleman-Liau Index using textstat.

Module Contents#

janus.metrics.reading.word_count(text)#

Calculates word count exactly how readability package does

Parameters:

text – The input string.

Returns:

Word Count

janus.metrics.reading.flesch(target, **kwargs)#

Calculate the Flesch Score using textstat.

Parameters:

target (str) – The target text.

Returns:

The Flesch score.

Return type:

float

janus.metrics.reading.flesch_grade(target, **kwargs)#

Calculate the Flesch Score using textstat.

Parameters:

target (str) – The target text.

Returns:

The Flesch-Kincaid Grade Level score.

Return type:

float

janus.metrics.reading.gunning_fog(target, **kwargs)#

Calculate the Gunning-Fog Score using textstat.

Parameters:

target (str) – The target text.

Returns:

The Gunning-Fog score.

Return type:

float

janus.metrics.reading.dale_chall(target, **kwargs)#

Calculate the Dale-Chall Readability Score using textstat.

Parameters:

target (str) – The target text.

Returns:

The Dale-Chall score.

Return type:

float

janus.metrics.reading.automated_readability(target, **kwargs)#

Calculate the Automated Readability Index using textstat.

Parameters:

target (str) – The target text.

Returns:

The Automated Readability score.

Return type:

float

janus.metrics.reading.coleman_liau(target, **kwargs)#

Calculate the Coleman-Liau Index using textstat.

Parameters:

target (str) – The target text.

Returns:

The Coleman-Liau Index.

Return type:

float