Question: how to change your pokemon's nickname in sun and moon?
Answer: You have to first complete Melemele Island, and unlock Akala Island. Once you do that, you will end up in Heahea City, and in Heahea, you have to go into the building that is the Alola Tourist Bureau! After that, you will find the Name Rater and can re-name your Pokemon. Enjoy!