Caprice - When you make a sudden change in your behaviour or the way you act or think, it is known as a caprice.
Open Word Class - Noun
1. This is what we call a caprice; you were planning to go for a movie, and now you have gone to a museum.
2. What did you say just now was a caprice to what you said two minutes earlier to that.
3. The moment you caprice for your dinner recipe, I have to cook a new thing; I have been fed up of it.