Closed izhan closed 7 years ago
Fixes incorrect word count.
The current implementation adds a period to the end of any text, which adds an extra word count to any phrase. Taking an example from https://github.com/cgiffard/TextStatistics.js/issues/4 for instance:
var stats = textstatistics("monkey goes yay"); stats.wordCount(); 4
Fixed in #13. Thanks for submitting a PR — sorry I neglected it for so long! :(
Fixes incorrect word count.
The current implementation adds a period to the end of any text, which adds an extra word count to any phrase. Taking an example from https://github.com/cgiffard/TextStatistics.js/issues/4 for instance: