Double-click on the words in red and check if the selection corresponds to your expectations.

Selection extended to include whole word

Here is the nine-o'clock news bulletin.
standard hyphen (‐) and neutral vertical apostrophe (')

Here is the nine‑o’clock news bulletin.
non-breaking hyphen (&8209;) and right single quotation mark (’)

A word containing soft hyphens — un­predict­able — which are invisible unless they appear at a line break.

(un­predict­able)



Selection not extended

A double hyphen--which is rare--can be used for a dash, but does not create a compound word.

These books are my kids'.
The possessive ', should be selected here, as it is an integral part of the word. However, this script does not attempt to distinguish between this case and a closing single quote (see example below). This matches the behaviour that is found in all major browsers.

'These are my kids', she said.