4 releases (breaking)
Uses new Rust 2024
new 0.4.0 | May 18, 2025 |
---|---|
0.3.0 | May 13, 2025 |
0.2.0 | May 6, 2025 |
0.1.0 | Apr 27, 2025 |
#81 in Value formatting
388 downloads per month
260KB
948 lines
A tool to analyze English text
Installation:
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
3850 d Dictionary
1 f Foreign
4 o Ordinal
1 r Roman
1 n Number
9 a Acronym
32 p Proper
1 s Symbol
6 u Unknown
Command-line options can be added to list all words of a kind.
Option | Kind | Description |
---|---|---|
-d |
Dictionary | Found in built-in dictionary |
-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 |
Dictionary
The dict
sub-command lists words from the built-in dictionary.
> booky dict words
word words
word words wording worded
- With no options, all dictionary entries are listed
- Using
-f
lists all known word forms
Dependencies
~2MB
~20K SLoC