Skip to content
Discussion options

You must be logged in to vote

Ah, that clears it up. It is counting the closing quote as a word in this specific case.

The algorithm splits the text by (consecutive) white spaces and considers en and em dash as a white space in this context. Anything else is counted. If you have a "word" of pure punctuation, that too counts as a word.

For the record, LibreOffice Writer does the same thing. It was used as a reference for the word counter in novelWriter. Here are a few examples:

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@vkbo
Comment options

vkbo Jan 7, 2026
Maintainer

@AdrianSingfield
Comment options

@vkbo
Comment options

vkbo Jan 7, 2026
Maintainer

Answer selected by AdrianSingfield
@vkbo
Comment options

vkbo Jan 7, 2026
Maintainer

@AdrianSingfield
Comment options

@vkbo
Comment options

vkbo Jan 7, 2026
Maintainer

@vkbo
Comment options

vkbo Jan 7, 2026
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants