Introduction

The legislation model structures a complete bill as sections, nested provisions, headings and enumerators, with every span tied to the original text. The goal is a machine-readable representation of the proposed legislation, not a summary or redraft. Bills are distinct from enacted Acts and from the codified law those Acts may amend.

The model weights and model card and training data and evaluation evidence are published on Hugging Face for inspection and replication.

The function

The input is a lossless index of the original bill text: words, punctuation and non-space whitespace, with their character positions. Unlisted positions are ordinary spaces. The model returns a nested JSON tree, not an answer about the law.

Each node has the shape [tag, start, end, attributes, children]. Offsets are zero-based Unicode character positions into the original text, end exclusive—not positions in the indexed message. The root covers the whole bill; children must be ordered, nonoverlapping and contained in their parents.

This is the bills model. Enacted Acts, codified statutes and regulations use separate models and contracts.

A real bill, four ways

Connecticut HB 5173 (2021) — An Act Promoting Volunteerism. A complete, short bill from the saved CT campaign. Official CGA bill PDF ↗ · Open the reading page

1 · Source text

     General Assembly                     Proposed Bill No. 5173
      January Session, 2021               LCO No. 499


    Referred to Committee on APPROPRIATIONS

    Introduced by:
     REP. CARPINO, 32nd Dist.




 AN ACT PROMOTING VOLUNTEERISM.

 Be it enacted by the Senate and House of Representatives in General
 Assembly convened:

1         That the general statutes be amended to prohibit state agencies from
2      entering into collective bargaining agreements that limit the state's
3      ability to accept volunteer services.

       Statement of Purpose:
       To promote volunteerism in the state of Connecticut.




    LCO No. 499                                                          1 of 1

Download the exact source text

2 · Indexed input

Document type: bills. Text length: 718 Unicode characters.
5:12|"General"
13:21|"Assembly"
42:50|"Proposed"
51:55|"Bill"
56:58|"No"
58:59|"."
60:64|"5173"
64:71|"\n      "
71:78|"January"
79:86|"Session"
86:87|","
88:92|"2021"
107:110|"LCO"
111:113|"No"
113:114|"."
115:118|"499"
118:125|"\n\n\n    "
125:133|"Referred"
134:136|"to"
137:146|"Committee"
147:149|"on"
150:164|"APPROPRIATIONS"
164:170|"\n\n    "
170:180|"Introduced"
181:183|"by"
183:184|":"
184:190|"\n     "
190:193|"REP"
193:194|"."
195:202|"CARPINO"
202:203|","
204:208|"32nd"
209:213|"Dist"
213:214|"."
214:220|"\n\n\n\n\n "
220:222|"AN"
223:226|"ACT"
227:236|"PROMOTING"
237:249|"VOLUNTEERISM"
249:250|"."
250:253|"\n\n "
253:255|"Be"
256:258|"it"
259:266|"enacted"
267:269|"by"
270:273|"the"
274:280|"Senate"
281:284|"and"
285:290|"House"
291:293|"of"
294:309|"Representatives"
310:312|"in"
313:320|"General"
320:322|"\n "
322:330|"Assembly"
331:339|"convened"
339:340|":"
340:342|"\n\n"
342:343|"1"
352:356|"That"
357:360|"the"
361:368|"general"
369:377|"statutes"
378:380|"be"
381:388|"amended"
389:391|"to"
392:400|"prohibit"
401:406|"state"
407:415|"agencies"
416:420|"from"
420:421|"\n"
421:422|"2"
428:436|"entering"
437:441|"into"
442:452|"collective"
453:463|"bargaining"
464:474|"agreements"
475:479|"that"
480:485|"limit"
486:489|"the"
490:495|"state"
495:496|"'"
496:497|"s"
497:498|"\n"
498:499|"3"
505:512|"ability"
513:515|"to"
516:522|"accept"
523:532|"volunteer"
533:541|"services"
541:542|"."
542:551|"\n\n       "
551:560|"Statement"
561:563|"of"
564:571|"Purpose"
571:572|":"
572:580|"\n       "
580:582|"To"
583:590|"promote"
591:603|"volunteerism"
604:606|"in"
607:610|"the"
611:616|"state"
617:619|"of"
620:631|"Connecticut"
631:632|"."
632:641|"\n\n\n\n\n    "
641:644|"LCO"
645:647|"No"
647:648|"."
649:652|"499"
710:711|"1"
712:714|"of"
715:716|"1"
716:718|"\n\n"

Download the indexed input · Full system and user messages

3 · Original model tree

{
  "tree": [
    "bill",
    0,
    718,
    {
      "state": "connecticut",
      "native-type": "HB",
      "profile": "state-olm-v1"
    },
    [
      [
        "form",
        0,
        251,
        {},
        [
          [
            "state-meta",
            5,
            121,
            {
              "role": "unclassified"
            },
            []
          ],
          [
            "state-meta",
            125,
            166,
            {
              "role": "unclassified"
            },
            []
          ],
          [
            "state-meta",
            170,
            215,
            {
              "role": "unclassified"
            },
            []
          ],
          [
            "official-title",
            220,
            251,
            {},
            []
          ]
        ]
      ],
      [
        "state-enacting",
        251,
        341,
        {},
        []
      ],
      [
        "legis-body",
        341,
        718,
        {},
        [
          [
            "section",
            342,
            717,
            {
              "id": "section-342-717"
            },
            [
              [
                "enum",
                342,
                343,
                {},
                []
              ],
              [
                "text",
                343,
                717,
                {},
                []
              ]
            ]
          ]
        ]
      ]
    ]
  ]
}

Download the original model output · Example provenance

The spans point into the original source text, not the indexed message. The reader slices that source rather than regenerating its words.

4 · Rendered HTML

General Assembly Proposed Bill No. 5173 January Session, 2021 LCO No. 499
Referred to Committee on APPROPRIATIONS
Introduced by: REP. CARPINO, 32nd Dist.
AN ACT PROMOTING VOLUNTEERISM.
Be it enacted by the Senate and House of Representatives in General Assembly convened:
That the general statutes be amended to prohibit state agencies from entering into collective bargaining agreements that limit the state's ability to accept volunteer services. Statement of Purpose: To promote volunteerism in the state of Connecticut. LCO No. 499 1 of 1
About this saved prediction

The saved section treats a printed PDF line number as an enumerator and includes the purpose/footer. Original output is retained without correction. This is a real inference example, not a reference annotation or an accuracy result.

How it was trained

The federal + five-state version is a fresh full-language fine-tune of Qwen3.5-9B, with unused vision parameters frozen. Its 12,335 training documents comprise 8,335 federal bills and 800 each from Minnesota, Wisconsin, Washington, Hawaii and Texas. Connecticut was excluded from training.

Training ran for two epochs: 24,670 document presentations and 6,168 optimizer updates. The context was 32,768 tokens, with no silent truncation. Training used completion-only loss, BF16 autocast with FP32 master parameters, and factored Adafactor. The released native export is BF16.

The public model card contains the exact trained prompt, encoding and loading instructions. The matching dataset preserves the native training/evaluation bytes and a checked Parquet projection. State reference annotations are provisional, not expert semantic gold; there is no state holdout.

Where it stands

Federal eval200New federal + state model
Valid trees197/200 (98.5%)
Exact reference trees161/200 (80.5%)
Node F10.984077
Parent-edge F10.979139
Output caps / timeouts0 / 0

All 200 documents were attempted and remain in the denominator. The RTX 5090 evaluation used BF16, greedy decoding and batch one, with the original per-bin output limits and calibrated deadlines. This is an inherited development/selection cohort, not a fresh blind test or expert semantic evaluation.

The previous federal-only model remains on Hugging Face main. It scored 156/200 exact on GB10 at batch 16; hardware and batching differ, so the two runs are not a controlled hardware-matched comparison. Use the explicit federal-state-20261118-eval200 revision for the newer weights and evidence.

Connecticut reading site

Open the Connecticut bill index. It defaults to the latest available year and follows year → House/Senate → bill. Every reading page links to its official CGA source and identifies the saved version. The available examples are not a complete session or a claim of latest-version coverage.

CT semantic quality is not qualified. All 20 reviewed CT outputs had substantive errors despite mechanical validity; 17 falsely claimed Washington. Hierarchy, amendment scope and separation of purpose statements and page furniture remain known failure modes.

Readers use source text, not generated prose. Where a bounded source-derived display partition corrects the separation of a Proposed Bill’s provision, purpose statement and footer, that method is identified separately. The original model prediction remains available unchanged; a display correction does not improve the model’s benchmark result.

Official Connecticut publications remain authoritative. These pages are not legal advice or human legal review.