Text this: Correlation between the tonicity and the polarity in semiconductors