Crates.io | marukov |
lib.rs | marukov |
version | 0.0.1 |
created_at | 2025-09-18 21:38:08.568689+00 |
updated_at | 2025-09-18 21:38:08.568689+00 |
description | a simple markov chain text generator |
homepage | https://github.com/xjunko/marukov |
repository | https://github.com/xjunko/marukov |
max_upload_size | |
id | 1845443 |
size | 17,677 |
a dead simple markov text generation library.
use marukov::{Text, TextOptions};
// load your data from somewhere
// each new line in your data is a new entry.
let lyrics = std::fs::read_to_string("weathergirl.txt").unwrap();
// create the text model
let text = Text::new(lyrics);
// start generating stuff
for _ in 0..5 {
println!("{}", text.generate(TextOptions::default()))
}
ability so specific it sounds so stupid
asriel dreemurr from touhou 93
banished back to middle east
completely new sentence btw, you just have to give it a lot of data.