intelligent-utilities/improve-typography

Good typography uses smart quotes. Convert quotes, dashes and other marks into their correct typographical symbols

Public
23 runs

Run intelligent-utilities/improve-typography with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
text
string
Input text to enhance typographically
level
None
smart_quotes
Enhancement level
locale
string
en-US
Locale for quotes/dashes preferences

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "string",
  "title": "Output"
}
Example API response
View prediction
('• “Welcome to our ‘amazing’ restaurant”\n'
 '• The meeting is from 2–4 PM\n'
 '• Wait for it with a proper ellipsis…\n'
 '• The equation is 5 × 3 = 15\n'
 '• The board is 8′ × 4″\n'
 '• We’ll be there soon\n'
 '• Come to our 1st annual event\n'
 '• She said “Hello there” to me\n'
 '• You could use a dash — like this\n'
 '• Calculate x² + 3x + 1\n'
 '• Mix ½ cup flour with ¾ cup sugar\n'
 '• Multiply 6 × 7 to get 42\n'
 '• It’s a beautiful day, isn’t it?\n'
 '• The company was founded in the 90s\n'
 '• He scored 1st place in the race\n'
 '• The sign read: DON’T WALK\n'
 '• Temperature range: 70–80°F\n'
 '• She whispered, “I’m not sure…”')