Localized Lone Pair Definition:
Localized Lone Pair Explained:
Compared to a delocalized lone pair, the localized lone pair does not take place in resonance. The reason for this is primarily because the lone pair, in this case, occupies the hybridized orbital and not a standalone p orbital.
A great example to consider is that of pyridine. In the pyridine molecule, the lone pair on nitrogen does not take part in resonance even though it is allylic to the pi bond. Hence, being allylic to pi bond is not the only criterion that governs whether or not the electron pair takes part in resonance. However, for pyridine, the lone pair occupies the hybridized orbital since the p orbital is already used in the pi bond.