pierredavidbelanger / chatter-bot-api

A Mono/.NET, JAVA, Python and PHP chatter bot API that supports Cleverbot, JabberWacky and Pandorabots.
182 stars 72 forks source link

Change language of reply. #38

Open ghost opened 7 years ago

ghost commented 7 years ago

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?

pierredavidbelanger commented 7 years ago

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

ghost commented 7 years ago

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

pierredavidbelanger commented 7 years ago

@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.