<commit_before># PCN Linter

> Because PCN data can be rife with errors

PCN Linter is a validation tool that adheres to [PCN Spec 1.0](https://github.com/mjswensen/pcn-spec).

## Usage

    node pcnlint.js examples/pizza-parlor.json

Pass a list of files to pcnlint to get back exceptions in each document's adherence to the spec.

## Todo

[*] Get the PCN-Spec example to pass
[ ] Get other PCN examples to pass
[ ] Prettify error output
[ ] Support input from `stdin`
<commit_msg>Updated README with latest instructions<commit_after># PCN Linter

> Because PCN data can be rife with errors

PCN Linter is a validation tool that adheres to [PCN Spec 1.0](https://github.com/mjswensen/pcn-spec).

## Usage

    npm install -g pcnlint

Then you can...

    pcnlint pizza-parlor.json

Or...

    cat pizza-parlor.json | pcnlint

When using file names as parameters, you can chain together multiple files to lint them all together.

## Todo

- [x] Get the PCN-Spec example to pass
- [x] Support input from `stdin`
- [ ] Get other PCN examples to pass
- [ ] Prettify error output
- [ ] Support recursive file input


{'fraction_non_alphanumeric': 0.08445642407906559, 'fraction_numerical': 0.0035938903863432167, 'mean_word_length': 3.456, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3642991', 'n_tokens_mistral': 373, 'n_tokens_neox': 353, 'n_words': 149}