This is a sample of how to create hitboxes around text generated by JuJuAdams' "Scribble" for Game Maker. It also includes a mechanism for swapping words in a string.
The script you are probably most interested in is called locate_substring(), located in scripts/scr_locateSubstring
Please let me know if you encounter bugs, issues, or suggestions on how to overcome limitations!