How exactly do you go about it?
Is there a database of words you can download? Is there a site you could connect to and check against? If you had a text file with every single word, how exactly would you go about it quickly? How many words are there even in the English language?
I mean, you could place every word in a table. But then checking them all would be extremely time consuming. You could place the word itself as the table key, then check if word["Hello"] ~= nil. But then again, either method ends up with a huge table. What about having the words in a text file then somehow parsing the file for the word.
That's about 228,000 words.The Second Edition of the 20-volume Oxford English Dictionary contains full entries for 171,476 words in current use, and 47,156 obsolete words. To this may be added around 9,500 derivative words included as subentries.
I mean I would love to make a word game at some point, but checking legality of the word seems to be the main problem. Conundrum. Puzzle. Situation. And other various thesaurus words.