---
title: "Highlight Words"
method: POST
path: "/pronunciations/highlight"
---

# Highlight Words

`POST /pronunciations/highlight`

## Request

- Base URL: `https://backend.praktiki.io` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.praktiki.io/pronunciations/highlight`
- Auth: none declared

Find words in the provided text that exist in the pronunciation dictionary.

This endpoint checks which words from the input text are present in the
pronunciation dictionary (either in Redis cache or Firestore).

Args:
    request: HighlightWordsRequest with text and locale
    
Returns:
    HighlightWordsResponse with list of words that exist in dictionary

## Request body

- HighlightWordsRequest
  - `text` string, required
  - `locale` string

## Response `200`

Successful Response

- HighlightWordsResponse
  - `words` string[], required
  - `locale` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/praktiki/apis/praktiki-api.md) - [All operations](https://skmtc.dev/praktiki/apis/praktiki-api/llms.txt) - [OpenAPI document](https://skmtc.dev/praktiki/apis/praktiki-api/revisions/3428f9e0a922?raw)
