// Builds wa_i638_campaign_statements.csv (curated table) and _records.json (dataset statements) from the // 2026 statewide voters' pamphlet, Initiative Measure IL26-638, p. 22. Quotes are verbatim from the PDF text layer. const fs=require("fs"),crypto=require("crypto"); const VP="vp-2026-il26-638-p22"; const yesSp=["Committee for the argument for Initiative IL26-638 (Alesha Perkins and five co-authors)","Authors of the official voters' pamphlet argument for IL26-638"]; const noSp=["Committee for the argument against Initiative IL26-638 (Justin Gill, APRN, and five co-authors)","Authors of the official voters' pamphlet argument against IL26-638"]; // [id, side, heading, quote, claimType, context] const S=[ ["yes-currently-allows","yes","Vote yes to protect fairness in girls' sports.","Washington currently allows males to compete against girls, undermining opportunities generations before them fought to secure.","assertion","The Yes argument's statement of the problem the measure addresses: current Washington rules on who may enter girls' events."], ["yes-world-policies","yes","Approving IL26-638 would align Washington with world sports policies.","Federal law, the Women's Tennis Association, World Athletics, and the International Olympic Committee have all adopted policies to protect eligibility for the female category.","assertion","Offered to show that sex-based eligibility rules are already common at the national and international level."], ["yes-ioc-quote","yes","Approving IL26-638 would align Washington with world sports policies.","In March 2026, the IOC president stated, \"It is absolutely clear that it would not be fair for biological males to compete in the female category.\"","assertion","A quotation the Yes argument attributes to the president of the International Olympic Committee."], ["yes-clearance-required","yes","Voting yes gives all students the opportunity to participate in interscholastic sports.","Medical clearance is already required to participate safely.","assertion","Refers to the sports physical Washington students already need before playing interscholastic sports."], ["yes-routine-care-aap","yes","Voting yes gives all students the opportunity to participate in interscholastic sports.","Students would compete in the category that aligns with their sex, verified during routine, medically necessary primary care recommended by the American Academy of Pediatrics.","assertion","Describes how the Yes side says verification would work; the American Academy of Pediatrics objected to being cited."], ["yes-birth-records","yes","Voting yes gives all students the opportunity to participate in interscholastic sports.","During a private, consented visit, a licensed medical professional would verify sex based on the student's birth records, medical history and/or a standard, non-invasive physical examination.","assertion","The Yes side's account of what a provider would rely on; compare the three bases the measure's Section 3(2) lists."], ["yes-rebuttal-no-invasive","yes","Rebuttal of argument against","IL26-638 doesn't require invasive or expensive exams.","assertion","The Yes reply to the No argument that the measure requires genital examinations."], ["yes-rebuttal-record","yes","Rebuttal of argument against","Standard primary pediatric care already verifies sex; transferring that record to sports is sufficient.","assertion","The Yes reply on how verification would work in practice."], ["yes-rebuttal-advantage","yes","Rebuttal of argument against","Male athletic advantage is well established.","assertion","The Yes rebuttal's case for separate female categories."], ["yes-rebuttal-269","yes","Rebuttal of argument against","Washington competition results document at least 269 placements by male athletes competing in girls' interscholastic categories, including 74 firsts and 156 top-three finishes.","assertion","The Yes rebuttal's count of how often male athletes have placed in Washington girls' events; compare the No side's 5 - 10 athletes."], ["yes-rebuttal-no-ban","yes","Rebuttal of argument against","The initiative doesn't ban anyone from sports. It simply requires participation consistent with one's sex.","assertion","The Yes answer to the No description of the measure as a ban."], ["no-age-8","no","Vote No To Protect All Girls","We all want fairness and safety in sports, but this poorly written measure would require girls as young as 8 to undergo intrusive medical sex certification as a new part of sports physicals.","assertion","Opens the No argument with who would have to be verified and at what age."], ["no-birth-certificates","no","Vote No To Protect All Girls","It bans parents from using birth certificates.","assertion","Refers to the measure's list of the only bases a provider may rely on; birth certificates are not on it."], ["no-section-2","no","Vote No To Protect All Girls","Section 2 says doctors must subject girls to invasive examinations of their \"reproductive organs,\" or expensive genetic or hormone tests.","assertion","The No argument's reading of the verification rule, which appears in Section 3(2) of the measure."], ["no-boys-exempt","no","Vote No To Protect All Girls","These requirements apply to girls only, boys are exempt.","assertion","Notes that only students entering female-only competition must provide the verification."], ["no-most-extreme","no","Vote No Because It's the Most Extreme Proposal of Its Kind In The U.S","Vote No Because It's the Most Extreme Proposal of Its Kind In The U.S","assertion","A heading of the No argument comparing the measure with similar laws in other states."], ["no-megadonor","no","Vote No Because It's the Most Extreme Proposal of Its Kind In The U.S","This initiative is bankrolled by an ultra-conservative mega-donor to distract from rising costs, foster hate, and divide our communities.","assertion","Refers to the Yes campaign's funding by Let's Go Washington and its founder; the stated motives are the No campaign's characterization."], ["no-requires-exams","no","Vote No Because Doctors and Nurses Warn It Requires Invasive Genital Exams On Girls","Vote No Because Doctors and Nurses Warn It Requires Invasive Genital Exams On Girls","assertion","A heading of the No argument on what verification would involve."], ["no-groups-warn","no","Vote No Because Doctors and Nurses Warn It Requires Invasive Genital Exams On Girls","The WA State Nurses Association, Planned Parenthood Alliance Advocates, and doctors warn this measure would subject girls to medically unnecessary, embarrassing, and potentially harmful genital exams.","assertion","Names the organizations warning about genital exams."], ["no-fully-clothed","no","Vote No Because Doctors and Nurses Warn It Requires Invasive Genital Exams On Girls","Today, students remain fully clothed during sports physicals.","assertion","Describes current sports physicals, to contrast them with verification under the measure."], ["no-147500","no","Vote No Because Doctors and Nurses Warn It Requires Invasive Genital Exams On Girls","Many of Washington's 147,500 girls without a regular family doctor would be subject to genital examinations by total strangers.","assertion","A count of Washington girls without a regular doctor, used to argue many would be examined by unfamiliar providers."], ["no-discourages","no","Vote No Because It Discourages Girls From Playing Sports","Vote No Because It Discourages Girls From Playing Sports","prediction","A heading of the No argument predicting the measure's effect on girls' participation."], ["no-5-10","no","Vote No Because It Discourages Girls From Playing Sports","This statewide blanket ban to kick 5 - 10 trans girls off school teams will negatively impact all girls, leaving no room for case by case decisions.","assertion","The No side's estimate of how many transgender girls the measure would affect; compare the Yes side's 269 placements."], ["no-rebuttal-opposed","no","Rebuttal of argument for","IL26-638 is opposed by pediatricians, nurses, parents, and sexual assault prevention groups because it discriminates against girls and puts them at risk of harm.","assertion","The No rebuttal's list of opponents, answering the Yes argument's citation of the American Academy of Pediatrics."], ["no-rebuttal-clothed","no","Rebuttal of argument for","Today girls in elementary, middle, and high school remain fully clothed during sports physicals.","assertion","Repeats the fully-clothed point and extends it to elementary school."], ["no-rebuttal-doctors","no","Rebuttal of argument for","Doctors say this poorly written measure will subject girls to new invasive genital examinations.","assertion","Repeats the genital-examination warning in the No rebuttal."], ["no-rebuttal-extreme","no","Rebuttal of argument for","This measure - the most extreme in the nation - exempts boys, and bans parents from using birth certificates.","assertion","Repeats three claims from the No argument in one sentence."] ]; const statements=S.map(([id,side,head,quote,claimType,context])=>{const sp=side=="yes"?yesSp:noSp;return {id,speaker:sp[0],speakerRole:sp[1],date:"2026-09-17",venue:`2026 Washington voters' pamphlet, Initiative Measure IL26-638, p. 22, ${side=="yes"?"argument for":"argument against"}: "${head}"`,quote,context,claimType,sourceId:VP}}); const esc=v=>'"'+String(v).replace(/"/g,'""')+'"'; const rows=[["statement_id","side","pamphlet_section","quote","claim_type","source_id"].join(",")]; S.forEach(([id,side,head,quote,type])=>rows.push([id,side,head,quote,type,VP].map(esc).join(","))); const csv=rows.join("\n")+"\n"; fs.writeFileSync(__dirname+"/wa_i638_campaign_statements.csv",csv,"utf8"); const rec=JSON.stringify({statements},null,2); fs.writeFileSync(__dirname+"/wa_i638_campaign_statements_records.json",rec,"utf8"); const h=b=>"sha256:"+crypto.createHash("sha256").update(b).digest("hex"); console.log(JSON.stringify({n:statements.length,yes:S.filter(s=>s[1]=="yes").length,no:S.filter(s=>s[1]=="no").length,csv:{bytes:Buffer.byteLength(csv),sha:h(Buffer.from(csv))},json:{bytes:Buffer.byteLength(rec),sha:h(Buffer.from(rec))}}));