{"id":29284439,"url":"https://github.com/denisecase/zig-bill-utils","last_synced_at":"2025-10-04T17:58:30.536Z","repository":{"id":295748300,"uuid":"990926673","full_name":"denisecase/zig-bill-utils","owner":"denisecase","description":"Toolkit for analyzing U.S. legislative bills.","archived":false,"fork":false,"pushed_at":"2025-05-30T17:06:08.000Z","size":11650,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-05T21:03:24.306Z","etag":null,"topics":["legislation","usa","utilities","zig","ziglang"],"latest_commit_sha":null,"homepage":"https://github.com/denisecase/zig-bill-utils/tree/main/output/2025-hconres0014","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denisecase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-26T21:29:39.000Z","updated_at":"2025-05-30T17:06:13.000Z","dependencies_parsed_at":"2025-05-27T07:42:50.204Z","dependency_job_id":null,"html_url":"https://github.com/denisecase/zig-bill-utils","commit_stats":null,"previous_names":["denisecase/zig-bill-utils"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/denisecase/zig-bill-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fzig-bill-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fzig-bill-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fzig-bill-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fzig-bill-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denisecase","download_url":"https://codeload.github.com/denisecase/zig-bill-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denisecase%2Fzig-bill-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278350987,"owners_count":25972676,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["legislation","usa","utilities","zig","ziglang"],"created_at":"2025-07-05T21:02:11.847Z","updated_at":"2025-10-04T17:58:30.527Z","avatar_url":"https://github.com/denisecase.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zig-bill-utils\n\n[![Built with Zig](https://img.shields.io/badge/Built%20with-Zig-ec912d?logo=zig\u0026logoColor=white\u0026style=flat-square)](https://ziglang.org)\n\n\n\u003e Toolkit for analyzing U.S. legislative bills. \n\nTested with **H.Con.Res.14:**  _Establishing the congressional budget for the United States Government for fiscal year 2025 and setting forth the appropriate budgetary levels for fiscal years 2026 through 2034._\n- 119th Congress (2025-2026)\n\nBuilt with a recent version of [Zig](https://ziglang.org/documentation/)\n - [zig-version.txt](zig-version.txt)\n - Update to latest at \u003chttps://ziglang.org/download/\u003e\n\nUse high-performance Zig to enhance Python projects, e.g., [py-bill-utils](https://github.com/denisecase/py-bill-utils).\n\n## CLI Tools\n\nEach tool is available in two versions:\n\n- `_file/`: Reads from file using std.fs.File.\n- `_stream/`: Reads from stdin using std.io streams.\n\nAll tools are implemented using Zig's standard library.\nThis project provides CLI tools in `zig-out` os-specific folders.\n\n| Tool                | Description                                           |\n|---------------------|-------------------------------------------------------|\n| `clean_bill`        | Cleans bill text (removes line numbers, whitespace)   |\n| `extract_amendments`| Extracts amendments            |\n| `extract_headings`  | Extracts section headers (`TITLE`, `SEC.`)            |\n| `extract_money`     | Extracts funding amounts (e.g., `$5,000,000`)         |\n| `filter_keywords`   | Filters lines by keyword (listed in keywords.txt)     |\n| `split_sections`    | Splits full bill into files by section                |\n\n## Features\n\n- **Fast \u0026 lightweight**: Built with Zig for speed and clarity\n- **No runtime dependencies**: Fully static executables\n- **Self-documenting**: Every tool has `--help`\n\n## Quick Start\n\nRun pipeline on each `data/billname` folder:\n\n```pwsh\n./zig-bill-utils-run.ps1\n```\n\n## Development\n\nChoose commands to build for each target as needed (Zig 0.15+ required) or run them all with PowerShell Core.\n\n```pwsh\nzig build install -Dtarget=aarch64-macos -Doptimize=ReleaseSafe\nzig build install -Dtarget=x86_64-linux -Doptimize=ReleaseSafe\nzig build install -Dtarget=x86_64-macos -Doptimize=ReleaseSafe\nzig build install -Dtarget=x86_64-windows -Doptimize=ReleaseSafe \n\n\n./build_all.ps1\n```\n\nBinaries are written to `zig-out/` in operating-system specific folders.\n\n## Project Organization\n\n- `data/billname/` \n  - bill.txt\n  - amendments.csv\n  - keywords.txt\n- `src/` — Zig files for the CLI tools and shared utils and logger\n- `output/billname/`\n  - amendments/\n  - sections/\n  - clean.txt\n  - headings.txt\n  - keyword_hits_amendments.txt\n  - keyword_hits.txt\n  - money_lines.csv \n\n## Reference\n\n- [Congress.gov](https://www.congress.gov/)\n  - [2025-hconres0014](https://www.congress.gov/bill/119th-congress/house-concurrent-resolution/14)\n- [Zig](https://ziglang.org/)\n  - [Language Reference](https://ziglang.org/documentation/master/)\n  - [Standard Library](https://ziglang.org/documentation/master/std/)\n  - [Build System](https://ziglang.org/learn/build-system/)\n\n## License\n\nMIT License © 2025 Denise Case\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenisecase%2Fzig-bill-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenisecase%2Fzig-bill-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenisecase%2Fzig-bill-utils/lists"}