Aller au contenu
Skillpedia
Rédaction40k · #7188

em-dash

Ce qu’il fait

Cet outil connaît l'histoire et l'usage correct du tiret cadratin. Il veille à utiliser un tiret simple (-) à la place d'un tiret cadratin dans le code, les commentaires ou les fichiers de données, car le tiret cadratin ne convient pas à ces contextes.

Quand l’utiliser

  • ✓Lorsque vous écrivez des commentaires de code.
  • ✓Lorsque vous relisez des fichiers de données.
  • ✓Lorsque vous voulez vous assurer que seuls des tirets simples (-) sont utilisés dans un texte technique.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/github/awesome-copilot/blob/main/skills/em-dash/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Remplace tous les tirets cadratins de ce commentaire de code par des tirets simples : // Utilise un tiret cadratin ici pour une pause.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'outil sait que les tirets cadratins ne doivent pas être utilisés dans le code ou les données. Il remplace ceux qu'il trouve par un tiret simple (-), le caractère approprié dans ces situations.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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:

…

Questions fréquentes

Qu'est-ce qu'un tiret cadratin ?

C'est un signe de ponctuation plus long qu'un tiret simple, utilisé dans les textes littéraires pour marquer une pause ou une insistance.

Pourquoi ne faut-il pas utiliser de tirets cadratins dans le code ?

Les tirets cadratins ne sont pas des caractères standard dans beaucoup de langages de programmation et peuvent provoquer des erreurs. Le tiret simple (-) est le caractère correct dans ces contextes.

Que faire si je trouve un tiret cadratin dans un fichier de données ?

Si le texte est clairement destiné à être lu (par exemple un roman ou un article de presse), vous pouvez garder le tiret cadratin. Sinon, surtout dans un contexte technique, remplacez-le par un tiret simple.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
40k
Position au classement
#7188
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires