| Crates.io | benf |
| lib.rs | benf |
| version | 2.5.16 |
| created_at | 2025-06-30 17:59:48.22596+00 |
| updated_at | 2025-12-11 12:31:34.965913+00 |
| description | Benford's Law analysis CLI - convenience wrapper for lawkit benf |
| homepage | https://github.com/kako-jun/lawkit |
| repository | https://github.com/kako-jun/lawkit |
| max_upload_size | |
| id | 1732142 |
| size | 60,873 |
Benford's Law analysis CLI tool. Detect anomalies in numerical data for fraud detection and data quality assessment.
Note: This is a convenience wrapper for
lawkit benf. For additional statistical laws (Pareto, Zipf, Normal, Poisson) and advanced features, see lawkit.
cargo install benf
# Analyze a file
benf data.csv
# From stdin
cat numbers.txt | benf -
# Output formats
benf data.csv --format json
benf data.csv --format csv
-f, --format <FORMAT> Output: text, csv, json, yaml, toml, xml
-q, --quiet Minimal output
-v, --verbose Detailed output
--filter <RANGE> Filter numbers (e.g., >=100, <1000)
--no-color Disable colors
| Code | Meaning |
|---|---|
| 0 | LOW/MEDIUM risk - data conforms to Benford's Law |
| 10 | HIGH risk (p ≤ 0.05) |
| 11 | CRITICAL risk (p ≤ 0.01) |
MIT