Skip to main content

settings/srx

Retrieves the list of all SRX rules with ID, name and language.

These rules serve to decompose the content of a file into sentences or small translation units. Split points are for example the full stops. Rules are generally language specific and can be customized online.

This method returns just the list of available rule sets. Use settings/srx/{id} to retrieve the actual XML-formatted rules.

URL

(GET) /api/settings/srx

PARAMETERS

The method has no parameters.


RESULTS

The result is a JSON array with one element per SRX rule set:

idUnique identifier of rule set.int
loc

Language of rule set. This can be:

  • A language code, such as "en", "fr". Codes are always without regional identifier.
  • "default": This is a language independent rule set. When segmenting in a language the system automatically concatenates the language independent rules and the language dependent rules.


string
nameOptional name for the rule set. Names are used when you add your own rules.string?
descOptional description.bool


To retrieve the actual SRX rules for a rule set, use this method:

settings/srx/{id}


EXAMPLES


CODE
 [
  {
    "id": 1,
    "loc": "ar",
    "name": null,
    "desc": null
  },
  {
    "id": 3,
    "loc": "bg",
    "name": null,
    "desc": null
  },
  {
    "id": 4,
    "loc": "ca",
    "name": null,
    "desc": null
  },
  {
    "id": 6,
    "loc": "da",
    "name": null,
    "desc": null
  },
  {
    "id": 7,
    "loc": "de",
    "name": null,
    "desc": null
  },
  {
    "id": 8,
    "loc": "default",
    "name": null,
    "desc": null
  },
  {
    "id": 10,
    "loc": "en",
    "name": null,
    "desc": null
  },
  {
    "id": 11,
    "loc": "es",
    "name": null,
    "desc": null
  },
  {
    "id": 12,
    "loc": "et",
    "name": null,
    "desc": null
  },
  {
    "id": 13,
    "loc": "fi",
    "name": null,
    "desc": null
  }
]




JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.