generate markov chain from input text
- C 92.4%
- Shell 5.3%
- Makefile 2.3%
| doc | Fix typo | |
| src | Bugfixes | |
| t | Bugfixes | |
| CHANGELOG | Update CHANGELOG | |
| Configure | Bump | |
| LICENSE | Add LICENSE | |
| Makefile | Remove chmod | |
| README.md | No need for pkg-config | |
markov
markov is a command-line program written in C that outputs of a Markov chain generated from input text.
Here is an example of markov-generated text given a copy of Moby-Dick:
undone; if, when I met—the chamber-maid. "La! la!" she hailed the whole
thing is so called. Poor Pip! Pip! Pip! Hark ye, that he little Pip, who
would open in such a tone conveyed a grab into a whale vertically from
the Presidency of an instant; then flowed over the whale both the rule
among the eyes roll of ivory, leather one. No, no; only foamin’; When in
the ship during the barbaric virtues, and bull has Ahab in the matter
though, while the grizzly Manxman. "One daft ones already the steward an
infant Indian gave. But struggling ringleader was I see where your
objections indefinitely prolonged, if the clumsiest casks are unsealed,
the spell; he shall not then, will weld his regular soundings, not that
henceforth we yield no place in length; the abridged London tell me, the
drenched through, it’s no need of them, especially the regular way, as
faithful man he was once proceeded two skeletons belonged, seemed
closely wrapped in it so." "Some ten to it. This man required no small
measure this monster’s (whale’s) mouth, and though, as I didn’t see how
from these teeth, sprang from the entry a craft, so named with mine,
when the crew by its neck, so I hit, except under me? thought of the
rumors of the old captain has been plainly known. The Forty-barrel-bull
schools is a thing in it, think with blind rage, as Ledyard did, on the
whale’s topmost back. Who can tell"—he muttered—"whether these
intricacies,
Building
markov depends on the following to be built:
- C99 compiler
- POSIX
make
Once the aforementioned dependencies are installed, markov can be built by running the following commands:
./Configure
make
make test
make install
Consult the ./Configure --help usage message for more information on
configuring the build process.
Usage
markov's usage is documented in in its manual and help message (--help).
Copyright
Copyright 2026, Samuel Young.
This program is free software; you can redistribute and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.