get_party_cohesion
Compute per-party voting cohesion for a bill, including Rice index and dissenters from party majority.
Instructions
특정 법안에 대한 정당별 표결 응집도를 분석합니다 (연구 전용 도구).
Compute per-party voting cohesion for a bill:
yes/no/abstain counts per party
Rice index: |찬성 - 반대| / (찬성 + 반대) — 0 = perfect split, 1 = unanimous
dominant position per party (찬성 or 반대)
individual dissenters (voted against or abstained from party majority)
Rice index excludes 기권 from the denominator (standard political science convention). 기권 voters appear in dissenters["abstained"] when their party had a clear position.
Typical workflow:
get_vote_results(assembly=assembly, bill_name=...) → find BILL_ID
get_party_cohesion(bill_id=BILL_ID, assembly=assembly) → cohesion analysis
IMPORTANT — requires BILL_ID (PRC_...), not BILL_NO: • Get BILL_ID from get_vote_results, search_bills, or get_pending_bills.
Args: bill_id: 의안ID — 필수 (PRC_... 형식, 예: "PRC_H2W6O0K2D1T1Y2B0...") assembly: 대수 — 필수 (예: "22")
Returns: bill_id: 입력된 의안ID total_voted: 총 표결 의원 수 (찬성 + 반대 + 기권) overall: {"yes": N, "no": N, "abstain": N} by_party: 정당별 집계 (총 투표수 내림차순 정렬) Each party: {yes, no, abstain, total_voted, rice_index, dominant_position, unanimous} dissenters: 당론 이탈 의원 목록 Each dissenter: {name, party, district, vote, party_dominant, type} type: "opposite" (당론 반대방향 투표) | "abstain" (당론 있는데 기권) errors: 에러 (없으면 빈 dict) message: 요약 메시지
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill_id | Yes | ||
| assembly | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||