erinhengel / Textatistic

Calculate readability scores
http://www.erinhengel.com/software/textatistic/
Apache License 2.0
40 stars 9 forks source link

"ValueError: Word to be hyphenated may have at most 100 characters." #3

Closed shahshaswat2 closed 2 years ago

shahshaswat2 commented 2 years ago

I'm getting "ValueError: Word to be hyphenated may have at most 100 characters." I'm trying to get the text score of an Ebook, it works fine when I do for one book, but when I try to run a loop to get the x.dict() (all scores) of all books and to append in a new list for each book, it gives me this error.

Is there a fix around with this? I couldn't find any documentation related to this issue.

erinhengel commented 2 years ago

Unfortunately, I'm pretty sure this is an issue with the dependency PyHyphen—it sounds like it doesn't hyphenate words of 100 characters or more.