EmDashify — -- → —
The Python library you think you'll never need—until you use it more than the ones you do.
Why?
LLMs made the em dash (—) hard to ignore. Pew Research Center found that em dashes appeared about twice as often in the English-language web text it studied as in 2023. An em dash is not proof of AI authorship; it's ordinary punctuation.
Yet most QWERTY keyboards have a - key, not a dedicated — key. EmDashify turns two easy hyphens into one proper em dash. No AI. Just punctuation.
Quick start
pip install emdashify
emdashify "Hello -- world"
# Hello — world
from emdashify import convert
convert("Hello -- world") # 'Hello — world'
convert("hello--world", compact=True) # 'hello—world'
Word documents (.docx)
New in v0.2.0: convert an entire Word document, including paragraphs, tables, headers and footers, without flattening text formatting. Install the optional Word extra:
pip install "emdashify[word]"
emdashify --file draft.docx --output draft-fixed.docx
emdashify --file draft.docx --check
from emdashify import convert_docx
convert_docx("draft.docx", "draft-fixed.docx")
The original file is never overwritten. Word support is for .docx, not legacy .doc. Review complex documents with tracked changes or advanced Word fields after conversion.
Text and Markdown files
emdashify --file notes.md --diff
emdashify --file notes.md --output notes-fixed.md
emdashify --file notes.md --check
Safe by default: only standalone -- becomes —. Flags (--help), dates, and --- stay unchanged; Markdown code blocks are protected. Use --compact for word--word.
Requires Python 3.10+. For development or publishing, see release instructions.
License
BSD-3-Clause-Attribution. Redistributing EmDashify requires retaining license notices and this acknowledgment:
This product includes software developed by edujbarrios (https://github.com/edujbarrios/EmDashify).
Metadata
Release files for emdashify 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| emdashify-0.2.0.tar.gz | 16.2 kB | With provenance | Details for emdashify-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| emdashify-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for emdashify-0.2.0-py3-none-any.whl |
Total release size: 27.0 kB
Release files / emdashify-0.2.0.tar.gz
| Download URL | emdashify-0.2.0.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2a4589056296c21635c4df29414e05f3b7420c5feaea237f2e95d787b9f72eb
|
|
BLAKE2b-256 checksum How to use checksums |
f98712a6f98f396be0c93771722d4504cc9851ae89494262bb6ccf535498e9d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / emdashify-0.2.0-py3-none-any.whl
| Download URL | emdashify-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e395a1923b751c9129e03a1aa25821431fa4da7e47948fef291704616f3627d
|
|
BLAKE2b-256 checksum How to use checksums |
2b1382f736790c03c342407dc953e4408b3aa726eb9439a9e8c5e90c4c0c7702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for emdashify 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for emdashify-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.