Molecular structure of polarity