{"id":15964729,"url":"https://github.com/waldyrious/em-quem-votar","last_synced_at":"2026-03-04T14:31:40.490Z","repository":{"id":17311471,"uuid":"20082198","full_name":"waldyrious/em-quem-votar","owner":"waldyrious","description":"Ferramenta de apoio às Eleições Parlamentares Europeias de 25 de Maio de 2014","archived":false,"fork":false,"pushed_at":"2015-03-16T08:31:39.000Z","size":236,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"gh-pages","last_synced_at":"2025-02-22T22:14:41.810Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://waldyrious.github.io/em-quem-votar","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waldyrious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-23T00:55:14.000Z","updated_at":"2015-03-16T08:31:40.000Z","dependencies_parsed_at":"2022-09-14T22:55:07.584Z","dependency_job_id":null,"html_url":"https://github.com/waldyrious/em-quem-votar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/waldyrious/em-quem-votar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waldyrious%2Fem-quem-votar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waldyrious%2Fem-quem-votar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waldyrious%2Fem-quem-votar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waldyrious%2Fem-quem-votar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waldyrious","download_url":"https://codeload.github.com/waldyrious/em-quem-votar/tar.gz/refs/heads/gh-pages","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waldyrious%2Fem-quem-votar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30083744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T13:22:36.021Z","status":"ssl_error","status_checked_at":"2026-03-04T13:20:45.750Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T17:20:29.402Z","updated_at":"2026-03-04T14:31:40.463Z","avatar_url":"https://github.com/waldyrious.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"The scoring algorithm uses the 5-point scale for answering the questions:\n* -2: Completely disagree\n* -1: Tend to disagree\n*  0: Neutral\n*  1: Tend to agree\n*  2: Completely agree\n\nThe formula for the scoring algorithm is described in the following tables\n(where x is the user's choice and y is the party's choice for any given question):\n\n\nStart with *x*y*, which provides a good base,\namplifying votes with matching signs\nand penalizing opposite votes,\nproportionately to their intensity:\n```\n     -2   -1    0    1    2\n   ┌────┬────┬────┬────┬────┐\n-2 │  4 │  2 │  0 │ -2 │ -4 │\n   ├────┼────┼────┼────┼────┤\n-1 │  2 │  1 │  0 │ -1 │ -2 │\n   ├────┼────┼────┼────┼────┤\n 0 │  0 │  0 │  0 │  0 │  0 │   Table 1:  x*y\n   ├────┼────┼────┼────┼────┤\n 1 │ -2 │ -1 │  0 │  1 │  2 │\n   ├────┼────┼────┼────┼────┤\n 2 │ -4 │ -2 │  0 │  2 │  4 │\n   └────┴────┴────┴────┴────┘\n```\n\nThen subtract *abs(x-y)*, which penalizes disagreement even for scores in the same direction.\nFor example, (1,2) should count less than (1,1).\nThis It also ensures that \"no opinion\" still correlates (slightly) negatively with any opinion.\n```\n     -2   -1    0    1    2\n   ┌────┬────┬────┬────┬────┐\n-2 │  0 │ -1 │ -2 │ -3 │ -4 │\n   ├────┼────┼────┼────┼────┤\n-1 │ -1 │  0 │ -1 │ -2 │ -3 │\n   ├────┼────┼────┼────┼────┤\n 0 │ -2 │ -1 │  0 │ -1 │ -2 │   Table 2:  -abs(x-y)\n   ├────┼────┼────┼────┼────┤\n 1 │ -3 │ -2 │ -1 │  0 │ -1 │\n   ├────┼────┼────┼────┼────┤\n 2 │ -4 │ -3 │ -2 │ -1 │  0 │\n   └────┴────┴────┴────┴────┘\n```\n\nThe formulas are then combined as *2(x*y) - 3*abs(x-y)*.\nThis uses a weight factor of 2 for the first component\nand 3 for the second component,\nwhich ensures that, for instance, (1,1) gets a heavier score\nthan (1,2) or (2,1) (the opposite was the case\nwith the simple multiplication table, or with a weight-less subtraction).\n```\n     -2   -1    0    1    2\n   ┌────┬────┬────┬────┬────┐\n-2 │  8 │  1 │ -6 │-13 │-20 │\n   ├────┼────┼────┼────┼────┤\n-1 │  1 │  2 │ -3 │ -8 │-13 │\n   ├────┼────┼────┼────┼────┤\n 0 │ -6 │ -3 │  0 │ -3 │ -6 │   Table 3:  2(x*y) - 3*abs(x-y)\n   ├────┼────┼────┼────┼────┤\n 1 │-13 │ -8 │ -3 │  2 │  1 │\n   ├────┼────┼────┼────┼────┤\n 2 │-20 │-13 │ -6 │  1 │  8 │\n   └────┴────┴────┴────┴────┘\n```\n\nTo prevent agreement in the neutral score from not counting positively,\nwe can add a bias across the board, e.g. *2(x*y) - 3*abs(x-y) + 1*:\n```\n     -2   -1    0    1    2\n   ┌────┬────┬────┬────┬────┐\n-2 │  9 │  2 │ -5 │-12 │-19 │\n   ├────┼────┼────┼────┼────┤\n-1 │  2 │  3 │ -2 │ -7 │-12 │\n   ├────┼────┼────┼────┼────┤\n 0 │ -5 │ -2 │  1 │ -2 │ -5 │   Table 4:  2(x*y) - 3*abs(x-y) + 1\n   ├────┼────┼────┼────┼────┤\n 1 │-12 │ -7 │ -2 │  3 │  2 │\n   ├────┼────┼────┼────┼────┤\n 2 │-19 │-12 │ -5 │  2 │  9 │\n   └────┴────┴────┴────┴────┘\n```\n**Note:** This may look asymmetrical (it is),\nbut that's a consequence of not allowing the central axes to be zero.\nSince they difference values (table 2) are subtracted from the initial table (which is symmetrical),\nthe whole table ends up shifted downwards.\n\nHowever, it's worth noting that the difference beween any adjacent table cells is 7 accross the board.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaldyrious%2Fem-quem-votar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaldyrious%2Fem-quem-votar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaldyrious%2Fem-quem-votar/lists"}