You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Comprehend::Types::DetectSyntaxRequest

  • Object
show all
Defined in:



When passing DetectSyntaxRequest as input to an Aws::Client method, you can use a vanilla Hash:

  text: "CustomerInputString", # required
  language_code: "en", # required, accepts en, es, fr, de, it, pt

Instance Attribute Summary collapse

Instance Attribute Details


The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German (\"de\"), English (\"en\"), Spanish (\"es\"), French (\"fr\"), Italian (\"it\"), or Portuguese (\"pt\").

Possible values:

  • en
  • es
  • fr
  • de
  • it
  • pt


  • (String)

    The language code of the input documents.


A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded characters.


  • (String)

    A UTF-8 string.