# Wordchoice Command-Line Tool
[](https://travis-ci.org/vmchale/wordchoice)
## Usage
The following will print the 10 most used words.
```bash
$ 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:
```bash
$ wordchoice test/ulysses.txt -n10 -o distribution.html
```
## Installation
### Manual
Download the binaries from the [release
page](https://github.com/vmchale/wordchoice/releases) for 64-bit Linux, ARM
Linux, and 64-bit Windows.
### Nix
Install [nix](https://nixos.org/nix/), then type:
```bash
nix-env -i wordchoice
```
to download the package for Mac or Linux.
### Stack
Install stack, following instructions
[here](https://docs.haskellstack.org/en/stable/README/). Then:
```bash
$ stack install wordchoice
```
You might need to do a `stack setup` first.
### Build
This repo should build with cabal, stack, and nix-build.