chatter-bot-api icon indicating copy to clipboard operation
chatter-bot-api copied to clipboard

Change language of reply.

Open ghost opened this issue 8 years ago • 3 comments

ChatterBotFactory factory = new ChatterBotFactory(); ChatterBot bot1 = factory.create(ChatterBotType.CLEVERBOT); ChatterBotSession bot1session = bot1.createSession(new Locale.Builder().setLanguage("en").setRegion("US").build());

I'm using it, but the answers are not coming out in English and in other languages.

It is possible to change the language of the answers?

ghost avatar Jan 27 '17 14:01 ghost

I confirm this. Indeed, the Accept-Language header seems not to control Cleverbot language anymore.

pierredavidbelanger avatar Jan 27 '17 16:01 pierredavidbelanger

@pierredavidbelanger There's another API that can do this?

ghost avatar Jan 28 '17 09:01 ghost

@Kurimatzu I guess that if Cleverbot stop supporting languages, I doubt that you will find an other Cleverbot API that supports it (at least based on Accept-Language header).

If you have some time, you can go on the Cleverbot web site, chat with the bot, and inspect request/response to know how they handle language now.

pierredavidbelanger avatar Jan 28 '17 16:01 pierredavidbelanger