bot
bot

Grammar Check

The Improve / sparkle button: check one sentence and explain it.

This endpoint and the correction underline are ONE analysis (correction_core.check_text), rendered twice. Nancy, 2026-09-12: "This is basically the improve button but run on every single message." The button draws improved_text + explanation + tips; the underline draws the same call's items, one span per mistake. Neither can drift from the other, because there is only one prompt and one schema.

The response keys are unchanged from the hand-written version this replaced (improved_text / explanation / corrections / suggestions), so every caller

  • MessageBubble, MessageSparkleCheck, CallChatBox, DailyPopup, the AI voice panel - renders exactly what it rendered before.
post/bot/grammar-check

Headers

authorizationstring nullable

Request body

textstring required
languagestring required
native_languagestring nullable
contextobject[] nullable
is_spokenboolean nullable

Response

Successful Response

{"stackTrail":"paths:/bot/grammar-check:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes