It checks against a text file with a bunch of English words, some words might be missing and some probably shouldn't be valid but it seems to be mostly fine for this game.
Thanks for playing!
Ah, yes, that’s a great way to do it. Thank you so much for solving my doubt! :)