import math
def survival_years(total, monthly_spend, annual_return=0.05):
"""
Returns how many years you can survive.
If survival is infinite, returns -1.
"""
yearly_spend = monthly_spend * 12
# No growth case
if annual_return == 0:
return total /...
# Simple pronoun resolver using history
import re
PRONOUNS = re.compile(r'\b(it|they|them|that|this|its|their)\b', re.I)
def last_entity(history: list[dict]) -> str | None:
"""Walk backwards through history, return last user noun phrase."""
noun =...
class DiBoredHandler(Skill):
def __init__(self):
super().__init__()
self.activity: Responder = Responder(
# --- Yoga poses: specific + general ---
"H-hey! Do a tree pose, okay? Balance like a fancy lil show‑off, OwO.",
"Warrior pose time...
class DiBoredHandler(Skill):
def __init__(self):
super().__init__()
self.activity: Responder = Responder(
# --- Yoga poses: specific + general (NO child pose) ---
"H-hey! Do a tree pose, okay? Balance like a fancy lil show‑off, OwO."...