Language and translation

What language a text is in, and a translation into one of 109 languages.

Two commands for languages: what language a text is in, and a translation into another one.

01 · /language
/language Acest produs este excelent
  • The language of the text, as its code and its name.
  • Its sentiment: positive, negative or neutral, with a score from -1 to 1. The sentiment is measured on English text.
  • A very short text the language detector cannot place is named by the Opensolr chat model instead.

Also written /lang or /sentiment.

02 · /translate
/translate en-es What is this?
/translate es What is this?
  • Two codes joined by a hyphen, the language of the text first: en-es translates from English into Spanish.
  • Only the language to translate into: es, and the language of the text is recognized.
  • Quotation marks around the whole text are left out.
  • The translation is written as it comes, by the Opensolr chat model, with the good and bad buttons under it.
  • How long: up to 10,000 characters by default, counted on the text alone; you set it between 50 and 20,000 on Limits.

A wrong code answers that it is not a language code, nor two codes joined by a hyphen (en-es), and points to the table below.

03 · The table of language codes

/translate knows 109 languages. Their codes are in the chat itself: the ? button, then Table of language codes under /translate. Each code is listed with the language’s name in English and in the language itself, and the search box finds a language or a code as you type.

The chat answers every question in the visitor’s own language without any command; see Languages.

Commands

The Opensolr Chat Bot Client is open source and MIT licensed. Questions about your Opensolr account, index or plan go to opensolr.com/contact; questions about the client itself belong on GitHub.

Opensolr Chat Bot Documentation