Text Processing
Em-dash & Typographic Purifier
Convert AI-typical plain ASCII into proper typography: -- and --- become en/em dashes, straight quotes become curly/smart quotes (locale-aware), ... becomes a single ellipsis …, spaced dashes are tightened, and repeated spaces collapse — while fenced ``` code blocks and `inline` code are left untouched.
Quick start
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/em-dash-and-typographic-purifier' \
-H 'Content-Type: application/json' \
-d '{"text":"The API -- which we launched in 2020 -- was \"revolutionary\" according to users... It'\''s fast, reliable, and \"just works\".","locale":"en","conversions":"all","fixSpacedDash":true,"fixSpaces":true,"preserveCode":true}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
POST https://api.elysiatools.com/en/api/tools/em-dash-and-typographic-purifierParameters
| Name | Type | Required | Description |
|---|---|---|---|
| text | textarea | Yes | — |
| locale | select | No | — |
| conversions | select | No | — |
| fixSpacedDash | checkbox | No | — |
| fixSpaces | checkbox | No | — |
| preserveCode |
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-em-dash-and-typographic-purifier": {
"name": "em-dash-and-typographic-purifier",
"description": "Convert AI-typical plain ASCII into proper typography: -- and --- become en/em dashes, straight quotes become curly/smart quotes (locale-aware), ... becomes a single ellipsis …, spaced dashes are tightened, and repeated spaces collapse — while fenced ``` code blocks and `inline` code are left untouched.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=em-dash-and-typographic-purifier",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "em-dash-and-typographic-purifier",
"arguments": {
"text": "The API -- which we launched in 2020 -- was \"revolutionary\" according to users... It's fast, reliable, and \"just works\".",
"locale": "en",
"conversions": "all",
"fixSpacedDash": true,
"fixSpaces": true,
"preserveCode": true
}
}
}