Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.03 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.03 KB

markov.lua

markov.lua is a Markov chain text generation library written in Lua. It works with Lua 5.1 and later.

Example

See example/ for an example. Inside that directory, you can run ./example.lua or lua example.lua to run the example.

Installation

From LuaRocks

luarocks install markov-text

This must be run as root (e.g., with sudo) unless the package is installed locally by adding the --local option.

From the Git repository

git clone https://github.com/taylordotfish/markov.lua
cd markov.lua
luarocks make

luarocks make must be run as root (e.g., with sudo) unless the package is installed locally by adding the --local option.

Use without installing

You can also use markov.lua without installing it by setting package.path or LUA_PATH explicitly; see example.lua for an example of the former.

License

markov.lua is licensed under version 3 or later of the GNU General Public License. See LICENSE.