Added synonymize method and tests.