Sentence Case Converter - Truecaser

FREEMIUM
Por Matt11 | Actualizada 5일 전 | Tools
Popularidad

8.8 / 10

Latencia

142ms

Nivel de servicio

100%

Health Check

N/A

LÉAME

API Documentation

The endpoint Sentence Case needs to be called with a POST request containing a JSON object with the following structure:

{
  "text": "snow, ice expected in northern plains, great lakes on cold side of severe threat\\noneweb turns to spacex for help after russia refused to launch company’s satellites",
  "language": "en",
  "tagSpeciesNames": 0,
  "useStraightQuotes": 0
}

Only the parameter text is mandatory. language, tagSpeciesNames and useStraightQuotes are all optional.

The conversion result is returned as a JSON object with the following structure:

{
  "result": "Snow, ice expected in Northern Plains, Great Lakes on cold side of severe threat\\nOneWeb turns to SpaceX for help after Russia refused to launch company’s satellites"
}

In case the language parameter is set to auto (=autodetect),

{
  "text": "new york è una città marittima, ma il suo clima ha spiccate caratteristiche di continentalità, analogamente al resto della fascia costiera atlantica degli stati uniti nordorientali.", 
  "language": "auto"
}

then the returned JSON object will also contain the language that was detected and the language that was used for the conversion:

{
  "result": "New York è una città marittima, ma il suo clima ha spiccate caratteristiche di continentalità, analogamente al resto della fascia costiera atlantica degli Stati Uniti nordorientali.",
  "languageDetected": "it",
  "languageUsed": "it"
}

(If the detected language is one of the languages that is supported by the converter, then that language will also be used for the conversion. If not, English will be used as a fallback language.)

The following parameters are supported:

text

This parameter is mandatory and contains the text to be converted. Newlines must be escaped: \\n.

language

This optional parameter specifies the language of the text. Supported values are:

  • en (default): English
  • de: German
  • es: Spanish
  • fr: French
  • id: Indonesian
  • it: Italian
  • nl: Dutch
  • pl: Polish
  • pt: Portuguese
  • sv: Swedish
  • tr: Turkish
  • auto: Autodetect the language. In case the language cannot be detected or the detected language is none of the supported languages above, English is used.

useStraightQuotes

This optional parameter specifies if quotes should be output as straight quotes (also known as “dumb” quotes or typewriter quotes) or curly quotes (also known as “smart” quotes or typographer’s quotes). This affects single and double quotation marks, apostrophes, and single and double primes. Possible values are:

  • 0 / false (default): use curly quotes
  • 1 / true: use straight quotes

tagSpeciesNames

This optional parameter specifies if scientific species names should be tagged. The possible values are:

  • 0 (default): species names are not tagged (but they are still correctly capitalized)
  • 1: the complete species name is tagged using <ScientificName>
  • 2: the parts of the species name that are customarily written in italics are tagged using <em>

NB: While the sentence case converter supports millions of species names, it will not be able to detect every existing species name.

Seguidores: 0
Recursos:
Sitio web del producto
Creador de la API:
Rapid account: Matt 11
Matt11
Matt11
Inicie sesión para calificar la API
Valoración: 5 - Votos: 1