Skip to content

taylordotfish/markov.lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.