Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Writing Prompts

3 views
Skip to first unread message

Corey White

unread,
Aug 19, 2023, 9:12:27 PM8/19/23
to
I've made a script to give you writing prompts using my
own english language databases.

Run prompt.exe with the database of your choice & the number
of prompts to generate. The source is in python and there is a
windows binary you can download with my databases.

https://github.com/alt-magick/Writing-Prompts

import random
import sys

def random_line(fname):
lines = open(fname).read().splitlines()
return random.choice(lines)

file = sys.argv[1]
prompt = int(sys.argv[2])

print("")
print("Prompts")
print("--------")

for x in range(prompt):
print(random_line(file))

print("")
0 new messages