TextModeration

This operation detects the language of input content. It returns the <a href="http://www-01.sil.org/iso639-3/codes.asp">ISO 639-3 code</a> for the predominant language in the submitted text. More than 110 languages are supported.

post/contentmoderator/moderate/v1.0/ProcessText/DetectLanguage

Request

  • Base URL
    {Endpoint}
  • URL
    {Endpoint}/contentmoderator/moderate/v1.0/ProcessText/DetectLanguage
  • Auth
    API key in header Ocp-Apim-Subscription-Key

Headers

Content-Type'text/plain' | 'text/html' | 'text/xml' | 'text/markdown' required

Content type.

Request body text/plain

object required

Response

Detected language result.

DetectedLanguagestring

Detected language.

TrackingIdstring

Tracking ID.

Changes

No recorded changes to this operation across all 11 revisions of this API.