1
0
Fork
You've already forked markov
0
generate markov chain from input text
  • C 92.4%
  • Shell 5.3%
  • Makefile 2.3%
2026年07月01日 12:50:53 -05:00
doc Fix typo 2026年06月18日 14:53:37 -05:00
src Bugfixes 2026年07月01日 12:50:30 -05:00
t Bugfixes 2026年07月01日 12:50:30 -05:00
CHANGELOG Update CHANGELOG 2026年07月01日 12:50:53 -05:00
Configure Bump 2026年06月18日 14:55:37 -05:00
LICENSE Add LICENSE 2026年05月26日 19:22:25 -05:00
Makefile Remove chmod 2026年06月01日 14:21:12 -05:00
README.md No need for pkg-config 2026年05月31日 21:44:25 -05:00

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 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.