I have a text file I downloaded with all the english words in alphabetical order separated by tab keys like this: aah aahed aahing aahs aal
I want to implement a system that allows my game to take text input from the player and if it is a real word, it will write “true” to a variable, otherwise “false”. For example if the user enters “xyyyauu” it would output “false” but if the user enters “pineapple” it would output “true”. What is the best way to do this?
You can either have json file or text file with all the words you want in it and probably use StrFind()
you find the user input in the json or text file. This would probably take a lot of time and it’s not worth the effort. You can also try sending a request to a dictionary api or webpage to check if the user input is a word in the dictionary.
1 Like