Then the important criteria that determines whether the "will of the people" is right or wrong, good or evil, is actually the object that is willed and not the amount of people that will it. The object being that outcome or end which is willed or aimed at by the group. This distinction allows for us to legitimately recognize historical cases where the minority were right or good, such as Socrates in his trial or the abolitionist movement in America.
What does all of this have to do with the Irish referendum then?
First, no democratic vote answers the question of whether the object of legal abortion is good or evil. That is a question that can only be answered via a combination of philosophy, science, and logic.
Second, when the object of legal abortion is critically examined with the aforementioned methods it becomes abundantly clear that the Irish vote is a paradigmatic case of a large group of people willing a grave evil.