Skip to content

Coerce copilot to avoid emdash everywhere#52978

Open
adegeo wants to merge 1 commit intomainfrom
adegeo/copilot
Open

Coerce copilot to avoid emdash everywhere#52978
adegeo wants to merge 1 commit intomainfrom
adegeo/copilot

Conversation

@adegeo
Copy link
Copy Markdown
Contributor

@adegeo adegeo commented Apr 10, 2026

Summary

Copilot used the agent to write some docs and I noticed it was heavily relying on emdash everywhere which doesn't make for good reading. These instructions seemed to have helped it avoid it.


Internal previews

📄 File 🔗 Preview link
.github/agents/docseditor.agent.md Article Writing and Editing Instructions for LLMs

Copilot AI review requested due to automatic review settings April 10, 2026 22:04
@adegeo adegeo requested a review from a team as a code owner April 10, 2026 22:04
@dotnetrepoman dotnetrepoman bot added this to the April 2026 milestone Apr 10, 2026
@adegeo adegeo requested a review from gewarren April 10, 2026 22:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the docs editor agent instructions to reduce overuse of em dashes in generated/edited documentation, aiming for improved readability and consistency with the repo’s writing style guidance.

Changes:

  • Adds guidance to avoid em dashes and related dash characters where possible.
  • Clarifies that hyphens in compound adjectives are acceptable.
  • Allows limited/emphasized use of em dashes mid-sentence.

Comment on lines 231 to +235
- ALWAYS use no spaces around dashes: "Use pipelines—logical groups—to consolidate"
- ALWAYS add blank lines around markdown elements (don't add extra if they exist)
- TRY to avoid emdash and the various alternative dash characters; try to use other punctuation or formatting to achieve the same effect. Choose words over characters when possible
- OK to use compound adjectives with hyphens
- OK to use emdash mid-sentence for a clause or example; use sparingly
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new guidance on em dashes conflicts with the existing mandatory rule immediately above it. You currently say to "ALWAYS use no spaces around dashes" (with an em dash example), then "TRY to avoid" em dashes, then "OK to use" em dashes. Please consolidate/reword so the rules are consistent (for example: avoid em dashes where possible; if you must use an em dash, don’t include spaces around it; hyphens in compound modifiers are fine). Also consider naming the specific dash characters (em dash vs en dash) so the instruction is unambiguous.

Suggested change
- ALWAYS use no spaces around dashes: "Use pipelines—logical groups—to consolidate"
- ALWAYS add blank lines around markdown elements (don't add extra if they exist)
- TRY to avoid emdash and the various alternative dash characters; try to use other punctuation or formatting to achieve the same effect. Choose words over characters when possible
- OK to use compound adjectives with hyphens
- OK to use emdash mid-sentence for a clause or example; use sparingly
- ALWAYS add blank lines around markdown elements (don't add extra if they exist)
- TRY to avoid em dashes (—) where possible; prefer other punctuation, formatting, or clearer wording
- If you must use an em dash (—), use no spaces around it: "Use pipelines—logical groups—to consolidate"
- OK to use hyphens (-) in compound adjectives

Copilot uses AI. Check for mistakes.
Comment on lines +233 to +235
- TRY to avoid emdash and the various alternative dash characters; try to use other punctuation or formatting to achieve the same effect. Choose words over characters when possible
- OK to use compound adjectives with hyphens
- OK to use emdash mid-sentence for a clause or example; use sparingly
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"emdash" should be written as "em dash" (and it may help to include the glyph "—" the first time for clarity).

Suggested change
- TRY to avoid emdash and the various alternative dash characters; try to use other punctuation or formatting to achieve the same effect. Choose words over characters when possible
- OK to use compound adjectives with hyphens
- OK to use emdash mid-sentence for a clause or example; use sparingly
- TRY to avoid em dash and the various alternative dash characters; try to use other punctuation or formatting to achieve the same effect. Choose words over characters when possible
- OK to use compound adjectives with hyphens
- OK to use an em dash (—) mid-sentence for a clause or example; use sparingly

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants