Skip to content

Instantly share code, notes, and snippets.

@hatzka-nezumi
Last active December 3, 2015 00:22
Show Gist options
  • Save hatzka-nezumi/7000f886f0179f20db66 to your computer and use it in GitHub Desktop.
Save hatzka-nezumi/7000f886f0179f20db66 to your computer and use it in GitHub Desktop.
A Thue program generating sentences in English. Often makes nonsense, but grammatical nonsense. Has a very limited vocabulary. Made for http://lolwh.at/~amb/thue.html interpreter; won't work on others. (Creative Commons Zero/Unlicense)
[noun_common]::=man
woman
child
home
work
diet
parliament
government
German
island
alien
emigration
Honourable Justice
Lord of the Manor
slave
slavemaster
slavetrader
broker
ballerina
captive
yacht
artist
magic
language
computer
soda
star
[noun_proper]::=Canada
Australia
Europe
Russia
Germany
Korea
Yoda
Vader
Michael
Luke
Mark
John
Easter
immortality
Earth
Mars
Neptune
Venus
Pluto
the Sun
the Bible
the Internet
[pronoun_subject]::=I
you
he
she
it
they
[pronoun_object]::=me
you
him
her
it
them
[nounphrase]::=[art] [noun_common]
[art] [adjective] [noun_common]
[noun_proper]
[nounphrase] [ncc] [nounphrase]
[nounphrase_subject]::=[nounphrase]
[pronoun_subject]
[nounphrase_object]::=[nounphrase]
[pronoun_object]
[art]::=[art_indef]
the
[art_indef] a::=an a
[art_indef] e::=an e
[art_indef] i::=an i
[art_indef] o::=an o
[art_indef] u::=an u
[art_indef] [::=[art_indef] [
[art_indef]::=a
[adjective]::=fair
unfair
yellow
Spanish
Canadian
saucy
delicious
fast
[verb_infinitive]::=eat [optionalobject]
breathe [optionalobject]
speak to [nounphrase_object]
speak about [nounphrase_object]
decide to [nounphrase_object]
decide on [nounphrase_object]
make [nounphrase_object]
create [nounphrase_object]
travel to [nounphrase_object]
quarantine [nounphrase_object]
destroy [nounphrase_object]
blow [nounphrase_object] up
blow up
excuse [nounphrase_object]
forgive [nounphrase_object]
love [optionalobject]
hate [optionalobject]
fear [optionalobject]
[verb_present]::=eats [optionalobject]
breathes [optionalobject]
speaks to [nounphrase_object]
speaks about [nounphrase_object]
decides [infinitive]
decides on [nounphrase_object]
makes [nounphrase_object]
creates [nounphrase_object]
travels to [nounphrase_object]
quarantines [nounphrase_object]
destroys [nounphrase_object]
blows [optionalobject] up
blows up
excuses [optionalobject]
forgives [optionalobject]
loves [optionalobject]
hates [optionalobject]
fears [optionalobject]
[verb_past]::=ate [optionalobject]
breathed [optionalobject]
spoke to [nounphrase_object]
spoke about [nounphrase_object]
decided [infinitive]
decided on [nounphrase_object]
made [nounphrase_object]
created [nounphrase_object]
travelled to [nounphrase_object]
quarantined [nounphrase_object]
destroyed [optionalobject]
blew [nounphrase_object] up
blew up
excused [optionalobject]
forgave [optionalobject]
loved [optionalobject]
hated [optionalobject]
feared [optionalobject]
[adverb]::=quickly
slowly
surely
indecisively
audibly
politely
properly
correctly
incorrectly
judgmentally
totally
literally
figuratively
maliciously
[optionalobject]::=[nounphrase_object]
[sentenceverb]::=[verb_present]
[verb_past]
[infinitive]::=to [verb_infinitive]
[verbphrase]::=[sentenceverb]
[adverb] [sentenceverb]
[sentence]::=[nounphrase_subject] [verbphrase][punc]
[nounphrase_subject] [verbphrase][punc]
[nounphrase_subject] [verbphrase][punc]
[nounphrase_subject] [verbphrase][punc]
[nounphrase_subject] [verbphrase], [scc] [sentence]
[nounphrase_subject] [verbphrase]; [ca], [sentence]
[punc]::=.
!
?
[scc]::=for
and
but
or
yet
so
[ncc]::=for
and
but
or
[ca]::=thus
nevertheless
however
consequently
therefore
moreover
additionally
furthermore
nonetheless
***a::=A
***b::=B
***c::=C
***d::=D
***e::=E
***f::=F
***g::=G
***h::=H
***i::=I
***j::=J
***k::=K
***l::=L
***m::=M
***n::=N
***o::=O
***p::=P
***q::=Q
***r::=R
***s::=S
***t::=T
***u::=U
***v::=V
***w::=W
***x::=X
***y::=Y
***z::=Z
***A::=A
***B::=B
***C::=C
***D::=D
***E::=E
***F::=F
***G::=G
***H::=H
***I::=I
***J::=J
***K::=K
***L::=L
***M::=M
***N::=N
***O::=O
***P::=P
***Q::=Q
***R::=R
***S::=S
***T::=T
***U::=U
***V::=V
***W::=W
***X::=X
***Y::=Y
***Z::=Z
.::=.
!::=!
?::=?
u nfair::=unfair
::=
***[sentence]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment