| Crates.io | benf |
| lib.rs | benf |
| version | 2.1.1 |
| created_at | 2025-06-30 17:59:48.22596+00 |
| updated_at | 2025-07-09 12:36:33.420259+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 | 8,541 |
A convenience command for Benford Law analysis, part of the lawkit statistical analysis toolkit.
# Install both benf and lawkit
cargo install lawkit benf
# Basic analysis
echo "123 456 789 101 234" | benf
# File analysis
benf data.csv --format json
# Advanced options (requires lawkit)
lawkit benf data.xlsx --verbose --filter ">=1000"
Benford Law states that in many naturally occurring datasets, the first digit 1 appears about 30% of the time, 2 appears about 18% of the time, and so on. Deviations from this pattern often indicate:
This benf command is a convenience wrapper for lawkit benf. For complete statistical analysis capabilities, use lawkit:
lawkit benf - Fraud detection and anomaly analysislawkit pareto - 80/20 rule and concentration measurementlawkit zipf - Power-law distribution analysislawkit normal - Normality testing and outlier detectionlawkit poisson - Rare event analysislawkit compare data.csvlawkit generate benf --samples 1000--optimize flag for large datasets# Install the full toolkit (recommended)
cargo install lawkit
# Or install just this convenience command
cargo install benf
# Or download binaries
# https://github.com/kako-jun/lawkit/releases
# Basic fraud detection
benf expenses.csv
# Financial audit with detailed output
benf quarterly-report.xlsx --verbose --format json
# Process large datasets efficiently
lawkit benf big-data.csv --optimize --min-count 1000
# Compare multiple statistical laws
lawkit compare financial-data.csv
# Generate test data for validation
lawkit generate benf --samples 10000 | lawkit benf --format json
MIT License - see LICENSE for details.
💡 Tip: For professional statistical analysis with multiple laws and advanced features, use the full lawkit command instead of individual law commands.