Bug: detecting special symbols as a word
Hello there, thank you for the great library! I tried testing it on a sentences like these
chinese1 : [`你好吗? ✨😊`, 3],
chinese2 : [`你好吗?!~`, 3],
but both are returning 4 words instead of the expected 3.
Hello, any update on this? It is also counting dashes and em dashes as words as well when they should be treated as spaces.
@vonWolfehaus examples would be great!
@vonWolfehaus examples would be great!
It is counting this string as 10 words but it is actually only 8. It incorrectly counts the dashed word ("some—words") as one word as well, and counts the em dashes as words themselves when separated by spaces.
You can see a live example here. You can also select words and the word count at the bottom will display the selected word count too so you can see what it is counting.