It's easy to figure out the polarity. The black wire is hot.