A downloadable project

"What if I wrote a program to write essays in my style of writing?"

(Interesting, I used three verb tenses of "write".)
So I tried to write that program, and here is the resulting python program.

You can use it to generate sentences randomly, with the percentage based on the data you give to the program.

I've uploaded the example program, an example data file, and the program that can create data files from a text file.
It's very simple to use the example program.
For the training program, you will have to read the code to figure out what you need to do.

I don't write enough essays. There is not enough data do make sure that the program doesn't accidentally copy the original sentences one to one. The way I am doing this, it is hard to balance between logical sentences and original sentences. So I will leave this program in this state, just as a funny little toy.

This is a homemade language model. I didn't make it as good as anything like ChatGPT, so I think you should just play with this for fun. It is probably not going to be helpful for writing anything.

If I am to make an improved version of this program, I expect it would have to know about grammar rules and the parts of speech and verb tenses, stuff like that. And then it should also have the option for me to write a beginning sentence and also allow me to manually alter the probability of each word.

All sentences are randomly generated, even if they seem to make grammatical sense. Do not take them seriously!


June 2024

StatusReleased
CategoryOther
AuthorLucas Hsu
Average sessionA few seconds
LanguagesEnglish
InputsKeyboard

Download

Download
Example Program.zip 320 kB
Download
Training Program.zip 2.6 kB
Download
samples.txt 798 bytes
Download
credits.txt 1.3 kB

Install instructions

Questions and Answers

Q. How can I make this work?
A. You have to download python first. I used python 3.7.9. And then, just run the program and enter the number of sentences you want it to generate.

Q. What do the sentences it generates look like?
A. Try the program! If you can't run it, I've uploaded a samples.txt that you can take a look at.

Q. Where are the credits?
A. I uploaded a file called credits.txt which includes the names of the files and the authors.

Q. What is the point of making this when you could just use AI?
A. What is the point of asking this when everyone will just eventually die in the future anyway? It's just for fun.

Q. Why do I see "Heil Hitler"?! Are you a Nazi????????????
A. No, one of the essays is a creative essay about some American spies in the German army during WWII.

Leave a comment

Log in with itch.io to leave a comment.