I have a list of all nouns in wordnet, now I want to leave only the words that are vehicles and delete the rest. How can I do it? Below is the pseudo code I want to make, but I don't know how to make it work.
for word in wordlist: if not "vehicle" in wn.synsets(word): wordlist.remove(word)
watisit
source share