File size: 16,417 Bytes
9580dce | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 | /**
* Debate Arena β Topic Library and Selection
*
* Curated debate topics across multiple categories, with difficulty metadata
* for matching with appropriate opponent personas.
*/
export interface DebateTopic {
id: string;
topic: string;
category: DebateCategory;
description: string;
/** Whether the topic has a clear "pro" framing or is neutral/open */
framing: "pro-con" | "open";
}
export type DebateCategory =
| "Philosophy"
| "Ethics"
| "Science"
| "Politics"
| "Economics"
| "Technology"
| "Education"
| "Society";
export const DEBATE_CATEGORIES: DebateCategory[] = [
"Philosophy",
"Ethics",
"Science",
"Politics",
"Economics",
"Technology",
"Education",
"Society",
];
export const DEBATE_TOPICS: DebateTopic[] = [
// --- Philosophy ---
{
id: "dt-phil-01",
topic: "Free will is an illusion",
category: "Philosophy",
description: "Determinism vs libertarian free will β are our choices genuinely free or predetermined by prior causes?",
framing: "pro-con",
},
{
id: "dt-phil-02",
topic: "Moral truths are objective, not culturally relative",
category: "Philosophy",
description: "Moral realism vs moral relativism β do universal ethical facts exist independent of culture?",
framing: "pro-con",
},
{
id: "dt-phil-03",
topic: "The meaning of life is self-created, not discovered",
category: "Philosophy",
description: "Existentialism vs essentialism β is purpose inherent in the universe or constructed by individuals?",
framing: "pro-con",
},
{
id: "dt-phil-04",
topic: "Knowledge requires certainty",
category: "Philosophy",
description: "Infallibilism vs fallibilism β must we be certain of something to truly know it?",
framing: "pro-con",
},
// --- Ethics ---
{
id: "dt-eth-01",
topic: "It is ethical to eat animals",
category: "Ethics",
description: "Animal rights, environmental impact, cultural traditions, and nutritional arguments for and against meat consumption.",
framing: "pro-con",
},
{
id: "dt-eth-02",
topic: "Wealthy nations have a moral obligation to accept refugees",
category: "Ethics",
description: "National sovereignty vs cosmopolitan ethics β duties to those fleeing conflict and persecution.",
framing: "pro-con",
},
{
id: "dt-eth-03",
topic: "Civil disobedience is justified when laws are unjust",
category: "Ethics",
description: "The legitimacy of breaking laws to challenge injustice β from Thoreau to MLK to modern protests.",
framing: "pro-con",
},
{
id: "dt-eth-04",
topic: "The death penalty is never justified",
category: "Ethics",
description: "Retributive justice, deterrence, wrongful convictions, and the state's power over life.",
framing: "pro-con",
},
// --- Science ---
{
id: "dt-sci-01",
topic: "Human genetic enhancement should be permitted",
category: "Science",
description: "CRISPR and gene therapy for enhancement beyond disease treatment β designer babies, cognitive augmentation, and equity concerns.",
framing: "pro-con",
},
{
id: "dt-sci-02",
topic: "Nuclear energy is essential for addressing climate change",
category: "Science",
description: "Nuclear power's role in decarbonisation vs renewable-only strategies β risk, cost, waste, and scalability.",
framing: "pro-con",
},
{
id: "dt-sci-03",
topic: "Space colonisation should be a top priority for humanity",
category: "Science",
description: "Existential risk hedging and expansion vs solving Earth's problems first β resource allocation and timelines.",
framing: "pro-con",
},
{
id: "dt-sci-04",
topic: "Consciousness can be fully explained by neuroscience",
category: "Science",
description: "Physicalism vs the hard problem of consciousness β can subjective experience be reduced to brain processes?",
framing: "pro-con",
},
// --- Politics ---
{
id: "dt-pol-01",
topic: "Democracy is the best form of government",
category: "Politics",
description: "Democratic governance vs alternatives β representation, efficiency, populism, and informed decision-making.",
framing: "pro-con",
},
{
id: "dt-pol-02",
topic: "Freedom of speech should have no legal limits",
category: "Politics",
description: "Absolute free speech vs harm-based restrictions β hate speech, misinformation, and the marketplace of ideas.",
framing: "pro-con",
},
{
id: "dt-pol-03",
topic: "A universal basic income would benefit society",
category: "Politics",
description: "UBI's effects on poverty, work incentives, automation, and fiscal sustainability.",
framing: "pro-con",
},
{
id: "dt-pol-04",
topic: "Nations should prioritise sovereignty over international cooperation",
category: "Politics",
description: "Nationalism vs internationalism β self-determination, global challenges, and the limits of multilateral institutions.",
framing: "pro-con",
},
// --- Economics ---
{
id: "dt-econ-01",
topic: "Capitalism produces more good than harm",
category: "Economics",
description: "Market economies vs alternatives β wealth creation, inequality, innovation, and externalities.",
framing: "pro-con",
},
{
id: "dt-econ-02",
topic: "Intellectual property laws do more harm than good",
category: "Economics",
description: "Patents and copyrights β innovation incentives vs access barriers, rent-seeking, and the public domain.",
framing: "pro-con",
},
{
id: "dt-econ-03",
topic: "Billionaires should not exist",
category: "Economics",
description: "Wealth concentration, meritocracy, philanthropy, systemic inequality, and confiscatory taxation.",
framing: "pro-con",
},
{
id: "dt-econ-04",
topic: "Globalisation has been a net positive for the world",
category: "Economics",
description: "Trade liberalisation, poverty reduction, cultural homogenisation, labour exploitation, and supply chain fragility.",
framing: "pro-con",
},
// --- Technology ---
{
id: "dt-tech-01",
topic: "AI systems should be given legal personhood",
category: "Technology",
description: "Rights and responsibilities for artificial agents β liability, moral status, and the nature of personhood.",
framing: "pro-con",
},
{
id: "dt-tech-02",
topic: "Social media has done more harm than good to society",
category: "Technology",
description: "Connection and democratisation vs polarisation, mental health, and attention economics.",
framing: "pro-con",
},
{
id: "dt-tech-03",
topic: "We should develop superintelligent AI as quickly as possible",
category: "Technology",
description: "Accelerationism vs safety-first approaches β existential risk, alignment, and the benefits of advanced AI.",
framing: "pro-con",
},
{
id: "dt-tech-04",
topic: "Digital privacy is more important than national security",
category: "Technology",
description: "Encryption, surveillance, the security-liberty tradeoff, and the chilling effect on free expression.",
framing: "pro-con",
},
// --- Education ---
{
id: "dt-edu-01",
topic: "University education should be free for everyone",
category: "Education",
description: "Public funding of higher education vs market-based tuition β access, quality, signalling, and fiscal tradeoffs.",
framing: "pro-con",
},
{
id: "dt-edu-02",
topic: "Standardised testing accurately measures student ability",
category: "Education",
description: "Psychometric validity, cultural bias, teaching to the test, and alternative assessment models.",
framing: "pro-con",
},
{
id: "dt-edu-03",
topic: "Children should learn to code before they learn to write essays",
category: "Education",
description: "Computational thinking vs traditional literacy β what foundational skills matter most in the 21st century?",
framing: "pro-con",
},
{
id: "dt-edu-04",
topic: "Homework does more harm than good",
category: "Education",
description: "Academic reinforcement vs stress, family time, equity gaps, and diminishing returns.",
framing: "pro-con",
},
// --- Society ---
{
id: "dt-soc-01",
topic: "Cultural appropriation is a meaningful concept",
category: "Society",
description: "Power dynamics, cultural exchange, respect, and the boundaries of artistic and cultural borrowing.",
framing: "pro-con",
},
{
id: "dt-soc-02",
topic: "Marriage as an institution is outdated",
category: "Society",
description: "Legal, financial, and social functions of marriage β tradition, partnership, and modern alternatives.",
framing: "pro-con",
},
{
id: "dt-soc-03",
topic: "Prisons should focus on rehabilitation, not punishment",
category: "Society",
description: "Restorative vs retributive justice β recidivism, deterrence, victim rights, and Nordic models.",
framing: "pro-con",
},
{
id: "dt-soc-04",
topic: "Voting should be mandatory",
category: "Society",
description: "Democratic participation, informed consent, compulsion vs freedom, and the Australian model.",
framing: "pro-con",
},
// --- Philosophy (expansion) ---
{
id: "dt-phil-05",
topic: "Personal identity persists through time",
category: "Philosophy",
description: "Psychological continuity vs physical continuity β what makes you the same person you were ten years ago?",
framing: "pro-con",
},
{
id: "dt-phil-06",
topic: "Utilitarian ethics should guide public policy",
category: "Philosophy",
description: "The greatest happiness principle vs deontological constraints β when is it right to sacrifice the few for the many?",
framing: "pro-con",
},
// --- Ethics (expansion) ---
{
id: "dt-eth-05",
topic: "It is ethical to lie to protect someone's feelings",
category: "Ethics",
description: "Kant's absolute duty of honesty vs consequentialist and virtue-ethics justifications for white lies.",
framing: "pro-con",
},
{
id: "dt-eth-06",
topic: "Affirmative action is a just policy",
category: "Ethics",
description: "Corrective justice, diversity rationale, and merit β does preferential treatment for historically excluded groups advance or undermine equality?",
framing: "pro-con",
},
// --- Science (expansion) ---
{
id: "dt-sci-05",
topic: "Animals deserve the same moral consideration as humans",
category: "Science",
description: "Sentience, pain, and rights β does cognitive difference justify treating animals as resources rather than ends in themselves?",
framing: "pro-con",
},
{
id: "dt-sci-06",
topic: "We are alone in the universe",
category: "Science",
description: "The Fermi Paradox, Drake Equation, and the great filter β what the silence of the cosmos tells us about the rarity or frequency of life.",
framing: "pro-con",
},
// --- Politics (expansion) ---
{
id: "dt-pol-05",
topic: "The media has too much power over public opinion",
category: "Politics",
description: "Agenda-setting, framing effects, media ownership concentration, and the tension between press freedom and democratic accountability.",
framing: "pro-con",
},
{
id: "dt-pol-06",
topic: "Wealth redistribution through taxation is morally justified",
category: "Politics",
description: "Rawlsian fairness, Nozickean property rights, social contract obligations, and the empirical effects of redistribution on growth and welfare.",
framing: "pro-con",
},
// --- Economics (expansion) ---
{
id: "dt-econ-05",
topic: "Automation and AI will cause mass unemployment",
category: "Economics",
description: "Technological displacement vs job creation β historical precedents, skill-biased change, and the timeline and scope of AI-driven labour disruption.",
framing: "pro-con",
},
{
id: "dt-econ-06",
topic: "Free trade always benefits developing nations",
category: "Economics",
description: "Comparative advantage, infant-industry arguments, terms-of-trade dynamics, and the historical record of industrialisation strategies.",
framing: "pro-con",
},
// --- Technology (expansion) ---
{
id: "dt-tech-05",
topic: "Autonomous weapons should be banned",
category: "Technology",
description: "Lethal autonomous systems β accountability, proportionality, lowering the cost of war, and whether machines can ever satisfy just-war criteria.",
framing: "pro-con",
},
{
id: "dt-tech-06",
topic: "The internet has been a net positive for democracy",
category: "Technology",
description: "Digital organising, access to information, and citizen journalism vs polarisation, disinformation, and authoritarian surveillance.",
framing: "pro-con",
},
// --- Education (expansion) ---
{
id: "dt-edu-05",
topic: "Schools should teach philosophy to children",
category: "Education",
description: "Critical thinking, moral reasoning, and epistemic skills vs developmental readiness, curriculum crowding, and parental objections.",
framing: "pro-con",
},
{
id: "dt-edu-06",
topic: "Single-sex education improves academic outcomes",
category: "Education",
description: "Research on attainment, confidence, and gender socialisation β co-educational environments vs the evidence for and against separation.",
framing: "pro-con",
},
// --- Society (expansion) ---
{
id: "dt-soc-05",
topic: "Social media companies should be liable for user-generated content",
category: "Society",
description: "Section 230 and platform immunity β publisher vs distributor status, content moderation incentives, and the tradeoffs of holding platforms legally accountable.",
framing: "pro-con",
},
{
id: "dt-soc-06",
topic: "Recreational drug use should be fully decriminalised",
category: "Society",
description: "Public health vs criminality, the Portugal model, personal autonomy, addiction as a medical condition, and the costs of the war on drugs.",
framing: "pro-con",
},
];
// ---------------------------------------------------------------------------
// Selection helpers
// ---------------------------------------------------------------------------
/**
* Get a random debate topic, optionally filtered by category.
*/
export function getRandomDebateTopic(category?: DebateCategory): DebateTopic {
const pool = category
? DEBATE_TOPICS.filter((t) => t.category === category)
: DEBATE_TOPICS;
if (pool.length === 0) {
return DEBATE_TOPICS[Math.floor(Math.random() * DEBATE_TOPICS.length)];
}
return pool[Math.floor(Math.random() * pool.length)];
}
/**
* Get multiple topic choices for the user to pick from.
* Tries to include topics from different categories.
*/
export function getDebateTopicChoices(
category?: DebateCategory,
count: number = 3,
): DebateTopic[] {
const pool = category
? DEBATE_TOPICS.filter((t) => t.category === category)
: [...DEBATE_TOPICS];
if (pool.length === 0) return [];
if (pool.length <= count) return [...pool];
// Shuffle and pick
const shuffled = [...pool].sort(() => Math.random() - 0.5);
if (category) {
// Within a single category, just take the first `count`
return shuffled.slice(0, count);
}
// Cross-category: try to pick from different categories
const picked: DebateTopic[] = [];
const usedCategories = new Set<string>();
// First pass: one per category
for (const topic of shuffled) {
if (picked.length >= count) break;
if (!usedCategories.has(topic.category)) {
picked.push(topic);
usedCategories.add(topic.category);
}
}
// Second pass: fill remaining slots
for (const topic of shuffled) {
if (picked.length >= count) break;
if (!picked.includes(topic)) {
picked.push(topic);
}
}
return picked;
}
/**
* Find a topic by ID.
*/
export function getDebateTopicById(id: string): DebateTopic | undefined {
return DEBATE_TOPICS.find((t) => t.id === id);
}
|