Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kbaird/consensus
An Erlang library pertaining to consensus democracy, including Condorcet voting
https://github.com/kbaird/consensus
condorcet condorcet-methods elections erlang voting
Last synced: 3 months ago
JSON representation
An Erlang library pertaining to consensus democracy, including Condorcet voting
- Host: GitHub
- URL: https://github.com/kbaird/consensus
- Owner: kbaird
- License: other
- Created: 2016-11-02T20:52:04.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2024-09-27T21:39:10.000Z (4 months ago)
- Last Synced: 2024-10-13T18:44:53.700Z (4 months ago)
- Topics: condorcet, condorcet-methods, elections, erlang, voting
- Language: Erlang
- Homepage:
- Size: 2.94 MB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# consensus
[![Build Status](https://semaphoreci.com/api/v1/kbaird/consensus/branches/master/badge.svg)](https://semaphoreci.com/kbaird/consensus)
[![Code Climate](https://codeclimate.com/github/kbaird/consensus/badges/gpa.svg)](https://codeclimate.com/github/kbaird/consensus)
[![Ebert](https://ebertapp.io/github/kbaird/consensus.svg)](https://ebertapp.io/github/kbaird/consensus)
An OTP library implementing consensus-oriented political functions, including the
[Schulze voting method](https://en.wikipedia.org/wiki/Schulze_method), the
[Gallagher Index](https://en.wikipedia.org/wiki/Gallagher_Index), the
[d'Hondt/Jefferson Method](https://en.wikipedia.org/wiki/D%27Hondt_method),
various [Borda Counts](https://en.wikipedia.org/wiki/Borda_count#Example) and the
[Webster/Sainte-Laguë Method](https://en.wikipedia.org/wiki/Webster/Sainte-Lagu%C3%AB_method#Description_of_the_method).This code is heavily based on ideas found in [Patterns of Democracy](http://wikisum.com/w/Lijphart:_Patterns_of_democracy) by
[Arend Lijphart](https://en.wikipedia.org/wiki/Arend_Lijphart).The
[main non-trivial Condorcet test file](https://github.com/kbaird/schulze-vote-erlang/blob/master/test/tn_capital_test.erl)
uses the
[TN Capital example](https://en.wikipedia.org/wiki/Condorcet_method#Example:_Voting_on_the_location_of_Tennessee.27s_capital)
from Wikipedia.## Build
$ rebar3 compile
## Eunit
$ rebar3 eunit
## Dialyzer
$ rebar3 dialyzer
## Elvis
Download [elvis](https://github.com/inaka/elvis), then
$ elvis rock