One problem is that the type of word depends on usage and context. For example, βrootβ can be a noun or a verb.
On a Unix / Linux system with aspell installed, this will give you all the words in the dictionary:
aspell dump master
Finally, see the related question: Need a free English dictionary or Corpus, ultimately for a MySQL database
payne
source share