Metadata-Version: 2.4
Name: error_markov
Version: 0.1.0
Summary: This is a markov-chain module/package/library/idk and it is dumb
Author: someone624
License-Expression: WTFPL
License-File: LICENSE
Description-Content-Type: text/markdown

# error_markov
This is just your normal markov-chain module/package/library/what do you call this. If your life is on the line, don't use this, it's unreliable. This **will** not work I can guarantee you. Its here if you want something dumb that you can easily frame as AI.
## Installation
```bash
pip install error_markov
```
## Usage
```python
from error_markov import DumbMarkov

bot = DumbMarkov(order=1) # If order is not specified, it will default to 2
```
### Training
```python
text = "your text here"
bot.train(text)
```
You can also use multiple sentences:
- 1 train command
```python
text = "An apple is existing. Yes an apple is not existing."
bot.train(text)
```
- many train commands
```python
bot.train("An apple is existing.")
bot.train("Yes an apple is not existing.")
```
### Generating
```python
bot.generate()
```
The code above will generate 1 sentence with a max of 50 words. It will start with a random word.
- If you want to start with something specific
```python
inputt = "Yes an"
output = bot.generate(start=inputt)
# To start with something, do:
# start=
```
- If you want to change the max words
```python
max_w = 75
inputt = "Yes an"
output = bot.generate(max_words=max_w, start=inputt)
```
- And then print the output:
```python
print(output)
```
## License
This thing is licensed under the WTFPL.
---