title: Online (preferably) lookup API of a word's class
body: <p>I have a list of words and I want to filter it down so that I only have the nouns from that list of words (Using Java).  To do this I am looking for an easy way to query a database of words for their type.</p>
  
  <p>My question is does anybody know of a free, easy word lookup API that would enable me to find the <em>class</em> of a word, not necessarily its semantic definition.</p>
  
  <p>Thanks!</p>
  
  <p>Ben.  </p>
  
  <p>EDIT: By class of the word I meant 'part-of-speech' thanks for clearing this up</p>