amazonka-comprehend-1.6.0: Amazon Comprehend SDK.

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

Network.AWS.Comprehend.DetectDominantLanguage

Contents

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

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.

Instances

Eq DetectDominantLanguage Source # 
Data DetectDominantLanguage Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DetectDominantLanguage -> c DetectDominantLanguage #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DetectDominantLanguage #

toConstr :: DetectDominantLanguage -> Constr #

dataTypeOf :: DetectDominantLanguage -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DetectDominantLanguage) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DetectDominantLanguage) #

gmapT :: (forall b. Data b => b -> b) -> DetectDominantLanguage -> DetectDominantLanguage #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DetectDominantLanguage -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DetectDominantLanguage -> r #

gmapQ :: (forall d. Data d => d -> u) -> DetectDominantLanguage -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DetectDominantLanguage -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DetectDominantLanguage -> m DetectDominantLanguage #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DetectDominantLanguage -> m DetectDominantLanguage #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DetectDominantLanguage -> m DetectDominantLanguage #

Read DetectDominantLanguage Source # 
Show DetectDominantLanguage Source # 
Generic DetectDominantLanguage Source # 
Hashable DetectDominantLanguage Source # 
ToJSON DetectDominantLanguage Source # 
NFData DetectDominantLanguage Source # 

Methods

rnf :: DetectDominantLanguage -> () #

AWSRequest DetectDominantLanguage Source # 
ToHeaders DetectDominantLanguage Source # 
ToPath DetectDominantLanguage Source # 
ToQuery DetectDominantLanguage Source # 
type Rep DetectDominantLanguage Source # 
type Rep DetectDominantLanguage = D1 * (MetaData "DetectDominantLanguage" "Network.AWS.Comprehend.DetectDominantLanguage" "amazonka-comprehend-1.6.0-7ky9kDszQAoCEHl21SoVpv" True) (C1 * (MetaCons "DetectDominantLanguage'" PrefixI True) (S1 * (MetaSel (Just Symbol "_ddlText") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs DetectDominantLanguage Source # 

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.

Instances

Eq DetectDominantLanguageResponse Source # 
Data DetectDominantLanguageResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DetectDominantLanguageResponse -> c DetectDominantLanguageResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DetectDominantLanguageResponse #

toConstr :: DetectDominantLanguageResponse -> Constr #

dataTypeOf :: DetectDominantLanguageResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DetectDominantLanguageResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DetectDominantLanguageResponse) #

gmapT :: (forall b. Data b => b -> b) -> DetectDominantLanguageResponse -> DetectDominantLanguageResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DetectDominantLanguageResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DetectDominantLanguageResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DetectDominantLanguageResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DetectDominantLanguageResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DetectDominantLanguageResponse -> m DetectDominantLanguageResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DetectDominantLanguageResponse -> m DetectDominantLanguageResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DetectDominantLanguageResponse -> m DetectDominantLanguageResponse #

Read DetectDominantLanguageResponse Source # 
Show DetectDominantLanguageResponse Source # 
Generic DetectDominantLanguageResponse Source # 
NFData DetectDominantLanguageResponse Source # 
type Rep DetectDominantLanguageResponse Source # 
type Rep DetectDominantLanguageResponse = D1 * (MetaData "DetectDominantLanguageResponse" "Network.AWS.Comprehend.DetectDominantLanguage" "amazonka-comprehend-1.6.0-7ky9kDszQAoCEHl21SoVpv" False) (C1 * (MetaCons "DetectDominantLanguageResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ddlrsLanguages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [DominantLanguage]))) (S1 * (MetaSel (Just Symbol "_ddlrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

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.