cgiffard / TextStatistics.js

Generate information about text including syllable counts and Flesch-Kincaid, Gunning-Fog, Coleman-Liau, SMOG and Automated Readability scores.
MIT License
191 stars 37 forks source link

Fixed bug where replace was used only once #9

Open DGideas opened 9 years ago

DGideas commented 9 years ago

Also added strip apostrophe for words like: I'm You're

DGideas commented 9 years ago

@cgiffard

izhan commented 9 years ago

+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