Summary
Ever wanted your villager trading hall to also be a fragile political coalition? Villager Ideology gives every villager a political ideology — Communist, Anarchist, Progressive, Green, Moderate, Libertarian, Conservative, Reactionary, or Fascist — and lets nations, parties, and elections emerge naturally from how happy (or miserable) your villagers are. Neglect their needs and watch a village radicalize. Run a propaganda campaign to swing an election. Found your own nation, register competing parties, and track approval with a polling sheet. It's part vanilla-plus villager mod, part low-key political simulator. See the wiki for more details.
Major Features
Villagers spawn in with a semi-random ideology. Non-nitwit villagers are typically moderate, but can lean slightly progressive or conservative. Nitwit villagers are always either extremely far left or extremely far right. Two new villager professions have been added: the capitalist and the worker. The worker has no trades but can be hired by a capitalist. The capitalist's trades improve with more nearby workers (but he'll refuse to trade at all if he notices a nearby competitor!). Villagers also can belong to nations. Nation-less villager's automatically join other villager's nations.
Mod Items
Polling Sheet
This is the most important item in the mod. Right-clicking a villager with a polling sheet displays their current mood, political affiliation, needs, and more.

Propaganda
Right-clicking a villager with propaganda will alter their political affiliation or happiness depending on the specific propaganda piece.
Dumbifyer
Right-clicking a villager with a dumbifyer will turn them into a nitwit.
Educator
Right-clicking a nitwit villager with an educator will turn them into a regular unemployed villager.
Nation-Changer
Right-clicking a villager with the nation changer will change the villager's nation to the custom name of the Nation-Changer item. Use /rename while holding the item to set the nation.
Emerald Block
This block is used to give Villagers the Capitalist profession. Capitalist villagers will automatically seek out unemployed villagers to hire them during certain times of day.
Villager Mood
Mood alters ability to trade and ideological shift over time. Once per day, mood will shift, and ideology will have a chance to shift. Villagers will change their ideological stance depending on their happiness, job, and the ideology of the ruling party.
Basic Needs
Villagers require a bed, a job, and to not be overcrowded. If a villager is homeless, unemployed, or packed into a room with too many other villagers, they will lose happiness over time.
Luxury Needs
Villagers can increase happiness beyond content by having luxury needs met on top of their basic needs. Luxury needs include being social (gathering around a bell), feeling protected (proximity to an iron golem), being good at their job (level 4 or higher), being self-employed (not a nitwit, unemployed, or worker) and being a nitwit (nitwits are happier on average).