There is a problem with the Word Usage Count tool

28 views
Skip to first unread message

mbed...@msn.com

unread,
Dec 11, 2025, 2:40:12 PM (3 days ago) Dec 11
to yWriter
There is a problem with the Word Usage Count tool in that it doesn't handle punctuation very well. The biggest offender is the Em Dash which doesn't usually have a space before or after it. This causes the words to be compressed into one word. Instead of "Harper--my" being broken up into the two words "Harper" and "my" it compresses them into "Harpermy". Not only does this look like a problem with spelling but it also changes the word count. I have learned that in Europe apparently adding a space before and after is quite acceptable but apparently in the US this is a definite No No! Regardless, the Em Dash should be considered and dealt with appropriately. I would also ask that other punctuation be looked at more critically such as the apostrophe so that it is included as part of the word so that "doesn't" and "doesnt" are seen as separate instances.
Thanks

Simon Haynes

unread,
Dec 11, 2025, 9:08:19 PM (2 days ago) Dec 11
to ywr...@googlegroups.com
If there's certain punctuation which is not being recognised (e.g. curly quotes, M-dashes) you should be able to paste them into the 'punctuation' list in the scene editor settings.

Bear in mind M-dashes aren't supported in the editor window though - there's a Microsoft bug with the rich text control which will save them as N-dashes instead, so the solution is to type two minus signs which the program will convert into a proper M-dash on export.


On Fri, 12 Dec 2025 at 03:40, mbed...@msn.com <mbed...@msn.com> wrote:
There is a problem with the Word Usage Count tool in that it doesn't handle punctuation very well. The biggest offender is the Em Dash which doesn't usually have a space before or after it. This causes the words to be compressed into one word. Instead of "Harper--my" being broken up into the two words "Harper" and "my" it compresses them into "Harpermy". Not only does this look like a problem with spelling but it also changes the word count. I have learned that in Europe apparently adding a space before and after is quite acceptable but apparently in the US this is a definite No No! Regardless, the Em Dash should be considered and dealt with appropriately. I would also ask that other punctuation be looked at more critically such as the apostrophe so that it is included as part of the word so that "doesn't" and "doesnt" are seen as separate instances.
Thanks

--
You received this message because you are subscribed to the Google Groups "yWriter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ywriter+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ywriter/e7af591a-d8af-4182-a050-d548a88cce7an%40googlegroups.com.


--

--
Visit Spacejock Software, the home of yWriter, FCharts and more
Visit spacejock.com.au for my articles on writing and publishing novels.

mbed...@msn.com

unread,
Dec 12, 2025, 1:30:30 PM (2 days ago) Dec 12
to yWriter
It's not that I have a punctuation mark that isn't recognized but rather how the punctuation marks are being treated by the Show Word Usage Count tool. I entered Father-in-law and it registered that just fine meaning that it understood that father and in and law were three separate words rather than one single word. However, when I used an M-Dash rather than just a single hyphen it removed the M-Dash and collapsed all three words into one. I'm not saying anyone would use an M-Dash in that or similar phrases, but M-Dashes are used. Additionally, the single quote ism not recognized correctly meaning that it seems to be just removed. This leaves words such as "doesn't" to read as "doesnt" which looks like a misspelled word. A misspelling that doesn't really exist.
I've looked at possible solutions and they seem to be straight forward.

Andrew Applegarth

unread,
Dec 12, 2025, 2:17:04 PM (2 days ago) Dec 12
to yWriter
Father-in-law is one word.  All hyphenated words are considered a single word.  Creating a single word is the whole point of connecting the individual component words with hyphens.

yWriter used to count them correctly as one word.  I wonder if that broke when I asked for the ability to add hyphenated words to the custom dictionary?

- Andrew

Simon Haynes

unread,
Dec 12, 2025, 8:28:15 PM (2 days ago) Dec 12
to ywr...@googlegroups.com
I see the issue now, I thought you were talking about word counts in general.

Will take a look.

Simon Haynes

unread,
Dec 12, 2025, 8:32:24 PM (2 days ago) Dec 12
to ywr...@googlegroups.com

I wrote the code which breaks apart all the words 19 years ago, and I've not touched it since.  It doesn't have an entry for the m-dash, but I'll add one for the next alpha.

Reply all
Reply to author
Forward
0 new messages