Created attachment 77089 [details]
There are 5 words here, but LibreOffice counts 6
Word count gives the wrong result if there are any dashes ("-") in the text. It counts them as words if they're "independent" - i.e., not if they're joining two words.
Hi, thank you for submitting a bug report. This bug is related to Bug 38983 : Word counts incorrectly with dashes and other separators. It seems that the algorithm LibreOffice uses to determine word count does so by seeing the spaces in between words. That's why
There are five-words here
There are five- words here
There are five -words here
... all result in a word count of 5, but
There are five - words here
... results in a word count of 6.
What you can do, as a user in the other bug report mentioned, is go to
Sorry, I cut off my last comment.
The workaround for the incorrect word count is go to Tools -> Options -> LibreOffice Writer -> General, and in the Word Count, additional separators box, add the "-" character. After you click OK, and run the word count again, it counts 5 words.
Edit to my previous comment: word count on "There are five-words here" is 4 words.
I will mark this as an enhancement request to have "-" character as default.
Version: 18.104.22.168 (Build ID: 7e5467ff8f30d821f4fbf69cb2769163eb64c2c)
Platform: Ubuntu Linux 12.04 LTS x64