An open API service indexing awesome lists of open source software.

https://github.com/nnichols/dj-marky-markov

A Markov Chain to generate written text from a known corpus
https://github.com/nnichols/dj-marky-markov

markov-chain text-generator

Last synced: 8 months ago
JSON representation

A Markov Chain to generate written text from a known corpus

Awesome Lists containing this project

README

          

# dj-marky-markov - Markov Chain text generation in Clojure


[![Clojars Project](https://img.shields.io/clojars/v/dj-marky-markov.svg)](https://clojars.org/dj-marky-markov)
[![Dependencies Status](https://versions.deps.co/nnichols/dj-marky-markov/status.svg)](https://versions.deps.co/nnichols/dj-marky-markov)
[![cljdoc badge](https://cljdoc.org/badge/dj-marky-markov/dj-marky-markov)](https://cljdoc.org/d/dj-marky-markov/dj-marky-markov/CURRENT)
![Github Runner](https://github.com/nnichols/dj-marky-markov/workflows/Clojure%20CI/badge.svg)

> Yo DJ, play that song for me.
> Make it how I like that's how its got to be 'cos see-
> I need a song with the funk intact.
>
> - Mark "Marky Mark" Wahlberg

## Archival

This project was a pet project I took on while learning clojure, I sincerely hope you weren't relying on it in production!
To free myself of automated alerts/dependency updates/etc, I'm archiving the repository as of 2025-01-03.

## Installation

Clone this repository to your local machine.

## Usage

To see how the application works, try executing it:

```bash
~/dj-marky-markov (master)
$ lein run ./test/dj_marky_markov/test.txt 3 10
```

Shortly after, you should see results like the following printed back to you in stdout:

```txt
And that's when it becomes fun - you just let it play back-and-forth.
Let all these little delicate things.
What the devil.
We'll put a touch more of the brush and let it go.
We'll put a touch more of the land.
Look at them little rascals.
That's your challenge for the day.
Just use the old one inch brush.
Christmas tree things we used to make it that way.
I may have to see things when you're doing doesn't make you happy - you're doing these little things in your heart.
```

If your results sound eerily familiar to [everyone's favorite painter,](https://en.wikipedia.org/wiki/Bob_Ross) then everything is set up correctly!

## Automated Build And Repository Information

Code Coverage reports via [Cloverage.](https://nnichols.github.io/dj-marky-markov/coverage/index.html)

## Licensing

Copyright © 2019 - 2025 [Nick Nichols](https://nnichols.github.io/)

Distributed under the [Eclipse Public License Version 1.0](https://www.eclipse.org/legal/epl-v10.html)