For example, I have a keyword \"abandoned\" and I want to find the words that contains letters of this keyword such as \"done\", \"abandon\", band\", from the arrays I stored t
Run the loop on your arrays and use string.find to check against this long word.
for idx = 1, #stored_words do
local word = stored_words[idx]
if string.find(long_word, word, 1, true) then
print(word .. " matches part of " .. long_word)
end
end