A General Approach to Measuring Electoral Competitiveness for Parties and Governments. (11th July 2021)