TextStatistics.js
TextStatistics.js copied to clipboard
Fixed bug where replace was used only once
Also added strip apostrophe for words like: I'm You're
@cgiffard
+1
I've encountered weird bugs due to this issue — some strings have different scores depending on punctuation.
for instance:
this.fleschKincaidReadingEase("hello!") => 121.2
this.fleschKincaidReadingEase("hello!!!") => 79.6