Overview
TheidentifyLogicalFallacies flow analyzes a piece of argument text to identify any logical fallacies present and provides detailed explanations for each detected fallacy.
This flow is used as a standalone tool for fallacy analysis and can be applied to any argument text.
Function Signature
src/ai/flows/identify-logical-fallacies.ts:30
Input Schema
The text of the argument to analyze for logical fallacies.
Input Type
Output Schema
An array of logical fallacies identified in the argument.
A detailed explanation of each identified logical fallacy.
Output Type
Example Usage
Common Fallacy Types Detected
The AI is trained to identify various logical fallacies including:- Ad Hominem: Attacking the person instead of the argument
- Straw Man: Misrepresenting an opponent’s position
- False Dichotomy: Presenting only two options when more exist
- Appeal to Authority: Using authority as the sole basis for truth
- Slippery Slope: Claiming one action will lead to extreme consequences
- Circular Reasoning: Using the conclusion as a premise
- Hasty Generalization: Drawing conclusions from insufficient evidence
- Red Herring: Introducing irrelevant information to distract
- And many more…
Implementation Details
The flow uses a specialized AI prompt that:- Analyzes the argument text for logical errors
- Identifies specific fallacy types present
- Explains why each instance constitutes a fallacy
- Returns structured output with fallacy names and explanations
src/ai/flows/identify-logical-fallacies.ts:40):
Related
- Explain Logical Fallacy Flow
- Fallacy Detection Schema
- Generate Blueprint Flow - includes fallacy detection
