set a boolean flag to indicate if the word is found in one of the two files. If not set then it must be a noun. Something like this sudo-code. Note: search second file ONLY if the word is not in the first file.
set flag to false
search verb.txt file for word
if word found in verb.txt then set flag to true
if flag still false
begin
search adjective.txt file for word
if word found in adjective.txt file set flag to true
end if
if flag still false
word is a noun
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343