Theory and tools to support the analysis of elections.