Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Determines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages .
- detectDominantLanguage :: Text -> DetectDominantLanguage
- data DetectDominantLanguage
- ddlText :: Lens' DetectDominantLanguage Text
- detectDominantLanguageResponse :: Int -> DetectDominantLanguageResponse
- data DetectDominantLanguageResponse
- ddlrsLanguages :: Lens' DetectDominantLanguageResponse [DominantLanguage]
- ddlrsResponseStatus :: Lens' DetectDominantLanguageResponse Int
Creating a Request
detectDominantLanguage Source #
Creates a value of DetectDominantLanguage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ddlText
- 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.
data DetectDominantLanguage Source #
See: detectDominantLanguage
smart constructor.
Request Lenses
ddlText :: 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
detectDominantLanguageResponse Source #
Creates a value of DetectDominantLanguageResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ddlrsLanguages
- 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.ddlrsResponseStatus
- -- | The response status code.
data DetectDominantLanguageResponse Source #
See: detectDominantLanguageResponse
smart constructor.
Response Lenses
ddlrsLanguages :: Lens' DetectDominantLanguageResponse [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.
ddlrsResponseStatus :: Lens' DetectDominantLanguageResponse Int Source #
- - | The response status code.