Dedash

LilMGenius/paperthin/skills/depth/dedash

作者 LilMGenius7d5dc6235990230e45a24a25c527d81701da5458無授權條款收錄於 2026年10月9日更新於 2026年10月9日

Remove em-dashes and the dashes standing in for them from a user-owned scope, reading each occurrence in context and choosing the punctuation or wording that fits.

僅含說明Writing & Content
AI 產生的概覽

在使用者指定的範圍內移除破折號及其替代符號,並依語法作用逐處選擇替換標點。

功能
此技能會在使用者指定的範圍內找出扮演破折號角色的符號,範圍可以是段落、欄位、檔案、選取範圍或目錄樹。它依語法作用逐處替換,使用逗號、括號、冒號、句號、分號或小幅改寫,並保留連字號、範圍號、負號、程式碼及刻意使用的符號。接著它會重讀修改後的句子,修正節奏與標點問題,並回報檢查範圍、數量、依作用分類的替換,以及判斷存疑之處。
適用情境
當文字中的破折號或類似符號需要刪除或改用其他標點時使用。它適合編輯使用者擁有並明確指定的段落、欄位、檔案、選取範圍或目錄樹。它不用於整批字元替換,也不會改動指定範圍之外的標點。
執行需求
不需要指令碼或特殊工具,僅為說明性技能。它要求使用者明確指定範圍,並在進行編輯時提到以 PYTHONUTF8=1 進行 Unicode 安全編輯。

Remove em-dashes and the dashes standing in for them from the scope the user names, one occurrence at a time, while leaving hyphens, ranges, and deliberate marks alone.

Goal

Replace each em-dash that should not remain with the mark or wording its clause actually needs. Target any dash doing an em-dash's job, whatever its exact character: U+2014 and its longer or repurposed look-alikes all read the same on the page. The user owns the scope: a passage, field, file, selection, or tree. Do not widen it without asking.

Workflow

  1. FIND: Take the exact scope from the user and locate every dash doing an em-dash's job in it, judged by the role it plays in the sentence, not its codepoint: any mark that sets off an aside, an appositive, an abrupt turn, or a missing conjunction. The em-dash (U+2014) is the common one; the horizontal bar (U+2015) and the two- and three-em dashes (U+2E3A, U+2E3B) read the same and count. The en-dash (U+2013) is the boundary case: it counts when it joins clauses where an em-dash would fit, but stays when it spans a range's endpoints, numeric or not (1990–2020, the London–Paris route). A dash doing a non-em job (a hyphen, a minus, a range) stays. Surface anything genuinely ambiguous as a judgment call rather than changing it blindly.
  2. REPLACE per role: Choose per occurrence by grammatical role:
    • Parenthetical aside: commas or parentheses when the dashed material can be lifted out of the sentence.
    • Appositive: a colon or comma when the dashed material renames, defines, or expands the noun before it.
    • Abrupt turn: a full stop, semicolon, or comma when the dash marks a pivot, interruption, or restart.
    • False-conjunction break: rewrite the sentence when the dash stands in for a missing "and", "but", "because", "so", or another real connective.
  3. LEAVE-ALONE: Unless the user explicitly includes them and the context proves them wrong, leave untouched:
    • hyphenated compounds, minus signs, and negative numbers
    • ranges such as 1-10, 1–10, or London–Paris; a range dash is not an em-dash
    • code, diffs, command output, identifiers, serialized data, URLs, paths, anchors, and query strings
    • quoted or clearly deliberate em-dashes in stylized prose; these surface as judgment calls, never as blind mutations
  4. RE-READ: Read every changed sentence in place. Fix awkward rhythm, dangling punctuation, doubled spaces, and connector loss introduced by the replacement. If the sentence now needs wording instead of punctuation, rewrite the smallest clause that solves it.
  5. REPORT: State the scope checked, how many dashes were found and changed, which replacements were used by role, and anything left alone or surfaced as a judgment call.

Rules

  • Never do blanket replacement. The same glyph can require different punctuation in different clauses.
  • Never replace an em-dash with a hyphen as the cleanup.
  • Mutate with edit-safety: edit unicode-safe (PYTHONUTF8=1) and replace each dash per occurrence, never a blanket sweep; if the scope contains no such dash, report a MISS rather than changing nearby punctuation.
  • Preserve the user's voice. This skill removes a mark where requested; it does not flatten style outside the user-owned scope.

Verification

Before finishing, confirm:

  1. The scope stayed exactly user-owned.
  2. Every replacement was selected per occurrence by grammatical role.
  3. Leave-alone cases stayed untouched or were reported as judgment calls.
  4. The report includes counts and any judgment calls.

來源與署名

來源:LilMGenius/paperthin位於skills/depth/dedash提交7d5dc62

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架