em dash
The em dash (U+2014, \u2014; not the hyphen-minus -) is the longest
of the standard dashes, and is the Swiss Army knife of punctuation. Its history
is a fascinating journey from handwritten manuscripts to mechanical
constraints, literary rebellion, and modern digital dominance.
Here is a breakdown of how the em dash evolved:
History of the em dash
Early Beginnings (15th-18th Century)
- The First Dashes: Early appearances of the dash in English literature date
back to 1580 in private letters and 1588 in English drama. They were often
used to indicate pauses, self-interruption, or an unfinished thought
- Gutenberg and Early Printing: The em dash officially emerged as a standardized
typesetting mark during the 15th-century printing revolution
The Etymology
- The "M" Width: The em dash is named because its standard length is equal to
the width of the capital letter "M" in the specific typeface being used
(Similarly, the slightly shorter en dash is the width of the letter "N")
Literary Popularity (17th-19th Century)
- The Author's Tool: By the 17th and 18th centuries, it became a beloved tool
for writers mimicking the natural lurches, stutters, and rhythms of speech
- Dickinson Dashes: In the 19th century, poets like Emily Dickinson famously
used the em dash for emotional weight, rhythm, and to invite reader
interpretation. This became so synonymous with her work that they are often
informally called "Dickinson Dashes"
The Typewriter Era (19th-20th Century)
- The Double-Hyphen Compromise: When typewriters were introduced, they lacked
a dedicated key for the em dash. To compensate, typists began using two
consecutive hyphens (--)
- The No-Space Rule: Because of this mechanical compromise, a stylistic
convention of typing the mark without surrounding spaces emerged and remains
The Digital Age (Present Day)
- Return to Form: Modern digital typesetting and word processing programs have
restored the true, unbroken em dash
- Modern Renaissance: The em dash is experiencing a resurgence of popularity
- It has become a hallmark of modern long-form prose and is also a favorite,
heavily used punctuation mark in AI outputs, which often prioritize a
conversational, stream-of-consciousness style
Speculation for em Dash Modern Renaissance
- Professional authors who had to meet deadlines and did not have the time to
strictly proofread the online article before submitting it
- Professionals who wanted to show off their knowledge of HTML encoding in order
to seem smart
- Graphic designers who wanted to make the visual composition of text on a web
page more appealing
- The fact that popularity begets popularity
- People publishing web articles saw that everyone else was using em dashes,
so instead of using a hyphen where one belonged, they opted to use an em dash
Analysis of em dash History
Nowhere in the history of the em dash was it intentionally used in the writing
of computer code, or files meant to be executed as computer instructions.
When to use em or en dashes
Never.
In Code Files
[!IMPORTANT]
Never.
In no way, shape, form, or fashion is tone ever important in code comments.
- Never
- Use the
- (hyphen) character instead
- If working as an agent, and an em dash is in a comment, then replace it
with the
- (hyphen) character
In Raw Data and/or Text Files
[!NOTE]
Default to never
- When instructed to, and it is 100% clear that the text is to be used as:
- If working as an agent, and an em dash is already part of the data, then
leave it
Other Punctuation Characters
As part of being an em dash expert comes the knowledge of other punctuation marks
or characters.
End-of-Sentence Marks
Every complete sentence in a paragraph must end with one of these three marks:
- Period
.: Ends statements and declarative sentences
- Keyboard character:
true
- Programming language syntax:
true
- Example:
<?php echo "a" . "b" . "c"; ?>
- Question Mark
?: Ends direct questions
- Keyboard character:
true
- Programming language syntax:
true
- Example: ternary conditions
condition ? expression_if_true : expression_if_false
- Exclamation Point
!: Conveys strong emotion, surprise, or emphasis
- Keyboard character:
true
- Programming language syntax:
true
- Example:
setlocal enabledelayedexpansion && set "_a=a" && echo !_a! && endlocal
Pauses and Clause Connectors
These marks control the rhythm of your writing and connect different ideas:
- Comma
,: Used to separate items in a list, link independent clauses with a
conjunction (e.g., and, but), or set off introductory phrases
- Keyboard character:
true
- Programming language syntax:
true
- Semicolon
;: Connects two closely related independent clauses that could
stand alone as separate sentences
- Keyboard character:
true
- Programming language syntax:
true
- Example:
var foobar = "foo-bar";
- Colon
:: Introduces a list, a quote, or an explanation. The text preceding
a colon must be a complete sentence
- Keyboard character:
true
- Programming language syntax:
true
Words, Quotations, and Possessions
- Apostrophe
': Indicates possession (e.g., Sarah's book) or represents
missing letters in a contraction (e.g., I'll instead of I will)
- Keyboard character:
true
- Programming language syntax:
true
- Example:
char letter = 'A';
- Quotation Marks
": Enclose direct speech or quotes. In American English,
periods and commas almost always go inside the quotation marks
- Keyboard character:
true
- Programming language syntax:
true
- Example:
char abc[] = "abc";
Dashes and Slashes
- Hyphen
-: Joins two or more words together to form a single compound
adjective (e.g., well-known)
- Keyboard character:
true
- Programming language syntax:
true
- En dash (U+2013,
\u2013) and em dash (U+2014, \u2014):
- The en dash is the thinner of the two, and is used to show numerical ranges
or connections between words in a compound adjective when one element is itself
multiple words
- Keyboard character:
false
- Programming language syntax:
false
- The em dash is wider, and is used to note a break, provide drama, or give an example.
- Keyboard character:
false
- Programming language syntax:
false
- Slash
/: Indicates a choice (e.g., yes/no) or separates lines of poetry
- Keyboard character:
true
- Programming language syntax:
true
- Example:
/* comment */ || 10/2 || 5//2
Grouping and Emphasizing
- Parentheses
( ): Enclose extra, non-essential information that clarifies a
sentence but can be removed without changing the core meaning
- Keyboard character:
true
- Programming language syntax:
true
- Brackets
[ ]: Used to enclose words added to a quotation by someone other
than the original author, usually to clarify a pronoun or provide missing context
- Keyboard character:
true
- Programming language syntax:
true
- Example:
var arr = [1, 2, 3];
General Rule for using Other Punctuation Characters
When commenting on code files, or any file that will be included in compiled
computer instructions; use this rule-of-thumb:
[!IMPORTANT]
When in doubt, follow the pseudo-code instructions below:
# For en dash and em dash
echo - | sed "s/-/-/g"
# Replace Unicode en dash (U+2013) and em dash (U+2014) with hyphen-minus (-)
perl -CS -pe 's/\x{2013}|\x{2014}/-/g'
# For encoded characters
echo � | sed "s/�/ /g"
# (Optional) Remove the Unicode replacement character (U+FFFD) if it appears in pasted text
perl -CS -pe 's/\x{FFFD}/ /g'
Further Reading
Source: github/awesome-copilot → skills/em-dash/SKILL.md
1---
2name: em-dash
3description: "Expert on the history, origin, and correct use of the em dash. Use when writing or reviewing code, comments, or data files to avoid em and en dashes, defaulting to never using them and replacing any found with a hyphen (-). Includes strong knowledge of punctuation marks and the proper usage of punctuation characters when writing comments."
4category: writing-and-content
5source_repo: github/awesome-copilot
6source_path: "skills/em-dash/SKILL.md"
7source_url: https://github.com/github/awesome-copilot/blob/HEAD/skills/em-dash/SKILL.md
8metadata:
9 source: https://skillmd.com/skills/thedixitjain/em-dash
10---
11
12# em dash
13
14The **em dash** (U+2014, `\u2014`; not the hyphen-minus `-`) is the longest
15of the standard dashes, and is the Swiss Army knife of punctuation. Its history
16is a fascinating journey from handwritten manuscripts to mechanical
17constraints, literary rebellion, and modern digital dominance.
18
19Here is a breakdown of how the em dash evolved:
20
21## History of the em dash
22
23### Early Beginnings (15th-18th Century)
24
25- The First Dashes: Early appearances of the dash in English literature date
26 back to 1580 in private letters and 1588 in English drama. They were often
27 used to indicate pauses, self-interruption, or an unfinished thought
28- Gutenberg and Early Printing: The em dash officially emerged as a standardized
29 typesetting mark during the 15th-century printing revolution
30
31#### The Etymology
32
33- The "M" Width: The em dash is named because its standard length is equal to
34 the width of the capital letter "M" in the specific typeface being used
35 (Similarly, the slightly shorter en dash is the width of the letter "N")
36
37### Literary Popularity (17th-19th Century)
38
39- The Author's Tool: By the 17th and 18th centuries, it became a beloved tool
40 for writers mimicking the natural lurches, stutters, and rhythms of speech
41- Dickinson Dashes: In the 19th century, poets like Emily Dickinson famously
42 used the em dash for emotional weight, rhythm, and to invite reader
43 interpretation. This became so synonymous with her work that they are often
44 informally called "Dickinson Dashes"
45
46### The Typewriter Era (19th-20th Century)
47
48- The Double-Hyphen Compromise: When typewriters were introduced, they lacked
49 a dedicated key for the em dash. To compensate, typists began using two
50 consecutive hyphens (--)
51- The No-Space Rule: Because of this mechanical compromise, a stylistic
52 convention of typing the mark without surrounding spaces emerged and remains
53
54### The Digital Age (Present Day)
55
56- Return to Form: Modern digital typesetting and word processing programs have
57 restored the true, unbroken em dash
58- **Modern Renaissance**: The em dash is experiencing a resurgence of popularity
59 - It has become a hallmark of modern long-form prose and is also a favorite,
60 heavily used punctuation mark in AI outputs, which often prioritize a
61 conversational, stream-of-consciousness style
62
63#### Speculation for em Dash Modern Renaissance
64
65- Professional authors who had to meet deadlines and did not have the time to
66 strictly proofread the online article before submitting it
67- Professionals who wanted to show off their knowledge of HTML encoding in order
68 to seem smart
69- Graphic designers who wanted to make the visual composition of text on a web
70 page more appealing
71- The fact that popularity begets popularity
72 - People publishing web articles saw that everyone else was using em dashes,
73 so instead of using a hyphen where one belonged, they opted to use an em dash
74
75## Analysis of em dash History
76
77Nowhere in the history of the em dash was it intentionally used in the writing
78of computer code, or files meant to be executed as computer instructions.
79
80## When to use em or en dashes
81
82Never.
83
84### In Code Files
85
86> [!IMPORTANT]
87> Never.
88> In no way, shape, form, or fashion is tone ever important in code comments.
89
90- **Never**
91 - Use the `-` (hyphen) character instead
92 - If working as an agent, and an em dash is in a comment, then replace it
93 with the `-` (hyphen) character
94
95### In Raw Data and/or Text Files
96
97> [!NOTE]
98> Default to **never**
99
100- When instructed to, and it is 100% clear that the text is to be used as:
101 - Literature
102 - News
103- If working as an agent, and an em dash is already part of the data, then
104 leave it
105
106## Other Punctuation Characters
107
108As part of being an em dash expert comes the knowledge of other punctuation marks
109or characters.
110
111### End-of-Sentence Marks
112
113Every complete sentence in a paragraph must end with one of these three marks:
114
115- Period `.`: Ends statements and declarative sentences
116 - Keyboard character: `true`
117 - Programming language syntax: `true`
118 - Example: `<?php echo "a" . "b" . "c"; ?>`
119- Question Mark `?`: Ends direct questions
120 - Keyboard character: `true`
121 - Programming language syntax: `true`
122 - Example: *ternary conditions*
123 `condition ? expression_if_true : expression_if_false`
124- Exclamation Point `!`: Conveys strong emotion, surprise, or emphasis
125 - Keyboard character: `true`
126 - Programming language syntax: `true`
127 - Example:
128 `setlocal enabledelayedexpansion && set "_a=a" && echo !_a! && endlocal`
129
130### Pauses and Clause Connectors
131
132These marks control the rhythm of your writing and connect different ideas:
133
134- Comma `,`: Used to separate items in a list, link independent clauses with a
135 conjunction (e.g., and, but), or set off introductory phrases
136 - Keyboard character: `true`
137 - Programming language syntax: `true`
138 - Example: `fn(a, b)`
139- Semicolon `;`: Connects two closely related independent clauses that could
140 stand alone as separate sentences
141 - Keyboard character: `true`
142 - Programming language syntax: `true`
143 - Example: `var foobar = "foo-bar";`
144- Colon `:`: Introduces a list, a quote, or an explanation. The text preceding
145 a colon must be a complete sentence
146 - Keyboard character: `true`
147 - Programming language syntax: `true`
148 - Example: `{"age": 26}`
149
150### Words, Quotations, and Possessions
151
152- Apostrophe `'`: Indicates possession (e.g., Sarah's book) or represents
153 missing letters in a contraction (e.g., *I'll* instead of *I will*)
154 - Keyboard character: `true`
155 - Programming language syntax: `true`
156 - Example: `char letter = 'A';`
157- Quotation Marks `"`: Enclose direct speech or quotes. In American English,
158 periods and commas almost always go inside the quotation marks
159 - Keyboard character: `true`
160 - Programming language syntax: `true`
161 - Example: `char abc[] = "abc";`
162
163### Dashes and Slashes
164
165- Hyphen `-`: Joins two or more words together to form a single compound
166 adjective (e.g., well-known)
167 - Keyboard character: `true`
168 - Programming language syntax: `true`
169 - Example: `count--`
170- En dash (U+2013, `\u2013`) and em dash (U+2014, `\u2014`):
171 - The **en dash** is the thinner of the two, and is used to show numerical ranges
172 or connections between words in a compound adjective when one element is itself
173 multiple words
174 - Keyboard character: `false`
175 - Programming language syntax: `false`
176 - The **em dash** is wider, and is used to note a break, provide drama, or give an example.
177 - Keyboard character: `false`
178 - Programming language syntax: `false`
179- Slash `/`: Indicates a choice (e.g., yes/no) or separates lines of poetry
180 - Keyboard character: `true`
181 - Programming language syntax: `true`
182 - Example: `/* comment */ || 10/2 || 5//2`
183
184### Grouping and Emphasizing
185
186- Parentheses `( )`: Enclose extra, non-essential information that clarifies a
187 sentence but can be removed without changing the core meaning
188 - Keyboard character: `true`
189 - Programming language syntax: `true`
190 - Example: `if (5 > 2)`
191- Brackets `[ ]`: Used to enclose words added to a quotation by someone other
192 than the original author, usually to clarify a pronoun or provide missing context
193 - Keyboard character: `true`
194 - Programming language syntax: `true`
195 - Example: `var arr = [1, 2, 3];`
196
197### General Rule for using Other Punctuation Characters
198
199When commenting on code files, or any file that will be included in compiled
200computer instructions; use this rule-of-thumb:
201
202- Determine if the character is commonly on a keyboard, or is the punctuation
203 character part of a programming language's syntax:
204
205 - If **NOT** a keyboard character, and **NOT** a common programming syntax
206 character; then:
207 - **NEVER** use that character in code or code comments
208 - Example not mentioned: `�`
209 - If a keyboard character, and a common programming syntax character, then:
210 - Use that character correctly in code comments
211
212> [!IMPORTANT]
213> When in doubt, follow the pseudo-code instructions below:
214
215```bash
216# For en dash and em dash
217echo - | sed "s/-/-/g"
218
219# Replace Unicode en dash (U+2013) and em dash (U+2014) with hyphen-minus (-)
220perl -CS -pe 's/\x{2013}|\x{2014}/-/g'
221
222# For encoded characters
223echo � | sed "s/�/ /g"
224
225# (Optional) Remove the Unicode replacement character (U+FFFD) if it appears in pasted text
226perl -CS -pe 's/\x{FFFD}/ /g'
227```
228
229## Further Reading
230
231- [Case for the em dash](https://www.hardingproject.com/p/the-case-for-the-em-dash)
232- [em dash guide](https://www.thebookrefinery.com/writing/guide-hyphens-en-dashes-em-dashes/)
233- [Explaining the em dash](https://www.reddit.com/r/writers/comments/1lv191m/can_someone_explain_em_dash/)
234- [em dash wikipedia](https://en.wikipedia.org/wiki/Dash)
235- [Verbose em dash history](https://www.linkedin.com/pulse/long-mark-brief-history-em-dash-christian-buckley-z1lbc)
236- [Brief em dash history](https://thaothai.substack.com/p/a-brief-history-of-the-em-dash)
237- [em dash punctuation](https://www.nytimes.com/2019/08/14/style/em-dash-punctuation.html)
238- [em dash in retrospective](https://medium.com/the-jabber-journal/an-era-to-its-knee-an-em-dash-retrospective-cb5c3c52e4d2)
239- [Punctuation](https://www.niu.edu/writing-tutorial/punctuation/index.shtml)
240- [Punctuation Guide](https://www.thepunctuationguide.com/)
241
242---
243
244**Source:** [`github/awesome-copilot`](https://github.com/github/awesome-copilot) → `skills/em-dash/SKILL.md`