Published package / CLIR

doctrine.vote_methods

v0.1.0

Перевод голосов в места и в победителя: словарь способов подсчёта

A package can be printed as a standalone module in a general-purpose language that answers without the rules engine: an answer and its status, with no proof, hashes or canonical document. Everything on this page comes from the generation plan built with the index; the gallery computes nothing of its own.

Generation plan

The plan builds: the package can be printed as a module.

plan format
law-backend-plan/0.7
capabilities
base layer only

Checked against package scenarios

Not checked: the package scenarios have not been run against generated modules. A plan that builds does not yet show that the answers coincide.

Target languages

print this planbslcsdarterlexgojavaktluaphppyrbrsscalaswiftts

Print the module from a repository checkout

./law dev backend corpus/clir/doctrine-vote-methods.lawir.json --target ts --target py --target go --out DIR

Module interface

Questions are public relations with a producing rule; inputs are the facts a question reads. Function names follow the language: ask_… in Python, ask.… in TypeScript, Ask… in Go.

Questions · 2

NameParametersMeaningReadsSources
electedtext, textвариант объявлен избранным в этом подсчётеRU-KZholds_seat_numberVOTE_METHODS_MODEL
preferstext, text, textбюллетень предпочитает первый вариант второмуRU-KZballot_ranksVOTE_METHODS_MODEL

Inputs · 2

NameParametersMeaning
ballot_rankstext, text, decбюллетень ставит вариант на эту позицию; первая позиция — самая предпочитаемаяRU-KZ
holds_seat_numbertext, text, decвариант получает в этом подсчёте своё k-е местоRU-KZ