Some generalizations of periodic words