Well to be fair, liberal is a curse word in some parts.Yes, an ad hom is to smear a person's character or reputation or probative value for truth telling.
Saying some one is a Baptist, a Buddhist, a Libertarian, a Liberal, a Democrat, or a Republican as identification is not ad hom