@hackage wordchoice0.1.1.1

Get word counts and distributions

Wordchoice Command-Line Tool

Build Status

Usage

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

Installation

Manual

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

Stack

Install stack, following instructions here. Then:

 $ stack install wordchoice

You might need to do a stack setup first.