본문으로 건너뛰기
Skillpedia
글쓰기40k · #7188

em-dash

하는 일

이 도구는 엠 대시의 역사와 올바른 사용법을 이해합니다. 코드, 주석, 데이터 파일에서는 엠 대시 대신 하이픈(-)을 쓰도록 합니다. 엠 대시는 이런 곳에 적합하지 않기 때문입니다.

사용하는 경우

  • ✓코드 주석을 작성할 때.
  • ✓데이터 파일을 검토할 때.
  • ✓기술적인 글에서 하이픈(-)만 쓰도록 하고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/em-dash/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/em-dash/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 코드 주석에 있는 엠 대시를 모두 하이픈으로 바꿔 주세요: // Use an em dash here for a pause.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 도구는 엠 대시가 코드나 데이터에 적합하지 않다는 것을 압니다. 발견된 엠 대시를 하이픈(-)으로 바꾸는데, 이것이 그런 상황에 맞는 문자입니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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:
    • Literature
    • News
  • 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:

…

자주 묻는 질문

엠 대시란 무엇인가요?

하이픈보다 긴 문장부호로, 문학적인 글에서 쉼이나 강조를 나타낼 때 씁니다.

코드에서 엠 대시를 쓰면 안 되는 이유는 무엇인가요?

엠 대시는 많은 프로그래밍 언어에서 표준 문자가 아니어서 오류를 일으킬 수 있습니다. 이런 맥락에서는 하이픈(-)이 올바른 문자입니다.

데이터 파일에서 엠 대시를 발견하면 어떻게 해야 하나요?

글이 문학이나 뉴스처럼 읽기 위한 것이라면 엠 대시를 그대로 두세요. 그렇지 않다면, 특히 기술적인 맥락에서는 하이픈으로 바꾸세요.

상세 정보

작성자의 원본 설명

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.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7188
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬