A tool to analyze English text
Installation:
```shell
cargo install booky
```
### Grouping Words by Kind
The `kind` sub-command reads UTF-8 text from `stdin`, which can be redirected
from a file. With no additional options, a summary of words of each kind is
listed:
```
> booky kind < Dr_Jeckyll_And_Mr_Hyde.txt
3914 l Lexicon
1 f Foreign
4 o Ordinal
0 r Roman
2 n Number
12 a Acronym
38 p Proper
16 s Symbol
7 u Unknown
```
Command-line options can be added to list all words of a kind.
`-l` | Lexicon | Found in built-in lexicon
`-f` | Foreign | Foreign words (non-English)
`-o` | Ordinal | Ordinal numbers (1st, 2nd, etc.)
`-r` | Roman | Roman numerals (IV, LXI, etc.)
`-n` | Number | Other words containing numbers
`-a` | Acronym | Acronyms / initialisms (ALL-CAPS)
`-p` | Proper | Proper names / nouns
`-s` | Symbol | Symbols / letters
`-u` | Unknown | Unknown (no other kind)
`-A` | All | All kinds
### Lexicon
The `lex` sub-command lists words from the built-in lexicon.
- Looks up all entries matching the provided word
- The `-f` option lists all known word forms
- With no options, all lexicon entries are listed
### Highlighting
The `hl` sub-command adds highlighting to a text.