# Add questions and answers to the brain

**URL:** <https://community.gladysassistant.com/t/ajout-questions-reponses-dans-le-brain/5982>\
**Category:** Développement\
**Tags:** brain\
**Created:** [November 30, 2020, 1:59pm UTC](https://community.gladysassistant.com/t/ajout-questions-reponses-dans-le-brain/5982 "2020-11-30T13:59:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [November 30, 2020, 1:59pm UTC](https://community.gladysassistant.com/t/ajout-questions-reponses-dans-le-brain/5982/1 "2020-11-30T13:59:25Z")

</div>

> [@Tlse-vins](#):
>
> And a dictionary that already includes the gender? (the bedroom, the living room, the kitchen, the garage, the office, etc.) wouldn’t that be easier? Even for other languages?
> 
> On the other hand, how do you handle, for example, the parental bedroom, the «&nbsp;first name&nbsp;» bedroom, the «&nbsp;first name&nbsp;» office?

In my opinion, it’s simpler to manage the «&nbsp;le/la&nbsp;» externally and then inject just the name of the room, precisely to allow «&nbsp;parental bedroom&nbsp;», «&nbsp;thomas bedroom&nbsp;», etc.

For me, you extract only the first word of the room to determine the gender. You split the string on space and take the first element of the array.

- [«&nbsp;bedroom&nbsp;», «&nbsp;parental&nbsp;»]
- [«&nbsp;bedroom&nbsp;», «&nbsp;de&nbsp;», «&nbsp;thomas&nbsp;»]

To do all this, I would encourage you to read the documentation of the NLP library before implementing it. The library we use ([GitHub - axa-group/nlp.js: An NLP library for building bots, with entity extraction, sentiment analysis, automatic language identify, and so more · GitHub](https://github.com/axa-group/nlp.js)) is great, coded by French people, it makes coffee, and I’m sure it already offers tools to do this kind of thing. It would be a shame to reinvent the wheel 🙂

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [January 7, 2021, 11:54am UTC](https://community.gladysassistant.com/t/ajout-questions-reponses-dans-le-brain/5982/2 "2021-01-07T11:54:02Z")

</div>

I just created a separate topic to discuss the changes to be made to the brain (written discussion) with Gladys.

Several things to consider:

- Update of NLP
- Management of masculine and feminine for the rooms in the house (see @pierre-gilles’s message above).
- Management of numbers for time, calculations, games, etc.
- Management of color and intensity for lighting.

I keep putting it back for new members on the forum, I am not a developer.  
@Lokkye offered me his help for the development part.

If you want things that are not there yet, give your ideas.
