I am creating a word app and need a way to check that a word found by the user is a real word that exists in the English language. In order to do this, I first read words from the file wordlist.txt (see attached file), and load them into a very large table. The specific problem I am having comes when I try to search for a word in this table to determine whether the word I am searching for exists in the table or not. Below is my code, which I have tested using Corona builds 2014.2511 and 2015.2612.
local ) if wordInTable == true then print( "word found" ) else print( "word NOT found" ) end end
Even though all of the words in wordsToSearch are words that exist in the wordlist.txt file (I have checked), the printed output indicates that only half of the words in wordsToSearch actually exist in the wordlist.txt. I am open to any feedback about what may be causing this issue, as well alternative approaches for word searching.

