odeialba / moodle-mod_sortvoting

This plugin allows sorting a list of options by preference of the user, instead of just selecting one.
https://moodle.org/plugins/mod_sortvoting
GNU General Public License v3.0
3 stars 0 forks source link
condorcet condorcet-methods condorcet-voting instant-runoff-voting irv moodle moodle-activity moodle-plugin php preference preferential-voting ranked-choice ranked-choice-voting ranked-voting rcv vote-application vote-system voting

Preference Voting Build Status

This plugin lets you rank multiple options in order of preference, instead of just choosing one.

This way, the most preferred option by all the voters can win, even if it is not the most popular one.

This voting method is also known as Condorcet method for Voting, Card Sorting, Ranked Choice Voting (RCV) or Instant Runoff Voting (IRV).

Examples:

Setup:

Traditional voting:

Votes:

Results in traditional voting:

Explanation:

A gets 2 votes from user1 and user2 and all the other options get one vote each. Users 3, 4 and 5 might prefer to have the option B before having the option A, but since the majority voted for A, A will be the winner.

Voting with the plugin:

Votes:

Results voting with the plugin:

Explanation:

If we calculate the average position of the options in the votes the winner would be B.

Installing via uploaded ZIP file

  1. Log in to your Moodle site as an admin and go to Site administration > Plugins > Install plugins.
  2. Upload the ZIP file with the plugin code. You should only be prompted to add extra details if your plugin type is not automatically detected.
  3. Check the plugin validation report and finish the installation.

Installing manually

The plugin can be also installed by putting the contents of this directory to

{your/moodle/dirroot}/mod/sortvoting

Afterwards, log in to your Moodle site as an admin and go to Site administration > Notifications to complete the installation.

Alternatively, you can run

$ php admin/cli/upgrade.php

to complete the installation from the command line.

TODO - Roadmap

License

2023 Odei Alba odeialba@odeialba.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.