Motivational Quote Generator
Generate inspiring motivational quotes by category. Copy text, save as image, or browse 150+ curated quotes from history's greatest thinkers.
Click "Generate Quote" to get inspired.
About
Retrieving a relevant quote from memory under pressure is unreliable. The brain favors recency, not relevance. This generator contains 150 curated quotes across 8 thematic categories - from stoic philosophy to scientific perseverance. Each quote is indexed by domain so the output matches context: a presentation on resilience gets Marcus Aurelius, not a cookie-cutter poster slogan. The selection algorithm tracks your recent history to prevent repeats within a session window of 20 quotes.
Limitation: this corpus is static and English-only. Attribution follows the most commonly accepted source, though misattribution is endemic in quote literature - verify before publishing in academic work. The image export renders at 1080×1080px, suitable for social media but not print-resolution.
Formulas
The selection algorithm avoids naive random sampling, which produces perceptible clustering. Instead, it uses a filtered pool with history exclusion:
Where Qcategory is the set of all quotes matching the selected category filter, and Hrecent is a circular buffer of the last 20 generated quote IDs. The selected quote index i is computed via:
When |Pavailable| = 0 (all quotes in category have been seen recently), the history buffer is flushed and the full category pool is restored. Image export uses Canvas 2D context with a word-wrap algorithm that splits on whitespace and measures each line via measureText() to enforce a maximum line width of 900px within the 1080×1080 canvas.
Reference Data
| Category | Quote Count | Notable Authors | Primary Theme |
|---|---|---|---|
| Perseverance | 20 | Churchill, Edison, Mandela | Overcoming failure and adversity |
| Courage | 18 | Roosevelt, Earhart, Hemingway | Facing fear and taking risks |
| Wisdom | 20 | Seneca, Aurelius, Epictetus | Stoic philosophy and clarity |
| Success | 19 | Carnegie, Jobs, Winfrey | Achievement and ambition |
| Creativity | 18 | Einstein, Picasso, Curie | Innovation and original thinking |
| Happiness | 18 | Dalai Lama, Twain, Thoreau | Contentment and gratitude |
| Leadership | 19 | Lincoln, Drucker, Thatcher | Influence and responsibility |
| Growth | 18 | Frankl, Rumi, Angelou | Self-improvement and learning |
| Total corpus: 150 quotes | |||