implement WordNet's constructor