The detrospector package

[Tags:bsd3, program]

The detrospector program generates random text conforming to the general style and diction of a given source document. It associates each k-character substring of the source document with a probability distribution for the next character. These distributions are used to iteratively pick new characters for output. In other words, it samples a Markov chain derived from the source document.

Run detrospector -? for usage information. The program has several modes. It can generate random text, or invent individual random words which are not found in a dictionary. These modes require a chain file, which is built from a source document in another mode.

Design goals include speed and full Unicode support. I welcome suggestions and patches regarding any aspect of this program.


Versions 0.1, 0.2, 0.3
Dependencies base (>=3 && <5), binary (>=0.5), bytestring (>=0.9), cmdargs (>=0.6), containers (>=0.3), hashable (>=1.0), hashmap (>=1.1), mwc-random (>=0.8), text (>=0.8), zlib (>=0.5) [details]
License BSD3
Author Keegan McAllister <>
Maintainer Keegan McAllister <>
Stability Unknown
Category Text, Natural Language Processing
Uploaded Sun Sep 19 06:45:16 UTC 2010 by KeeganMcAllister
Distributions NixOS:0.3
Downloads 835 total (12 in the last 30 days)
0 []
Status Docs not available [build log]
All reported builds failed as of 2016-12-28 [all 7 reports]


Maintainer's Corner

For package maintainers and hackage trustees