About one villager in a hundred is a pigman: a player-like body with a pig's head, oinks instead of hmms, and squeals when hurt.
Everything else is a normal villager. It has a job, trades, gossips, breeds and panics in raids, so other villager mods keep working with pigmen.
The chance is rolled once per villager and saved, and it can be changed in the config.
6,944 downloads on CurseForge