kiesraad / abacus

Abacus, software voor verkiezingsuitslagen en zetelverdeling
https://kiesraad-abacus.pages.dev
European Union Public License 1.2
19 stars 6 forks source link

Epic: seat allocation for the most common scenario #545

Open praseodym opened 2 weeks ago

praseodym commented 2 weeks ago

Seat allocation (zetelverdeling, apportionment) for the most common scenario, e.g. no drawing of lots. Display results on a placeholder page.

For municipal elections, calculation differs for municipal council with < 19 seats and 19 seats or above, mainly regarding the algorithm used for allocation of remainder seats (restzetels) and the preference threshold (voorkeursdrempel) for candidates.

Main differences are described on the website of the Kiesraad. We also have a summary of the process for municipal elections in Dutch.

Tbd: Non common scenario's that are out of scope:

Conditions:

Lionqueen94 commented 2 weeks ago

I think "lottery" or "raffle" is a more common and well known term instead of "drawing of lots" and for the "remainder seats" maybe "remaining seats". At least those seem more clear to me.

praseodym commented 1 week ago

Design for this epic is not finished yet.

marjoleintamis commented 6 days ago

The correct term is 'drawing' or 'drawing by lot' according to IATE https://iate.europa.eu/search/result/1731931498385/1 'Lottery' and 'raffle' are used in different contexts :)

jorisleker commented 5 days ago

Voorbeeld- / testdata om onze code tegen te testen

Cases

Bovenstaande voor verkiezingen met => 19 zetels en < 19 zetels

Impact van kiesdrempel tbd; er een wetswijziging rondom de kiesdrempel en restzetels.

praseodym commented 5 days ago

WIP code from today: https://github.com/kiesraad/abacus/tree/apportionment