Word count wrong in Mac desktop app

Steps to reproduce

I enabled word count and started typing. It produces unreliable results, usually a lot more words (compared to wc or online tools).

Expected result

As I type, the word count increases gradually word by word.

Actual result

As I type, the word count increases almost by a hunder with every word.

Environment

OSX Desktop app v. 1.3.5. Custom CSS
It seems to be working in my Chrome browser.


Additional information

Anything else you think would help our investigation, like a screenshot or a log file? You can drag and drop screenshots to this box. For large amount of text, try putting them into something like Pastebin.

Additional comments

I have a screen recording of this issue, but itā€™s too big to upload here.

Can you give us a few screenshots of what your text looks like and how it compares to wc and others? Iā€™m sure our algorithm could be tweaked for better accuracy.


Here we go. Itā€™s only a few letters counted as a few hundred words :slight_smile:

Hmm thatā€™s weirdā€¦ Seems like itā€™s counting something from the rest of the document. I think I have an idea where this issue is coming from.

I will fix this in the next release.

awesome, thanks :rocket: