Returns the code for the dominant language in the input text and the level of confidence that Amazon Comprehend has in the accuracy of the detection.

interface DominantLanguage {
    LanguageCode?: string;
    Score?: number;
}

Properties

LanguageCode?: string

The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.

Score?: number

The level of confidence that Amazon Comprehend has in the accuracy of the detection.