Confirmation Bias & Cognitive Bias Detector
Paste your investment justification, article excerpt, or financial opinion below. This tool will analyze the content to detect signs of confirmation bias and common cognitive biases.
Please enter some text for analysis.
"; document.getElementById("downloadBiasPDF").style.display = "none"; return; } const biasIndicators = { "confirmation bias": ["agree", "prove", "validate", "supports", "confirms", "backs up", "definitely true"], "anchoring bias": ["initial price", "original offer", "starting estimate", "first number", "early quote"], "availability heuristic": ["recent", "just happened", "last week", "I heard", "on the news"], "overconfidence bias": ["I know for sure", "certainly", "guaranteed", "won't fail", "I'm confident"], "recency bias": ["latest", "most recent", "current", "newest"], "loss aversion": ["hate losing", "avoid loss", "don't want to risk", "fear of losing", "play safe"] }; let results = ""; let foundAny = false; for (const [bias, phrases] of Object.entries(biasIndicators)) { const matched = phrases.filter(phrase => input.includes(phrase)); if (matched.length > 0) { foundAny = true; results += `${bias.charAt(0).toUpperCase() + bias.slice(1)}
`; results += `- ${matched.map(m => `
- Detected phrase: "${m}" `).join("")}
No clear signs of cognitive bias were detected in the text.
"; } output.innerHTML = `${results}
`;
output.dataset.pdfContent = `Bias Detection Report\n\n${output.innerText}`;
document.getElementById("downloadBiasPDF").style.display = "inline-block";
}