libZSservicesZSamazonka-comprehendZSamazonka-comprehend
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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. Each string should contain at least 20 characters and must contain fewer that 5,000 bytes of UTF-8 encoded characters.

Instances

Instances details
Eq DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Show DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Generic DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Associated Types

type Rep DetectDominantLanguage :: Type -> Type #

NFData DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Methods

rnf :: DetectDominantLanguage -> () #

Hashable DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

ToJSON DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

AWSRequest DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Associated Types

type AWSResponse 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

type Rep DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

type Rep DetectDominantLanguage = D1 ('MetaData "DetectDominantLanguage" "Amazonka.Comprehend.DetectDominantLanguage" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "DetectDominantLanguage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))
type AWSResponse DetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

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:

$sel:text:DetectDominantLanguage', detectDominantLanguage_text - A UTF-8 text string. Each string should contain at least 20 characters and must contain fewer that 5,000 bytes of UTF-8 encoded characters.

Request Lenses

detectDominantLanguage_text :: Lens' DetectDominantLanguage Text Source #

A UTF-8 text string. Each string should contain at least 20 characters and must contain fewer that 5,000 bytes of UTF-8 encoded characters.

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
Eq DetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Show DetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Generic DetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectDominantLanguage

Associated Types

type Rep DetectDominantLanguageResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" '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:

$sel:languages: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.