Two commands for languages: what language a text is in, and a translation into another one.
/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.
/translate en-es What is this? /translate es What is this?
- Two codes joined by a hyphen, the language of the text first:
en-estranslates 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.
/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
- All commands
- /search
- Places and times
- Exchange rates
- VAT
- Language and translation