AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

How to manage multilingual bot with CS? 
 
 

Suppose i want to manage internationalization for the same bot application.

Let say I have a bot that can talk in English and also in French, Italian, etc.
User is able to select the preferred language first time he connect to the application.

How can I manage that on ChatScript?

- A possible way (for complex applications) is to run multiple CS bot instances, each one built for a specific foreign language.
A front end wrapper layer, first time user connect, ask him which language he prefers, afterward user will talk with that bot.

- For very simple bots one could map patterns in multiple languages… very rough I admit


Any smarter ideas?
 

 

 
  [ # 1 ]

If you need separate foreign dictionaries (and typically you do if just for spellcheck), then you have to dedicate an engine instance per language.  For very simple bots that do not care about spelling, etc, they obviously can just be a collection of bots under a single cs instance.

You can use google service to detect initial language.

 

 
  [ # 2 ]

Along with the separate dictionaries, the definitions of numbers are externalized into a LIVEDATA/<lang>/numbers.txt file. This file is only read when the system boots and so there’s only one mapping of words to numbers. Same is true for currencies and month names.

For very simple bots that don’t use those then you might be OK.

 

 
  [ # 3 ]

Note that you can use patternmacros to create language specific rule patterns.

This is what we do - we only have a single code line for the bot, but conditionally compile in different files that define concepts, patternmacros and in a few very special cases language specific outputmacros.

 

 
  login or register to react