amazonka-comprehend-2.0: Amazon Comprehend SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Comprehend.DetectDominantLanguage

Description

Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.

Synopsis

Creating a Request

data DetectDominantLanguage Source #

See: newDetectDominantLanguage smart constructor.

Constructors

DetectDominantLanguage' 

Fields

  • text :: Sensitive Text

    A UTF-8 text string. The string must contain at least 20 characters. The maximum string size is 100 KB.

Instances

Instances details
ToJSON DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

ToHeaders DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

ToPath DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

ToQuery DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

AWSRequest DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Associated Types

type AWSResponse DetectDominantLanguage #

Generic DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Associated Types

type Rep DetectDominantLanguage :: Type -> Type #

Show DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

NFData DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Methods

rnf :: DetectDominantLanguage -> () #

Eq DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Hashable DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

type AWSResponse DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

type Rep DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

type Rep DetectDominantLanguage = D1 ('MetaData "DetectDominantLanguage" "Amazonka.Comprehend.DetectDominantLanguage" "amazonka-comprehend-2.0-Ko6GCjAQF2RARapSdPn69F" 'False) (C1 ('MetaCons "DetectDominantLanguage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))

newDetectDominantLanguage Source #

Create a value of DetectDominantLanguage with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DetectDominantLanguage, detectDominantLanguage_text - A UTF-8 text string. The string must contain at least 20 characters. The maximum string size is 100 KB.

Request Lenses

detectDominantLanguage_text :: Lens' DetectDominantLanguage Text Source #

A UTF-8 text string. The string must contain at least 20 characters. The maximum string size is 100 KB.

Destructuring the Response

data DetectDominantLanguageResponse Source #

See: newDetectDominantLanguageResponse smart constructor.

Constructors

DetectDominantLanguageResponse' 

Fields

  • languages :: Maybe [DominantLanguage]

    The languages that Amazon Comprehend detected in the input text. For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Associated Types

type Rep DetectDominantLanguageResponse :: Type -> Type #

Show DetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

NFData DetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Eq DetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

type Rep DetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

type Rep DetectDominantLanguageResponse = D1 ('MetaData "DetectDominantLanguageResponse" "Amazonka.Comprehend.DetectDominantLanguage" "amazonka-comprehend-2.0-Ko6GCjAQF2RARapSdPn69F" 'False) (C1 ('MetaCons "DetectDominantLanguageResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "languages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DominantLanguage])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDetectDominantLanguageResponse Source #

Create a value of DetectDominantLanguageResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DetectDominantLanguageResponse, detectDominantLanguageResponse_languages - The languages that Amazon Comprehend detected in the input text. For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.

$sel:httpStatus:DetectDominantLanguageResponse', detectDominantLanguageResponse_httpStatus - The response's http status code.

Response Lenses

detectDominantLanguageResponse_languages :: Lens' DetectDominantLanguageResponse (Maybe [DominantLanguage]) Source #

The languages that Amazon Comprehend detected in the input text. For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.