Exploiting tag similarities to discover synonyms and homonyms in folksonomies