benf

Crates.iobenf
lib.rsbenf
version2.5.16
created_at2025-06-30 17:59:48.22596+00
updated_at2025-12-11 12:31:34.965913+00
descriptionBenford's Law analysis CLI - convenience wrapper for lawkit benf
homepagehttps://github.com/kako-jun/lawkit
repositoryhttps://github.com/kako-jun/lawkit
max_upload_size
id1732142
size60,873
kako-jun (kako-jun)

documentation

https://docs.rs/benf

README

benf

Crates.io License: MIT

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.

Installation

cargo install benf

Usage

# Analyze a file
benf data.csv

# From stdin
cat numbers.txt | benf -

# Output formats
benf data.csv --format json
benf data.csv --format csv

Options

-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

Exit Codes

Code Meaning
0 LOW/MEDIUM risk - data conforms to Benford's Law
10 HIGH risk (p ≤ 0.05)
11 CRITICAL risk (p ≤ 0.01)

See Also

  • lawkit - Full statistical law analysis toolkit
  • pareto - Pareto principle (80/20 rule) analysis

License

MIT

Commit count: 0

cargo fmt