An OTP library implementing consensus-oriented political functions, including the Schulze voting method, the Gallagher Index, the d'Hondt/Jefferson Method, various Borda Counts and the Webster/Sainte-Laguë Method.
This code is heavily based on ideas found in Patterns of Democracy by Arend Lijphart.
The main non-trivial Condorcet test file uses the TN Capital example from Wikipedia.
$ rebar3 compile
$ rebar3 eunit
$ rebar3 dialyzer
Download elvis, then
$ elvis rock