Skip to main content

Babel Street Analytics API

Chat Translator

https://analytics.babelstreet.com/rest/v1/transliteration

https://raw.githubusercontent.com/rosette-api/curl-examples/develop/examples/transliteration.curl

Transliteration transliterates Arabic written in Arabizi or Romanized Arabic chat alphabet to native Arabic script and vice versa. Arabizi is a casual version of Arabic written using just the Latin characters on Western keyboards on mobile phones and computers.

To transliterate from native Arabic script to Arabizi, set reversed to true.

Tip

Transliteration is only supported for Arabic, so the language field is ignored and the language is set to Arabic.

Query Parameters

Name

Value

Description

output

rosette

Returns the response in ADM format.

Note

All input parameters, including the text being analyzed and any relevant options, are defined in the request body.

Request

Name

Type

Description

content

string

Text to process

contentUri

string

URI to accessible content

Notice

content and contentUri are mutually exclusive; only one can be specified per call.

Option

Type

Description

Default

reversed

boolean

If true, transliterates from native Arabic script to Arabizi.

false

{
  "content": "string",
  "options": {
    "reversed": false
  }
}

Response

The response is a string containing the transliterated text.

{
  "transliteration":"string"
}

Supported languages

GET /transliteration/supported-languages

Retrieve the languages and associated scripts supported by the Chat Translator.

Language

Code

Arabic

ara

{
  "supportedLanguages": [
    {
      "language": "string",
      "script": "string"
    }
  ]
}