News for hackers. Stuff that matters.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by heyjamesknight on Thursday March 27, 2025 @06:09PM (#43498758)
I disagree—LLMs don't use them properly. They always put a space between the words before – and after – the dashed part.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by Freak_NL on Thursday March 27, 2025 @06:20PM (#43498852)
Using spaces is not wrong. Typographically, a hair space or another thinner than usual space is usually used, but in plain text a space is often preferred. Style guides vary of opinion on this, but newspapers often space them. Without a space they end up looking like elongated hyphens joining the words on both sides. That's not their function.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by dragonwriter on Thursday March 27, 2025 @07:02PM (#43499242)
> Using spaces is not wrong.

Its not wrong for en-dashes (and en-dash set open—with space on either side—is generally an alternative to an em-dash set closed.) And its not wrong on the trailing side of an em-dash used in dialogue to show an abrupt stop mid-sentence if the stop is followed by a new sentence. And there's a few other particular uses, but, generally, setting an em-dash open is wrong.

> but newspapers often space them.

I've never seen a newspaper set em-dashes open, but I have seen them use en-dashes set open instead of using em-dashes at all. Given the space premium in print newspapers, em-dashes set open, which would consume enormous horizontal space, would, other concerns aside, be an odd choice.

Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by bluebarbet on Thursday March 27, 2025 @06:51PM (#43499143)
This is US vs British English. You will struggle to find an em dash in any British publication.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by Freak_NL on Thursday March 27, 2025 @07:03PM (#43499254)
My comment was about spaces specifically. The Guardian and the BBC use en-dashes instead of em-dashes, but both do so with spaces.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by CRConrad on Tuesday April 08, 2025 @07:41PM (#43627536)
LLMs do use dashes "properly"; it could just as well be argued that you don't: The very article at the start of this discussion mentions that, while thy don't use spaces, using spaces is a valid alternative.