// I generated this file from running the commented-out "script and "scriptRaw" cells bellow. But I didn't want to web-scrape on every page load, so I'm caching with fileAttachments
script=FileAttachment("script.txt").text()
parts.slice().reverse()
parts={
constparts=[];
letprev=0;
for(constdofscript.matchAll(/\Wbee/g)){
parts.push(script.substring(prev,d.index));
prev=d.index;
}
returnparts;
}
/*script = scriptRaw
.querySelector('pre')
.innerHTML.replace(/\s+/g, ' ')
.replace('Bee Movie Script - Dialogue Transcript ', '')*/
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.