Analysing changes in the distribution of categorical variables over time


I'm trying to analyse if there is a change in the distribution of a categorical variables (5 categories) in each year over time (twenty-odd year). I've done some reading around the subject but can't seem to find a solid answer that fits my needs. Can anyone point me in the direction of some good resources, or suggest a mechanism for analysis?