Romanizator


Access to the service via the API

To access the service «Romanizator» via the API, you should send an AJAX-request (type: POST) to the address https://corpus.by/Romanizator/api.php. With an input array data the following parameters are passed:

  • text — arbitrary input text in Belarusian.
  • romanizationType — romanization type. Available types:
    • geographicRomanization — romanization used for geographical names;
    • passportRomanization — romanization used for names in passport.

Example of AJAX-request:

$.ajax({
   type: “POST”,
   url: “https://corpus.by/Romanizator/api.php”,
   data: {
      “text”: “Шаркаўшчына”,
      “romanizationType”: “geographicRomanization”
   },
   success: function(msg){ },
   error: function() { }
});

The server returns a JSON-array with the following parameters:

  • text — input text.
  • result — resulting romanization.

For example, the following reply will be formed on the above listed AJAX-request:

[
   {
      “text”: “Шаркаўшчына”,
      “result”: “Šarkaŭščyna”
   }
]

 

Links to sources

Service page: https://corpus.by/Romanizator/?lang=en

Калі Вы знайшлі ў тэксце памылку правапісу, калі ласка, выдзеліце гэты тэкст і націсніце Ctrl+Enter.