Maybe what we need is a single vocabulary word that means “I’m doing something that won’t scale well to large inputs but is still worth writing for now” then you could name the function replaceEscapeCharsNewWord()
I would say what you can do is simply block or time limit distracting apps and websites from the screentime section of the iPhone settings, and then get a friend to input a pin to lock the settings in place