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 « first name » bedroom, the « first name » office?
In my opinion, it’s simpler to manage the « le/la » externally and then inject just the name of the room, precisely to allow « parental bedroom », « thomas bedroom », 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.
[« bedroom », « parental »]
[« bedroom », « de », « thomas »]
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 ) 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
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.