Stay organized with collections
Save and categorize content based on your preferences.
Analyzes the syntax of the text and provides sentence boundaries and
tokenization along with part of speech tags, dependency trees, and other
properties.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Method: googleapis.language.v1.documents.analyzeSyntax\n\nAnalyzes the syntax of the text and provides sentence boundaries and\ntokenization along with part of speech tags, dependency trees, and other\nproperties.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`AnalyzeSyntaxResponse`](/workflows/docs/reference/googleapis/language/v1/Overview#AnalyzeSyntaxResponse).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/natural-language/docs/reference/rest/v1/documents/analyzeSyntax). \n\n### YAML\n\n```yaml\n- analyzeSyntax:\n call: googleapis.language.v1.documents.analyzeSyntax\n args:\n body:\n document:\n content: ...\n gcsContentUri: ...\n language: ...\n type: ...\n encodingType: ...\n result: analyzeSyntaxResult\n```\n\n### JSON\n\n```json\n[\n {\n \"analyzeSyntax\": {\n \"call\": \"googleapis.language.v1.documents.analyzeSyntax\",\n \"args\": {\n \"body\": {\n \"document\": {\n \"content\": \"...\",\n \"gcsContentUri\": \"...\",\n \"language\": \"...\",\n \"type\": \"...\"\n },\n \"encodingType\": \"...\"\n }\n },\n \"result\": \"analyzeSyntaxResult\"\n }\n }\n]\n```"]]