code: def lookup_synonyms(self, lems):
          
          final_synonyms = []
          if type(lems) == list:
              for lemma in lems:
                  if lemma.lower() in self.synonyms.keys():
                      syns = self.synonyms[lemma.lower()]
                      synlist = []
                      for syn in syns:
                          synlist.append((syn, 1/len(syns)))
                      synobj = (lemma, synlist)
                      final_synonyms.append(synobj)
                  else:
                      pass
          if type(lems) == str:
              if lems.lower() in self.synonyms.keys():
                  syns = self.synonyms[lems.lower()]
                  synlist = []
                  for syn in syns:
                      synlist.append((syn, 1/len(syns)))
                  synobj = (lems, synlist)
                  final_synonyms.append(synobj)
              else:
                  pass
          return final_synonyms
docs: Requires a list of lemmata, not tokens. Feed tokens through a
          Lemmata object's lookup() and isolate() methods first.