OptionalclampGrades?: booleanWhether a ballot ranked past the worst grade gives its ranks from the worst grade on that grade (default false: it throws).
OptionalcountBlank?: booleanWhether a ballot that grades no one gives everyone the worst grade too,
with unrankedLast (default false).
Optionalgrades?: numberNumber of grades, best first (default 6). A ballot tier's index is its grade.
OptionalunrankedLast?: booleanWhether a ballot that grades someone gives the candidates it leaves out the worst grade (default true). Pass false to count only given grades.
ReadonlycandidatesReadonlygradesStatic ReadonlyisStatic ReadonlylabelRanking built by repeated wins instead of the method's own full ranking: run the method, record the winning tier, then re-run it restricted to the remaining candidates for the next place, and so on.
Differs from ranking() whenever the method's full ranking disagrees
with how it ranks subsets — e.g. instant runoff orders losers by
elimination time, while iterating re-elects a winner at every place.
Result of the vote. The first item lists the winners of the vote.
For example this ranking means that Bear wins, Sheep is second and Lion third
[ [ 'Bear' ], [ 'Sheep' ], [ 'Lion' ] ]
The same grades, among candidates only: unlike other ballot methods, it
does not count afresh, as a grade does not depend on who else runs. With
unrankedLast, those a ballot left out keep its worst grade, even if it
graded none of candidates.
StaticwithThe method as an Election method, with options for its constructor and
mode or label.
Optionallabel?: stringName in traces (TieBreakStep.name, StepResult.name) instead of the
method's label.
Optionalmode?: "restricted" | "full" | "recursive"Which candidates the method ranks a tie among: the tied ones
('restricted', default), everyone ('full'), or the tied ones, then
those of each tie that leaves, until none splits ('recursive').
Ranks by majority grade, ties broken by Balinski–Laraki's majority value.
Wikipedia: Majority judgment