textstat icon indicating copy to clipboard operation
textstat copied to clipboard

Argument `interval` in `avg_syllables_per_word`

Open LKirst opened this issue 4 years ago • 1 comments

I'm currently trying to add documentation to all textstat methods (see #178). Can somebody tell me what the purpose of the interval argument is in the avg_syllables_per_word? The only place it is used is in the flesh_reading_ease function, where it is set to 100 if the language is in ['es', 'it'].

LKirst avatar Sep 26 '21 07:09 LKirst

It appears to be an adjustment for the Flesch-Vacca and Fernandez Huerta Readability Formula added in #97.

Flesch = 206.835 - (84.6 * syllables/words) - (1.015 * words/sentences)
Huerta = 206.84 - (0.60 * syllables/words) - (1.02 * words/sentences)

It seems to be a way to adjust the syllable count to bring higher syllable languages into line with English. @lmaczulajtys, sorry for the ping about a 2 year old PR, but do you happen to remember the source for implementing the interval?

alxwrd avatar Sep 27 '21 07:09 alxwrd