---
title: "Lookup Dictionary Entries"
method: POST
path: "/dictionary/lookup"
---

# Lookup Dictionary Entries

`POST /dictionary/lookup`

Lookup Dictionary Entries

## Query parameters

- `from` string, required
- `to` string, required
- `api-version` string, required

## Headers

- `X-ClientTraceId` string

## Request body

- InputTextItem[]
  - `text` string, required — Text to translate.

## Response `200`

Response for the dictionary lookup API.

- DictionaryLookupItem[]
  - `normalizedSource` string, required — A string giving the normalized form of the source term. For example, if the request is "JOHN", the normalized form will be "john". The content of this field becomes the input to lookup examples.
  - `displaySource` string, required — A string giving the source term in a form best suited for end-user display. For example, if the input is "JOHN", the display form will reflect the usual spelling of the name: "John".
  - `translations` DictionaryTranslation[], required — A list of translations for the source term.
    - `normalizedTarget` string, required — A string giving the normalized form of this term in the target language. This value should be used as input to lookup examples.
    - `displayTarget` string, required — A string giving the term in the target language and in a form best suited for end-user display. Generally, this will only differ from the normalizedTarget in terms of capitalization. For example, a proper noun like "Juan" will have normalizedTarget = "juan" and displayTarget = "Juan".
    - `posTag` string, required — A string associating this term with a part-of-speech tag.
    - `confidence` number, float, required — A value between 0.0 and 1.0 which represents the "confidence" (or perhaps more accurately, "probability in the training data") of that translation pair. The sum of confidence scores for one source word may or may not sum to 1.0.
    - `prefixWord` string, required — A string giving the word to display as a prefix of the translation. Currently, this is the gendered determiner of nouns, in languages that have gendered determiners. For example, the prefix of the Spanish word "mosca" is "la", since "mosca" is a feminine noun in Spanish. This is only dependent on the translation, and not on the source. If there is no prefix, it will be the empty string.
    - `backTranslations` BackTranslation[], required — A list of "back translations" of the target. For example, source words that the target can translate to. The list is guaranteed to contain the source word that was requested (e.g., if the source word being looked up is "fly", then it is guaranteed that "fly" will be in the backTranslations list). However, it is not guaranteed to be in the first position, and often will not be.
      - `normalizedText` string, required — A string giving the normalized form of the source term that is a back-translation of the target. This value should be used as input to lookup examples.
      - `displayText` string, required — A string giving the source term that is a back-translation of the target in a form best suited for end-user display.
      - `numExamples` integer, required — An integer representing the number of examples that are available for this translation pair. Actual examples must be retrieved with a separate call to lookup examples. The number is mostly intended to facilitate display in a UX. For example, a user interface may add a hyperlink to the back-translation if the number of examples is greater than zero and show the back-translation as plain text if there are no examples. Note that the actual number of examples returned by a call to lookup examples may be less than numExamples, because additional filtering may be applied on the fly to remove "bad" examples.
      - `frequencyCount` integer, required — An integer representing the frequency of this translation pair in the data. The main purpose of this field is to provide a user interface with a means to sort back-translations so the most frequent terms are first.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/translation-texttranslation.md) · [All operations](https://skmtc.net/azure/apis/translation-texttranslation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/translation-texttranslation/versions/6316202fc2bb/schema)
