kristjanmik / kjosturett-web

One stop for Parliament elections in Iceland - http://kjosturett.is
http://kjosturett.is
Other
24 stars 16 forks source link

Why is computing scores uing 0.8 and -0.8 and not 0.5 and -0.5 #60

Open mitar opened 2 years ago

mitar commented 2 years ago

In this code which computes a match % based on your answers, partial support and partial objection answers are mapped to 0.8 and -0.8, instead to what I would find more intuitive 0.5 and -0.5:

https://github.com/kristjanmik/kjosturett-web/blob/master/src/process-replies.js

Why is this? The original code this is based on (https://gist.github.com/borgar/5b59dc2d70d1a93bdce5e4fb15ec7d71#file-matchranking-js) has 0.5 and -0.5. The commit which made this change is not very descriptive: https://github.com/kristjanmik/kjosturett-web/commit/3c9731b5e6d2278d6906ed2bf41468cd6a90c2e8

cc @sraka1 @rthor