I have developed a program for a word game that reads from a text file containing a list of all legal English words, then stores those words in an array used by other parts of the program. The program works, but I am not very happy with the word list that I have used as a text file since it seems to contains words that don't exist like "abd", acronyms, several-word phrases, proper names, chemistry elements like "Cm", and worst of all, swear words. I have found many a word list, but they all seem to either be specialized word lists, contain only commonly used words, contain arcane words that haven't been used since the 15th century, contain words that appear to not exist, contain acronyms or proper names, or most bizarrely, truncate words after eight letters.
I am looking for a regular old text file containing what would be found in a large modern dictionary like Merriam Webster, which has a good online dictionary but (not surprisingly) doesn't furnish a text file of their dictionary. I don't need the definitions, only the words themselves. Any ideas? Thanks.