amazonka-comprehend-1.6.1: 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 # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

Data DetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

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 # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

Show DetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

Generic DetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

Associated Types

type Rep DetectDominantLanguage :: Type -> Type #

Hashable DetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

ToJSON DetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

AWSRequest DetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

Associated Types

type Rs DetectDominantLanguage :: Type #

ToHeaders DetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

ToPath DetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

ToQuery DetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

NFData DetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

Methods

rnf :: DetectDominantLanguage -> () #

type Rep DetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

type Rep DetectDominantLanguage = D1 (MetaData "DetectDominantLanguage" "Network.AWS.Comprehend.DetectDominantLanguage" "amazonka-comprehend-1.6.1-JmZRhcK5vJN1rBy4HW0MWx" True) (C1 (MetaCons "DetectDominantLanguage'" PrefixI True) (S1 (MetaSel (Just "_ddlText") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

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 # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

Data DetectDominantLanguageResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

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 # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

Show DetectDominantLanguageResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

Generic DetectDominantLanguageResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

Associated Types

type Rep DetectDominantLanguageResponse :: Type -> Type #

NFData DetectDominantLanguageResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

type Rep DetectDominantLanguageResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectDominantLanguage

type Rep DetectDominantLanguageResponse = D1 (MetaData "DetectDominantLanguageResponse" "Network.AWS.Comprehend.DetectDominantLanguage" "amazonka-comprehend-1.6.1-JmZRhcK5vJN1rBy4HW0MWx" False) (C1 (MetaCons "DetectDominantLanguageResponse'" PrefixI True) (S1 (MetaSel (Just "_ddlrsLanguages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DominantLanguage])) :*: S1 (MetaSel (Just "_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.