Shore polarity exists because earth and neutral are tied together. I cant remember what the regs are for boats (gensets) but its possible that you genset has a floating neutral. I know the genset I have floats, so there is no polarity as such. What you need to make sure is that all the neutral connections on the boat are wired the same way, and connect to the correct neutral on you shore connection. I would be surprised if this is not the case, but it all depends on the origin on your boat.