freq: Are you ready to get freaky?

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

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

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.0.0,,,,,, 0.1.1
Dependencies base (>=4.9 && <4.13), binary (>=0.8 && <0.11), bytestring (>=0.10 && <0.11), containers (>=0.5 && <0.7), deepseq (>=1.4 && <1.5), primitive (>=0.6.4 && <0.7) [details]
License MIT
Author chessai
Maintainer chessai <>
Category Text, Data
Home page
Bug tracker
Source repo head: git clone -b master
Uploaded by chessai at 2019-04-29T20:38:29Z
Downloads 3433 total (21 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-04-29 [all 1 reports]

Readme for freq-0.1.1

[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.