Open sohang3112 opened 1 year ago
I have the same issue and I've mitigated it by creating a new feature which adds '.' to the original text. Not the most elegant solution, I know.
@MarcinKamil84 One issue with adding '.' could be that if a text already has '.' at the end of sentence, then extra '.' could (wrongly) increase sent_count
.
@sohang3112 Totally agreed. It's just a not-so-elegant workaround.
@erinhengel I would like to work on this issue - would you be interested in a Pull Request to fix this bug?
The code
Textatistic('Sunfeast Dark Fantasy Choco Fills, 600g, Original Filled Cookies with Choco Crème\n')
raisesZeroDivisionError
. This is because, inflesch_score
function,vars['sent_count']
is0
at thereturn
statement.