Is there a way to validate English words like in Scrabble?

Is there a way to validate English words like in Scrabble? Something like using a long json or text file for the validation. No need to go into detail, just want to make sure I can do this before jumping into this game engine.

I would be more than sure it is possible to do it via array
To check if some variable = child of array variable
But how exactly do it i have no idea
Wait for someone better with arrays to reply

This is pretty much the way, and load it into a variable. Up to you how you do this - a structure or a text variable spring to mind.

You need a list of words, and you’ll have to validate by searching that the word exists in the variable you use.

Just my opinion—but I would expect a structure to be the fastest for searching, since the keys should ideally be indexed. In contrast, searching through a text variable that holds all the words would likely take longer (though if you comma separate the words you could use a regex search).

However, if the keys aren’t indexed, an alternative could be to use a structure with 26 child nodes - one for each letter of the alphabet. Each child node would store the words that start with its corresponding letter. Then, to find a specific word, you would simply search within the child node that matches the word’s first letter.