# Synonyms for Form Entities

**URL:** https://forum.rasa.com/t/synonyms-for-form-entities/22653
**Category:** Rasa Open Source
**Created:** [December 19, 2019, 4:23pm UTC](https://forum.rasa.com/t/synonyms-for-form-entities/22653 "2019-12-19T16:23:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ttlekich](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ttlekich/32/6334_2.png) [@ttlekich](https://forum.rasa.com/u/ttlekich)
#### Post date: [December 19, 2019, 4:23pm UTC](https://forum.rasa.com/t/synonyms-for-form-entities/22653/1 "2019-12-19T16:23:26Z")

</div>

I am diving into the forms/slot filling feature of rasa, and I am wondering how one can use synonyms within the filled slots.

In the rasa form example, “cuisine” is a slot entity (maybe I shouldn’t call this an entity? I am not sure):

```
cuisine:
  type: unfeaturized
  auto_fill: false

```

However, the inputs by the user are checked in the form action to a list of values:

```
@staticmethod
def cuisine_db() -> List[Text]:
"""Database of supported cuisines"""
    return [
        "caribbean",
        "chinese",
        "french",
        "greek",
        "indian",
        "italian",
        "mexican",
    ]

```

Is there a way that we can specify synonyms for the allowed values, and those synonyms would be mapped back to the accepted value. For example, if a user said “france” instead of “french”, the rasa form example as is would not allow “france” as a value. I am wondering if we can use the synonym feature to map france to french for this slot filling example. Thank you!

---

<div class="post-metadata">

### Author: ![fuih](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fuih](https://forum.rasa.com/u/fuih)
#### Post date: [December 20, 2019, 1:58am UTC](https://forum.rasa.com/t/synonyms-for-form-entities/22653/2 "2019-12-20T01:58:37Z")

</div>

Hello @ttlekich,

Rasa offers a function of defining synonyms to your entity. Any synonym detected will be assign the specified value. Something like this:

```
# intent:cuisine
- get me some [france](cuisine:french)'s restaurants

```

In this case, if the bot detected “france”, it will assign “french” to the slot cuisine.

Read more about synonyms here: [Training Data Format](https://rasa.com/docs/rasa/nlu/training-data-format/#entity-synonyms)
