main
zigkov
A implementation of a Markov Chain random post generator in zig.
Usage
File contents need to be organized into sentences ending with a deliminator, the default is .. The weight function effects the chances of ending the selection of the word group.
Markov Chains in Zig (https://occultusterra.com/WWelna/zigkov)
Copyright (C) 2026 William Welna (wwelna@occultusterra.com)
-h, --help
Display this help and exit.
-p, --process <str>
Read text file & build markov chains, saves as `filename`.zon.
-d, --deliminator <str>
Deliminator to split the strings into, default of `.`.
-w, --weight <str>
Weight of the random() function adjustment, default 0.01.
-m, --markov <str>
Read/use previously saved markov chain.
The No Vibe Coders Open Source License
Copyright (C) 2026 William Welna (wwelna@occultusterra.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following condition.
* The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
In addition, the following restrictions apply:
* The software, either in source or compiled binary form, with or without any
modification, may not be used with or incorporated into any other software
that used an Artificial Intelligence (AI) model and/or Large Language Model
(LLM) to generate any portion of that other software's source code, binaries,
or artwork.
* The usage of this software is not authorized in the state of California nor are
residents of California authorized to be in possession of this software, either
in source or compiled binary form.
* The usage of this software is not authorized in the state of Colorado nor are
residents of Colorado authorized to be in possession of this software, either
in source or compiled binary form.
* The usage and/or possession of this software, in either source or compiled
binary form, is not authorized in any legal jurisdiction where there is a
requirement of any age verification mechanism and/or identity verification
mechanism as a requirement to use this software under threat of criminal
and/or civil penalties.
* If the unauthorized usage of this software results in financial penalties
towards the developer, William Welna, the responsible individual, corporation,
or other legal entity agrees to fully cover said financial penalties.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Description
Languages
Zig
100%