corrected get_all_synonyms