Live data from Hacker News

How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

merriam-webster.com

271–280 of 492 posts

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#271

The only problem with correctly using the Em or En dash is that people will automatically assume the text was written by an LLM -_-

The more people proliferate this, the worse it'll be—frankly, we should be embarrassed that societal literacy and writing style knowledge is so poor that we jump to the "must be written by an LLM" conclusion whenever we see any sort of exotic character usage!

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#272
post #199
post #142

Here's an easy, if not always precise way to remember: * Hyphens connect things, such as compound words: double-decker , cut-and-dried , 212-555-5555 . * EN dashes make a range between things: Boston–San Francisco flight, 10–20 years: both connect not only the endpoints, but define that all the space between is included. (Compare the last usage with the phone number example under Hyphens.) * EM dashes break things, s…

I've always wanted an array or object with range keys like: arr[0–2] = 123; if(arr[1.5555]>122){}

That doesn't seem to be an array at all, if the idea is to check whether a number is within a range. Seems like an interesting data type though, a combination of a range data type and a map/associative array.

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#273

Earlier quoted context omitted.

Until ~10 years ago, I used to type two spaces after a period.

I still do, and I maintain that it’s easier to read text with double spaces after periods.

TeX puts more space after periods/fullstops (which is why you're supposed to do special markup or other measures to mark '.' in the middle of sentences which aren't sentence-enders (e.g. like e.g.)). But it's generally smaller than the equivalent of two manual spaces.

(A nice thing in (La)TeX is that one could follow the "two spaces after a full-stop" rule, which then has the advantage of being an explicit marking for sentence boundaries (which your editor might be able to navigate; Emacs has a convention of assuming two spaces after a sentence-ending '.'), but then the TeX typesetting will take care of making it look right. I lost the habit of actually doing this, for better or worse, except when flycheck/checkdoc/package-linter.el makes me do it for docstrings.)

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#274
post #97

Earlier quoted context omitted.

You don't need a shortcut on Word. You just type two hyphens (--) and Word will convert it to an em dash.

Across the Office suite: Typing yields an em dash. Typing yields an en dash. That this has been true for some 3 or 4 decades makes me doubt all the comments that em dashes are a "tell" of LLM authorship. On the other hand, I guess when we confine this possibility to web content, I can see how people haven't used Office for web authoring lately, and whatever they do use (like web-based content management systems) don'…

> Typing yields an en dash.

More importantly, typing just a single hyphen minus in this constellation triggers the autoreplace, too. (Typing the double hyphen is only necessary without spaces in order to distinguish between an intentional hyphen and an em dash.)

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#275

Earlier quoted context omitted.

More interestingly it is the same highly niche subject from two different websites in two days. HN is...different

This isn't niche, it is the sort of thing every child used to have drilled into them in primary school.

Yeah exactly, used to. It's niche now, and has been for decades.

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#276

Earlier quoted context omitted.

For those who downvoted this - how does a millimeter of difference in the length of a line matter?

Well-meaning can vary if you don't put spaces around your dashes, and a well—meaning writer wants to ease the job of the reader. ıt might simpıy not matter though, a miııimeter here and there, ı suppose.

The difference in dash length really doesn't matter and your example is not the same at all, but it probably made you feel really smart.

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#277
post #72

Earlier quoted context omitted.

It's pretty decent but the fact that I can't type an arbitrary unicode character has been a huge annoyance of mine since I switched from Windows/WSL to Mac. They have shortcuts for Í, Î, and Ï but not for many commonly used characters like arrows

Control+Command+Space or Fn+E or Edit > Emoji & Symbols if you know the character’s name. It’s not very convenient for repeated use, but it gets the job done in a pinch.

Yeah it's not great. Edit isn't always there. Fn+E seems to make the most sense. I've heard about ctrl+cmd+space but commonly forget it. Both of those open the same GUI which combines emojis, stickers, and unicode symbols—preferring the first two categories over the last. To type out a unicode symbol it takes at least three clicks on top of me starting to type in the name of my symbol

sigh

Thanks for the suggestions

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#278

Somewhat off topic, however, I'm thoroughly convinced that there is a very high probability something is AI generated when I see Em dashes. Anyone else noticing this? ChatGPT for example almost always uses them. I'm sure they are more common in academic writing, but its now super common on boards like Reddit.

I've been employing em-dashes extensively since I went on a JD Salinger binge circa 2002. Also, "incidentally", for the same reason. I use "Nb" a lot, from reading a bunch of DFW years ago. Oh, and that very-precise construction he does with "which" all the time, I stole that. Before LLMs, I think em-dashes mostly signaled that you read books and paid attention to details, to the extent they signaled anything.

What is this very precise construction?

Re: How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)

#279

Earlier quoted context omitted.

Throwing my hat in here. The sub millimeter difference in the length of a dash conveys no additional meaning or clarity. It is impossible to argue me out of this position. It's not like you can reliably write these consistently by hand either without going over the top in length to make it extremely obvious.

Here's some examples where the en dash could make things more clear: -5--2°C post-war-pre-digital era See sections 10-O-15-Q Try Our New York-London Flight Connection!

-5 - 2°C
Post reply on HN