enter image description here : example of extension in action
I found a solution which works for me now. It's a browser extension "Text Select .click"
On some online text editors the extension might stumble but I believe it's improving.
I like it selects words no matter how many and where the hyphens are located ( --word-example-dash : this will be selected on double-click too )
It's works on Chrome and Firefox. Links to their browser store are on its website www.textselect.click