<commit_before>regulatory-comments
===================

Extracts comments on proposed Virginia regulations, emits JSON.<commit_msg>Instructions and to-do<commit_after># Regulatory Comments Scraper

Extracts public comments on proposed Virginia regulations, as submitted to the [Virginia Regulatory Townhall](http://townhall.virginia.gov/), and saves each comment as a JSON file.

## Instructions

* Create a `json` directory where the program can save files.
* Run `parser.php`, either by invoking it from a public URL or at the command line (`php parser.php`).

## To Do

* Support resumable downloads—rather than re-scraping everything, allow it to pick up where it left off. (This can be done presently by changing `$min` to a value other than `1`—specifically, the ID with which the parser should begin.) 
{'fraction_non_alphanumeric': 0.09517923362175525, 'fraction_numerical': 0.0012360939431396785, 'mean_word_length': 5.136363636363637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1387214', 'n_tokens_mistral': 219, 'n_tokens_neox': 208, 'n_words': 103}