The correct term is prosopopeia. It means giving properties be encouraged to something inanimate, also give qualities of intelligence or rational attitudes to an animal or to speak the dead.