Grammar extraction

Extract nouns, verbs and adjectives from a sentence

Open in Google AI Studio

Context

Transform sentence into a list of nouns, verbs, and adjectives.

Prompt examples

Input Sentence:
Output Nouns:
Output Verbs:
Output Adjectives:

The heavy rain caused the river to overflow its banks, flooding the nearby town.

rain, river, banks, town, flooding

caused, overflowed

heavy, nearby

I once went to a movie with some friends, only to find out later they really didn't like it

I, movie, friends, it

went, found

once, later

Sample responses

Input Sentence:
Output Nouns:
Output Verbs:
Output Adjectives:

The large building I walked into was full of synthetic plants, and turned out to be a fake tree factory.

building, plants, factory

walked, turned

large, synthetic, fake

Get code

Enable API key to develop with the Gemini API

You can call this prompt from our Gemini API by integrating the following code into your project.