# SynonymType

- [YAML representation](https://developers.google.com/assistant/actionssdk/reference/rest/Shared.Types/SynonymType#SCHEMA_REPRESENTATION)
- [Entity](https://developers.google.com/assistant/actionssdk/reference/rest/Shared.Types/SynonymType#Entity)
  - [YAML representation](https://developers.google.com/assistant/actionssdk/reference/rest/Shared.Types/SynonymType#Entity.SCHEMA_REPRESENTATION)

Type that matches text by set of synonyms.

| YAML representation ||
|---|---|
| matchType: enum (`https://developers.google.com/assistant/actionssdk/reference/rest/Shared.Types/MatchType`) acceptUnknownValues: boolean entities: string: object (https://developers.google.com/assistant/actionssdk/reference/rest/Shared.Types/SynonymType#Entity) |

| Fields ||
|---|---|
| `matchType` | ``enum (`https://developers.google.com/assistant/actionssdk/reference/rest/Shared.Types/MatchType`)`` Optional. The match type for the synonym. |
| `acceptUnknownValues` | `boolean` Optional. When set to true this will match unknown words or phrases based on surrounding input and intent training data, such as items that might be added to a grocery list. |
| `entities` | ``map (key: string, value: object (`https://developers.google.com/assistant/actionssdk/reference/rest/Shared.Types/SynonymType#Entity`))`` Required. Named map of synonym entities. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

## Entity

Represents a synonym entity field that contains the details of a single entry inside the type.

| YAML representation ||
|---|---|
| ``` display: object (`https://developers.google.com/assistant/actionssdk/reference/rest/Shared.Types/EntityDisplay`) synonyms: - string ``` |

| Fields ||
|---|---|
| `display` | ``object (`https://developers.google.com/assistant/actionssdk/reference/rest/Shared.Types/EntityDisplay`)`` Optional. The entity display details. |
| `synonyms[]` | `string` Optional. The list of synonyms for the entity. **This field is localizable.** |