The Varieties of Democracy project at the University of Gothenburg has done this measurement for more than a decade, establishing a consistent metric that allows for comparisons between and within nations and determinations of how democracy has changed over time.
Nice liberal democracy we used to have here. Too bad we couldn’t keep it.