code: def synonyms(self):
          
          syns = {}
  
          for k, v in self._declared_terms.items():
              k = k.strip()
              if v.get('synonym'):
                  syns[k.lower()] = v['synonym']
  
                  if not '.' in k:
                      syns[ROOT_TERM + '.' + k.lower()] = v['synonym']
  
          return syns
docs: Return a dict of term synonyms