freq: Are you ready to get freaky?

[ data, library, mit, program ] [ Propose Tags ]

This library provides a way to train a model that predicts the "randomness" of an input ByteString.

[Skip to Readme]
Versions [faq] 0.0.0,,,,,
Dependencies base (>=4.9 && <5.0), bytestring, containers, deepseq, freq, primitive (>=0.6.1) [details]
License MIT
Author Daniel Cartwright
Category Data
Home page
Bug tracker
Source repo head: git clone -b master
Uploaded by chessai at Tue Jun 5 20:32:30 UTC 2018
Distributions NixOS:
Executables freq-train
Downloads 640 total (84 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2018-06-05 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for freq-

[back to package description]



This is a simple cryptanalytic frequency analysis tool that uses english character digrams as a probabilistic model for scoring ByteStrings according to their randomness (0..1, 0 being the most random, 1 being the least random).


I currently use this to validate domain names, and so the training data available consists of about 6.5 Megabytes of Public Domain 19th and 20th century English novels. You can feed any training data you wish to 'freq' to achieve different results.