Skip to main content
The Rime API authenticates every request with a bearer token in the Authorization header: Authorization: Bearer YOUR_API_KEY. See API authentication for how to create a key.

Overview

This endpoint returns the grammar normalizer’s output for an input string. Use it to preview how numbers, phone numbers, dates, and other non-standard words will be spoken, or to debug an unexpected pronunciation. The output matches Coda’s normalization. Mist v3 can group spell() sequences differently.
Defaults to English. Pass the lang field for other languages. The full list is in Languages. For what’s normalized natively, see Text normalization. For values with more than one reading, see Write ambiguous values explicitly.

Example

Send the string as text, and optionally a lang code:
The response includes the normalized string:
Check each non-standard word in the output. Here the phone number keeps its grouping, with 800 read as “eight hundred”, and the date reads month first. If a reading is wrong for your context, write the value the way it should be spoken. Write ambiguous values explicitly explains how. To normalize text in a non-English language, pass a language code:

Variable parameters

string
required
The string you’d like to normalize, up to 10,000 characters. Numbers, phone numbers, and other non-standard words will be expanded into their spoken form.
string
Language code (for example, en, es, fr, de, and additional languages) selecting the normalization rules. Defaults to English when omitted. language is accepted as an alias. If you send both, lang is used.