Use the Part of Speech database from http://wordlist.sourceforge.net/