I was playing around with figuring out how to generate random sentences in BASIC! and started with simple words like “cat”, “dog”, “slept” etc… and then I plugged in some politically charged words into my program…
First of all here is the program in BASIC!
REM Start of BASIC! Program
tts.init
fn.def random®
fn.rtn floor(rnd()*r)+1
fn.end
fn.def pronoun$()
array.load w$[],“I”,“she”,“he”,“it”,“we”,“nobody”,“everybody"
array.length l,w$[]
fn.rtn w$[random(l)]+” "
fn.end
fn.def noun$()
array.load w$[],“Obama”,“Trump”,“Hillary”,“candidates”,“people”,“jerks”,“voters”,“Bernie”,“immigrants”,“Middle class”,“terrorists”,“poor people”,“rich people”,“Democrats”,“Republicans”,“Liberals”,“Conservatives"
array.length l,w$[]
fn.rtn w$[random(l)]+” "
fn.end
fn.def adj$()
array.load w$[],“small”,“a”,“laughing”,“one”,“angry”,“pretty”,“the”,“some”,“wimpy”,“strong”,“no"
array.length l,w$[]
fn.rtn w$[random(l)]+” "
fn.end
fn.def adv$()
array.load w$[],“slowly”,“easily”,“shortly”,“quietly”,“quickly”,“loudly”,“badly”,“well"
array.length l,w$[]
fn.rtn w$[random(l)]+” "
fn.end
fn.def verb$()
array.load w$[],“ate”,“slept”,“fell”,“learned”,“won”,“lost”,“talked”,“blamed”,“voted”,“hated”,“loved”,“worked”,“argued”,“accused”,“planned for”,“attacked”,“enjoyed"
array.length l,w$[]
fn.rtn w$[random(l)]+” "
fn.end
fn.def conj$()
array.load w$[],“and”,“or”,“while”,“until"
array.length l,w$[]
fn.rtn w$[random(l)]+” "
fn.end
fn.def opt$(s$)
if random(2)=1
fn.rtn s$
else
fn.rtn ""
fn.end
fn.def sentence1$()
fn.rtn opt$(adj$())+noun$()+verb$()+opt$(noun$())+opt$(adv$())
fn.end
fn.def ppt$()
if random(2)=1
fn.rtn opt$(adj$())+noun$()
else
fn.rtn pronoun$()
endif
fn.end
fn.def subject$()
fn.rtn ppt$()+opt$(conj$()+ppt$())
fn.end
fn.def sentence2$()
fn.rtn sentence1$()+opt$(conj$()+sentence1$())
fn.end
! format it
fn.def sentence$()
s$=trim$(sentence2$())+"."
l=len(s$)
s$=upper$(left$(s$,1))+mid$(s$,2,l)
fn.rtn s$
fn.end
for i=1 to 30
s$= sentence$()
print s$
tts.speak s$
all$+=s$+"\n\n"
next i
text.input all$,all$
exit
… and here is some sample output:
Wimpy immigrants planned for Liberals.
Candidates blamed terrorists.
Middle class blamed loudly.
No Conservatives enjoyed Liberals while immigrants talked terrorists.
Poor people accused rich people slowly while pretty Middle class learned Conservatives.
Conservatives accused voters until pretty Middle class enjoyed.
Wimpy Obama enjoyed until rich people learned.
The Bernie planned for Republicans quietly and Republicans slept.
Wimpy Republicans fell Obama and immigrants planned for Obama.
Conservatives voted candidates or Republicans lost.
Some rich people fell until pretty terrorists voted.
People ate Hillary quickly.
Angry Conservatives ate Democrats easily.
Strong voters enjoyed Liberals or Democrats enjoyed Obama quickly.
Pretty Republicans planned for candidates shortly or Bernie blamed.
Voters won shortly.
Immigrants attacked while Bernie argued.
A jerks lost terrorists easily while people blamed Obama.
Hillary enjoyed.
Conservatives fell while Bernie learned poor people slowly.
Wimpy immigrants hated rich people.
Voters lost well while Bernie voted Conservatives.
Wimpy Liberals fell and laughing Republicans worked easily.
No rich people talked Democrats.
No Conservatives won jerks slowly or voters argued Trump badly.
Middle class slept badly while strong poor people learned candidates easily.
A Conservatives slept terrorists.
Voters hated or Republicans voted Republicans easily.
Terrorists voted while no voters attacked Obama.
Small candidates slept Middle class until jerks argued Trump.
…
Obviously I have to fix a lot of the grammar (for one thing some verbs like fell or slept shouldn’t have an object and I need to stick in more the’s)… but I thought it was cool that some statements sounded reasonable. Also not sure if it will work as well if I put some verbs in the present tense.