require "r2h2_modified" function add_word(str) local add = true for _, v in pairs(word_list) do if v == str then add = false end end if add then table.insert(word_list,str) end end function strip_symbols(str) local symbol_table = "'~()!?:> 0 do p = string.find(text,"\n",p+1) skip = skip - 1 end else break end end apply_html("html/convo/end.html") -- fourth lets make word lists -- process contents content = strip_symbols(content) content = replace_symbols(content) content = revert_verbs(content) word_list = {} while string.find(content, " ") do add_word(string.sub(content, 0, string.find(content, " "))) content = string.sub(content, string.find(content, " ")+1) --print(string.find(content, " ")) end for i=1, #word_list do print(word_list[i]) end -- lets end the html apply_html("html/end.html")