Detect text language Version 1 (Net)
Action group: Text
Описание
The action specifies the language of the specified text.
- The action can detect 53 languages (listed in the table below).
- The action returns a string with the language that could be defined. The language is written according to the ISO - 639 - 3 standard.
- The text does not include special characters, numbers, spaces.
- If the text contains more than one language - the action will output the language whose percentage is higher in the text.
- If the text contains the same percentage of several languages, the action will output one of these languages, which it considers the most probable.
- There is a possibility that the language of the text is inaccurate. The longer the specified text, the more accurate the result.
- If the text contains other languages (not specified in the table), the action will output one of the available languages that it considers most likely.
- If the text does not contain letters, but only characters, the action will generate an error - "There are no letters in the specified text".
Standart ISO 639-3:
ISO 639-3 | ISO language name |
afr | Afrikaans |
ara | Arabic |
ben | Bengali |
bul | Bulgarian |
ces | Czech |
dan | Danish |
deu | German |
ell | Greek, Modern (1453– |
eng | English |
est | Estonian |
fas | Persian |
fin | Finnish |
fra | French |
guj | Gujarati |
heb | Hebrew |
hin | Hindi |
hrv | Croatian |
hun | Hungarian |
ind | Indonesian |
ita | Italian |
jpn | Japanese |
kan | Kannada |
kor | Korean |
lav | Latvian |
lit | Lithuanian |
mal | Malayalam |
mar | Marathi |
mkd | Macedonian |
nep | Nepali |
nld | Dutch, Flemish |
nor | Norwegian |
pan | Punjabi, Panjabi |
pol | Polish |
por | Portuguese |
ron | Romanian, Moldavian, Moldovan |
rus | Russian |
slk | Slovak |
slv | Slovenian |
som | Somali |
spa | Spanish, Castilian |
sqi | Albanian |
swa | Swahili |
swe | Swedish |
tam | Tamil |
tel | Telugu |
tgl | Tagalog |
tha | Thai |
tur | Turkish |
twi | Twi |
ukr | Ukrainian |
urd | Urdu |
vie | Vietnamese |
zho | Chinese |
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Text | The text to identify its language. | Robin.String | Yes | |
Results | ||||
Result | The language of the provided text. If the text includes multiple languages, the action will prioritize the most probable language. | Robin.String |
Special conditions of use
None.
Example of use
Task 1
Identify the language of the input text - "Привет! Меня зовут Иван!".
Implementation
- Set the " Detect text language" action on the workspace.
- Correctly fill in the parameters: "Text" - specify the text in one of the available languages -"Привет! Меня зовут Иван!".
- Launch the robot.
Result
Action returned the found language in ISO 639-3.
Task 2
Identify the language of the bilingual text on input - " "Hello! My name is Иван!".
Implementation
- Set the "Detect text language" action on the workspace.
- Correctly fill in the parameters: "Text" - specify text using several available languages, but with a high predominance of one of them.
- Launch the robot.
Result
The action returns the found language that is more prevalent in the text.
Task 3
Identify the language of the text in the input - " Sawubona!" (the language is Zulu).
Implementation
- Set the "Detect text language" action on the workspace.
- Correctly fill in the parameters: "Text" - Input text - " Sawubona!" (language - Zulu).
- Launch the robot.
Result
The robot returned an error. The result is "tgl" or another available language with the same characters.
Task 4
Determine the language of the input text - "125? 12-1=11*?;". Result - Error "There are no letters in the specified text."
Implementation
- Set the "Detect text language" action on the workspace.
- Correctly fill in the parameters: "Text" - "125? 12-1=11*?;".
- Launch the robot.
Result
Error "There are missing letters in the specified text."