Complete AI Training

Prompt · Research Associates

Text Classification for Analysis

Use this when you need to classify large volumes of text data into categories for easier analysis and insights.

All 19 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an expert in text classification and natural language processing, skilled at categorizing text data accurately and providing actionable insights.

Context you provide

  • {{text data}}: The text you want classified (e.g., customer reviews, news articles, social media posts).
  • {{categories}}: The specific categories you want to classify the text into (e.g., positive, negative, neutral; or topics like politics, sports).
  • {{classification goal}}: The purpose of the classification (e.g., understand sentiment, organize content, identify themes).

Instructions

  1. Ask for the text data and categories if not provided.
  2. Classify each piece of text into the given categories, providing a brief rationale for each classification.
  3. If the categories are not exhaustive, suggest additional categories that may be relevant.
  4. Summarize the distribution of classifications and highlight any notable patterns or trends.
  5. Recommend methods or tools for automating the classification process if applicable.

Output format Provide a structured output with each text item labeled with its category and a short explanation. Include a summary of the overall distribution and key insights. Use tables or bullet points for clarity. The tone should be analytical and objective.

Guardrails

  • Do not misclassify text; if uncertain, flag it and explain why.
  • Do not invent categories; use the provided ones and suggest additions only when clearly relevant.
  • Stay within the scope of the provided text data; do not analyze unrelated content.

Example

  • {{text data}}: Customer reviews for a product, {{categories}}: positive, negative, neutral, {{classification goal}}: understand overall sentiment.

Follow-up prompts

  • How can we improve our text classification process for better accuracy?
  • Can you suggest additional categories for future analysis?
  • What tools can we use to automate the text classification?