From what I know, a pig is also similar to a cat or a dog when taken care of. Although it has its own idiosyncrasy like being noisy when hungry, the pig tends to be affectionate to the one who feeds it. A family friend who has a farm have some pigs loose in their vast yard. He said that their loose pigs are also like dogs who follow him when he is doing his chore in the farm like feeding the other animals or tending the plants.
When the pig is given a regular bath, it can be kept inside the house. And like a dog, it can also be taught toilet manners so it would do its thing only when outside of the house.