Language

Overview

You can identify Language of Article in URL / Text using AmplifyReach Text Analysis.

AmplifyReach Platform detects the following language.

Language CodeLanguage Name
enEnglish
jaJapanese
knKannada
koKorean
ltLithuanian
lvLatvian
mkMacedonian
mlMalayalam
mrMarathi
neNepali
nlDutch
noNorwegian
paPanjabi
plPolish
ptPortuguese
roRomanian
ruRussian
skSlovak
slSlovenian
soSomali
sqAlbanian
svSwedish
swSwahili
taTamil
teTelugu
thThai
tlTagalog
trTurkish
ukUkrainian
urUrdu
viVietnamese
Zh-cnChinese

Detecting Language Using Catalyst UI

  • Goto AmplifyReach Dashboard -> Bot Studio -> Left Navigation Sidebar
  • Select Core Services > Text Analysis.
  • Select URL or Text tab to enter the link or text for Text Analysis. 
  • Press Analyze button.
  • Text analysis results will be shown.
  • The Language option in Left Panel shows Language of the article detected by AmplifyReach Catalyst.

For Developers, you can view JSON by clicking </> View JSON on right corner.

Detecting Language Using AmplifyReach Catalyst API

 Tip: Register your account on AmplifyReach and contact us at kick-start@amplifyreach.com to get Developer ID and Access Token.

URL & Objects

The following URLs are available.

URLDescription
PUT /textanalysis/v1/languagesPut URL or Article/Text to identify language of text.
GET /textanalysis/v1/languages/{UID}Identify language of text from URL Article/Text.

PUT /textanalysis/v1/languages

PUT https://apps.amplifyreach.com/textanalysis/v1/languages

Headers:

NameDescription
Content-Typeapplication/json
authTokenYOUR_DEVELOPER_ACCESS_TOKEN
cidYOUR_DEVELOPER_ID

PUT body

{
    "url": "<SAMPLE_URL>"
}
OR{
    "text": "<SAMPLE_TEXT>"
}

cURL-PUT Request for URL Request

curl \
-H “Content-Type: application/json” \
-H “cid:” \
-H “authtoken:” \
-X PUT \
-d ‘{“url”:””}’ \
https://apps.amplifyreach.com/textanalysis/v1/languages

cURL-PUT Request for Text Request

curl \
-H “Content-Type: application/json” \
-H “cid:” \
-H “authtoken:” \
-X PUT \
-d ‘{“text”:””}’ \
https://apps.amplifyreach.com/textanalysis/v1/languages

Put Response

The language put API response JSON structure:

NameTypeDescription
statusStringRequest Status (Reference: Status & Error Codes)
uidStringUID is unique request identifier ID which to get result in Get API.

Example: PUT Response

{   
   "status":"success",   "uid":"4f057e01d88ff7aa82a8610dc651e8fe",        
   "license":"By accessing AmplifyReach or using information generated by AmplifyReachAPI, you are 
   agreeing to be bound by the AmplifyReach Terms of Use."}

GET https://apps.amplifyreach.com/textanalysis/v1/languages/{UID}

Headers:

NameDescription
Content-Typeapplication/json
authTokenYOUR_DEVELOPER_ACCESS_TOKEN
cidYOUR_DEVELOPER_ID

cURL-GET Request for UID Request

curl \
-H “Content-Type: application/json” \
-H “cid:” \
-H “authtoken:” \
-X GET \
https://apps.amplifyreach.com/textanalysis/v1/languages/{UID}

Language Object

The language response JSON structure:

NameTypeDescription
statusStringRequest Status (Reference: Status & Error Codes)
uidStringUID is unique request identifier ID which to get result in Get API.

Example: Language Object

{   
    "status":"success",   
    "language":["English"]
}