This challenge is for all those times your mouth said something your brain didn't tell it to.
Write a function that will find a misspoken word in ...
For further actions, you may consider blocking this person and/or reporting abuse
Elm
Maybe not the best algorithm, show me yours!
Playground
Test it here.
What if the string is "Should I go?" or generally speaking when they come at the starting of a sentence?
You are right and this solution is not 100% bulletproof. Hence my little message just before saying that I'm curious about other answer.
What do you think we should do to resolve this issue?