File size: 320 Bytes
345855e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | def simulate_retention(words):
timeline = []
score = 100
for i, w in enumerate(words):
# drop-off logic
if i > len(words) * 0.7:
score -= 2
if w["text"].lower() in ["boring", "slow"]:
score -= 10
timeline.append(max(score, 0))
return timeline |