Overview
Automatically fix spelling and grammar errors in your text. This action analyzes your content and returns a corrected version with all spelling and grammar mistakes fixed. The endpoint is POST /api/ult
; the request body sets action: "clean"
.
Parameters
Input text (max 5,000 characters).
Example
curl -X POST https://whetdata.com/api/ult \
-H "x-api-key: whet_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"action": "clean",
"text": "This is a sentance with speling and grammer erors that need to be fixed."
}'
title: “Clean”
openapi: “POST /api/ult”
Overview
The clean
action automatically fixes spelling and grammar errors in your text. It returns both the corrected text and a detailed list of all corrections made.
Use This Action To
- Fix spelling mistakes in product descriptions
- Correct grammar errors in marketing copy
- Clean up user-generated content
- Improve text quality before publishing
Parameters
Text to fix (max 5,000 characters)
Tips
The clean endpoint is perfect for preprocessing user-generated content before
displaying it on your site.
The maximum text length is 5,000 characters. For longer texts, split them into
chunks.
Your Whetdata API key. Get a free key here.
action
enum<string>
default:classification
required
Action type: classification | nudges | clean
Available options:
classification
,
nudges
,
clean
text
string
default:Premium wireless headphones with active noise cancellation, 30-hour battery life, and crystal-clear audio quality.
required
Input text (max 5,000 characters)
Maximum length: 5000
ruleset
enum<string>
default:product_description
Ruleset name (required for classification and nudges)
Available options:
product
,
product_description
,
marketing_copy
,
product_review
,
technical_documentation
,
date_online
Classification threshold (0.0 to 1.0)
Required range: 0 <= x <= 1
Option 1
Option 2
Option 3