It occurs when a writer gives human traits to non-human or inanimate objects.