Developer Builds Free CBT Thought Journal API Using Python Pattern Matching
A software developer has created a free, open API-based thought journal that automatically detects cognitive distortions, procrastination patterns, and attachment styles using keyword pattern matching. The tool, built in approximately 50 lines of Python, is grounded in David Burns' Cognitive Behavioral Therapy framework from his book 'Feeling Good'. It can identify 11 cognitive distortions — such as overgeneralization and catastrophizing — along with 8 procrastination patterns and 4 attachment styles. The developer was motivated by a desire to self-check distorted thinking between therapy sessions, without relying on a large AI model. The API is publicly deployed and accessible, allowing anyone to integrate CBT-style thought analysis into their own applications.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in