wordchoice: Get word counts and distributions

[ bsd3, library, program, web ] [ Propose Tags ]

A command line tool to compute the word distribution from various types of document, converting to text with pandoc.

[Skip to Readme]
Dependencies base (>1 && <1), bytestring, Chart, Chart-diagrams, containers, Glob, lens, optparse-applicative, pandoc, system-filepath, text, wordchoice [details]
License BSD-3-Clause
Copyright 2017 Author name here
Author Author name here
Maintainer example@example.com
Revised Revision 1 made by vmchale at Fri Mar 30 19:36:38 UTC 2018
Category Web
Home page https://github.com/githubuser/wordchoice#readme
Source repo head: git clone https://github.com/githubuser/wordchoice
Uploaded by vmchale at Sat Aug 12 21:36:44 UTC 2017
Distributions NixOS:
Executables wrd
Downloads 2265 total (13 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-08-12 [all 1 reports]
Hackage Matrix CI





Enable build with llvm backend


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Readme for wordchoice-

[back to package description]

Wordchoice Command-Line Tool

Build Status


The following will print the 10 most used words.

 $ wordchoice test/ulysses.txt -n10
 13609: the
 8134: of
 6550: and
 5841: a
 4788: to
 4619: in
 3034: his
 2712: he
 2431: I
 2391: with

To print the 10 most used words and write a bar graph:

 $ wordchoice test/ulysses.txt -n10 -o distribution.html



Download the binaries from the release page for 64-bit Linux, ARM Linux, and 64-bit Windows.


Install stack, following instructions here. Then:

 $ stack install wordchoice

You might need to do a stack setup first.