Skip to content

Commit b1d6f5a

Browse files
committed
Improve interface. Add example chains.
1 parent c40e8e1 commit b1d6f5a

File tree

4 files changed

+1518
-31
lines changed

4 files changed

+1518
-31
lines changed

README

+16-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
# ntih (Naming Things Is Hard)
22

33
## ntih
4-
> ntih [LENGTH] [NUMBER] < EXAMPLE TEXT > WORDS
5-
Output a NUMBER nonsense words up to the given LENGTH
6-
from a Markov chain built from text on standard input.
74

8-
# License
9-
GPLv3 (see LICENSE)
5+
# Usage
6+
> ntih [OPTIONS] [LENGTH] [NUMBER] < EXAMPLE TEXT > WORDS
7+
Build a markov chain by sampling words from input text,
8+
then use it to generate COUNT words each composed of up to LENGTH characters.
9+
10+
OPTIONS
11+
-f CHAIN_FILE : File where the chain will be stored.
12+
-i INPUT_FILE : Input file from which to read sample words.
13+
-r : Force regeneration of CHAIN_FILE.
14+
15+
ENVIRONMENT
16+
$NTIHFILE : Default CHAIN_FILE from which to load a chain.
17+
$NTIHDICT : Default INPUT_FILE from which to generate a chain.
18+
19+
ntih © Mike Lalumiere 2018
20+
Licensed under GPLv3 (see LICENSE)
1021

1122
# Links
1223
GNU - https://www.gnu.org/software/

0 commit comments

Comments
 (0)