Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.
Synopsis
- data DetectDominantLanguage = DetectDominantLanguage' {}
- newDetectDominantLanguage :: Text -> DetectDominantLanguage
- detectDominantLanguage_text :: Lens' DetectDominantLanguage Text
- data DetectDominantLanguageResponse = DetectDominantLanguageResponse' {
- languages :: Maybe [DominantLanguage]
- httpStatus :: Int
- newDetectDominantLanguageResponse :: Int -> DetectDominantLanguageResponse
- detectDominantLanguageResponse_languages :: Lens' DetectDominantLanguageResponse (Maybe [DominantLanguage])
- detectDominantLanguageResponse_httpStatus :: Lens' DetectDominantLanguageResponse Int
Creating a Request
data DetectDominantLanguage Source #
See: newDetectDominantLanguage
smart constructor.
Instances
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.
DetectDominantLanguageResponse' | |
|
Instances
Eq DetectDominantLanguageResponse Source # | |
Show DetectDominantLanguageResponse Source # | |
Defined in Amazonka.Comprehend.DetectDominantLanguage | |
Generic DetectDominantLanguageResponse Source # | |
NFData DetectDominantLanguageResponse Source # | |
Defined in Amazonka.Comprehend.DetectDominantLanguage rnf :: DetectDominantLanguageResponse -> () # | |
type Rep DetectDominantLanguageResponse Source # | |
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.
detectDominantLanguageResponse_httpStatus :: Lens' DetectDominantLanguageResponse Int Source #
The response's http status code.