def _collect_all_synsets(word, pos, synset_relations=dict()):
 return ('<ul>%s\n</ul>\n' % ''.join((_collect_one_synset(word, synset, synset_relations) for synset in wn.synsets(word, pos))))

def _collect_all_synsets ( word , pos , synset_relations = dict ( ) ) : return ( '<ul>%s\n</ul>\n' % '' . join ( ( _collect_one_synset ( word , synset , synset_relations ) for synset in wn . synsets ( word , pos ) ) ) )
return a html unordered list of synsets for the given word and part of speech .