Welcome to Fractal Forums

Real World Examples & Fractical Applications => Poetry => Topic started by: ChristopherLowe on June 02, 2011, 10:25:40 AM




Title: Fractal poetry
Post by: ChristopherLowe on June 02, 2011, 10:25:40 AM
I wrote a little program in java that uses mandelbrot escape orbits and a word frequency list to generate poetry.  Here is some output, untouched by human hands:

Quote
that it he have to be it
for it not he they
they there to from ..in it
I need work ... have to in in ..in
in it .train have that ..it
I in have it .it
with not he .that have
it they .... other have we this
will which but this at at on at would
which any do this at this you do one man
time over know do at not on on this on on she
she at at we from who one year
may back this make she as not with

It obviously still needs some work, but it is already producing some very impressive output - the sentence structures are much more realistic than a plain random sentence generator and about 1/1000th the work involved in a lexical/canocial sentence generator.

What do you think? Is there some potential here?


Title: Re: Fractal poetry
Post by: ChristopherLowe on June 02, 2011, 11:06:38 AM
Here is some more output:
Quote
never where get out see to take one no before
high first who one there on much null there then
get before go then all all take but get take
write on on all more one no when time than
see time at take find go you so be find
null long before to who this any must so when
could all see back much these now this much could
only see then only down than or find more most
no you any for as so who go only down
down year year be who back or well this see

line home just just find
yet write just just find
death another write just find
outside another just find
yet another just find find
null yet home just find
actual care let just find
body measure report find
home stick problem find
home curious write find
find find more more

problem private  .burn report pencil let just
class  null snow problem just
  null home just
  null home home
  solve home another
  body home another
  shoulder line another
  sometime let another
  road another
  invite another

 yet another another write write
 null home write write just
 .line home write just
 .direct private home just
  .report another
  .report report
 .touch progress problem another
 .let line write another
 .line write write write
 class home home write write


little little get can part will still little little take
still part way first good day between to way own
for go must be find I when more than find
such all it could most take find and null any
you when there see down one no but who time
down when out much much you more way go as
time no must any long and any any he most
as time back you then all to such must only
when way also down these be take out any more
so by which to of to out for make he


And my favourite so far:
Quote
go be blood be around be human .
these be sure .
over be poet be poem be experience the cry the .
when be such be among .
when be spirit be or be shall the program the .
at be last be any be group the grow the .
can the dependent the river the play the fix the .
make the recommend the date the idea the not the .
at the top the product the enter the command the .
the field the game the over the each the sometimes .


Title: Re: Fractal poetry
Post by: barkeg on August 19, 2011, 10:55:31 PM
Nice!! I really like the last one!
Would be nice to see some more recent ;)


Title: Re: Fractal poetry
Post by: ChristopherLowe on October 16, 2011, 05:13:09 AM
Thanks barkeg!


If you are interested, I have uploaded the source code to my bitbucket account. You can find it here:
https://bitbucket.org/ChrisLowe/textbrot (https://bitbucket.org/ChrisLowe/textbrot)


Title: Re: Fractal poetry
Post by: ChristopherLowe on October 16, 2011, 05:36:15 AM
Quote
never question other.
give so much this there I as over all.


Quote
critic century expect name problem.

Quote
experience question set seed.
every problem part private best name problem back

Quote
expect to name girl take one this all I he and
around woman around hand year




Title: Re: Fractal poetry
Post by: barkeg on October 18, 2011, 11:06:23 PM
Nice!

I'll take definitely a look at the code!

I just had a crazy idea: You could put the generated lyrics in a voice synthesizer and create a audio file. Now with an other program you could creat a melody in a midi file (there are a lot of programs out there). Using auto-tuning you can make the voice following the melody. That way you could creat an entire song created by fractals ;)


Title: Re: Fractal poetry
Post by: DarkBeam on April 13, 2012, 11:28:04 AM
This is wild ;)


Title: Re: Fractal poetry
Post by: kram1032 on April 13, 2012, 12:24:08 PM
hah, nice stuff.
Though it almost seems like the orbits are too regular for language: Many words are repeated way too often in one sentence or in sentences that follow each other. It looks like you need more sophisticated details...

Maybe you can somehow manage to create those words by following a Zipf-Madelbrot Law (http://en.wikipedia.org/wiki/Zipf%E2%80%93Mandelbrot_law)...
That or the simpler Zipf's Law (http://en.wikipedia.org/wiki/Zipf%27s_law) is how language and music apparently is organized.

Maybe this helps: http://1.1o1.in/en/webtools/semantic-depth
And if you know French or can get the maths out of this without knowing French, then maybe that: The Parabolic fractal distribution (http://www.hubbertpeak.com/laherrere/fractal.htm)


Title: Re: Fractal poetry
Post by: filagree on April 13, 2012, 02:32:07 PM
I keep imagining Leonard Cohen or William Shatner reading/singing the lines- not so much for the content as the quiet mantra like vibe your creation elicits. What is more important here, the programming or the generated words...? Or is it all indivisible ? For a completed piece might a person use the bulk of the Mandelbrot but edit it for 'greater' effect..? What is happening when it inserts the word null ?
Am sure you've continued to have fun with this. :smooth:


Title: Re: Fractal poetry
Post by: kram1032 on April 14, 2012, 02:28:24 AM
Haha, I just found some things that might be slightly related:
http://en.wikipedia.org/wiki/Buffalo_buffalo_Buffalo_buffalo_buffalo_buffalo_Buffalo_buffalo
http://en.wikipedia.org/wiki/James_while_John_had_had_had_had_had_had_had_had_had_had_had_a_better_effect_on_the_teacher
http://en.wikipedia.org/wiki/That_that_is_is_that_that_is_not_is_not_is_that_it_it_is
http://en.wikipedia.org/wiki/Lion-Eating_Poet_in_the_Stone_Den

It's probably this kind of sentences, your Mandelbrot language creator uses, heh...


Title: Re: Fractal poetry
Post by: DarkBeam on April 14, 2012, 11:53:54 AM
 :laugh: Those Wiki pages are brilliant! I reminded of http://en.wikipedia.org/wiki/Georges_Perec

Here the longest two-sided poem in italian; http://www.sironi.tk/11luglio1982.html

It can be readed from the last letter from the first as well! :D


Title: Re: Fractal poetry
Post by: bib on April 14, 2012, 01:57:26 PM
Most Excellent!! I love that. Is it possible to try the program?


Title: Re: Fractal poetry
Post by: kram1032 on April 14, 2012, 07:04:16 PM
Too bad my Italian is limited to the mere basics of basics, heh...
It's certainly a lot of work to come up with something that's the same read in either direction. I really wonder how to come up with something like it...


Title: Re: Fractal poetry
Post by: DarkBeam on April 14, 2012, 07:48:19 PM
 :dink: Some words are very "immaginative". It was written a long time ago, entirely by hand with a lot of talent I think! ;D
In italian there are many possible sentences readable in two directions because it's a "wide" language and most words begin with consonant and end with wovels ^-^


Title: Re: Fractal poetry
Post by: DarkBeam on April 14, 2012, 07:52:43 PM
I could not resist to try a simple poetry program in C. :banana: :banana: :banana:

It's flexible; you can build your own dictionary in your language... But each word must be of length < 14 and max 500 words for each dictionary (three distinct dics)

Try it :nastyteeth: >> next page!


Title: Re: Fractal poetry
Post by: kram1032 on April 14, 2012, 09:00:01 PM
how hard would it be to extend this to arbitrary word length and number?


Title: Re: Fractal poetry
Post by: DarkBeam on April 15, 2012, 05:26:56 PM
Well, I would need to use dynamical pointers and allocation... This involves in potential mem errors and some complications :( ... C does not support very easily this stuff. I made it sometimes but in this case is it worth it? :D

EDIT; Updated the program and the dics :gum: :banana:

Sample poetical output ;D

Code:
no bucket everytime cold from
what fractal to count yet
bottom fear black complex do
long sin yet sleep thousand
chaos fear himself suck !
how head late can
the monk who get further
on key themselves raw thing
light waveform secret bold mind
step god infinite rebuild i
behind destruction nothing count me
once leaf during simple on poisoned where happy everyone
reality sun alien count what
behind iteration cannot hang everything groove never cut broken


Title: Re: Fractal poetry
Post by: DarkBeam on April 16, 2012, 07:05:07 PM
I have decided to release the source code too, and updated the lists & the program. It's so crappy but usable :dink:

Enjoy :D


Title: Re: Fractal poetry
Post by: kram1032 on April 17, 2012, 12:25:07 AM
My first try with that:
Code:
impress thing smoke quare
fail night death no
jump meaningless wallet first
low joker at computer night
match and
between happy part street day
while curl else top
you urban power done
noble counter if help endless
make peace poisoned the
in noble meaning farm yourself
zero blur myself sex universe


Title: Re: Fractal poetry
Post by: DarkBeam on April 17, 2012, 07:11:16 PM
Nice, program updated :D

Code:
hanging heart free dirt then
new floating weak car than
stay catoblepas without knowledge after
mechanic really heretic step
curl fear program phone real
full entire dream children beginning
give triton fear asleep
to poison step girlfriend where
hybrid catoblepas without life free
blend bucket really host weak
word then girlfriend myself
alien forbid already counter new

I tuned it so now it tends to repeat some words (without repeating entire phrases hopefully) and verses are more regular - it's still possible to use it like before. Tune the preferences to do so ^-^


Title: Re: Fractal poetry
Post by: kram1032 on April 18, 2012, 09:26:43 PM
Huh, now this is weird...
Your program might have a viral bug. I really wonder how that could have happened though.
It randomly renames things?
(http://puu.sh/qgBc)

The Folder, called "poemify (1)" - originally called "poemify" by me, the (1) got added later - is the one with the program in it. It contains the following files, as hopefully expected:
(http://puu.sh/qgBM)

All the other poemifys I did NOT call like that. They renamed themselves.
I've never seen such a thing happen. O.o

I moved all the "infected" files to an own folder now... Previously, they were on the Desktop.
I hope, it wont rename anything that isn't on the same file-level.


Title: Re: Fractal poetry
Post by: cKleinhuis on April 19, 2012, 01:18:21 AM
ehrm people, i am not a professional poet, but shouldnt it at least rhyme !?!?!?!
or does it ? i dunno!


Title: Re: Fractal poetry
Post by: kram1032 on April 19, 2012, 08:51:48 AM
modern poetry doesn't NEED the rhyme. Many poets deliberately break that rule.
Though it would indeed be nice if it rhymed or if that at least was an option.


Title: Re: Fractal poetry
Post by: DarkBeam on April 19, 2012, 10:49:15 AM
Yes but some words do not rhyme... or it would require a huge dict.
Rhyme with "of"? ... :D


Title: Re: Fractal poetry
Post by: DarkBeam on April 19, 2012, 11:03:11 AM
Huh, now this is weird...
Your program might have a viral bug. I really wonder how that could have happened though.
It randomly renames things?

Really do not know how this can happen at all. Tell me when it happened and the settings you used ::)


Title: Re: Fractal poetry
Post by: DarkBeam on April 19, 2012, 11:05:41 AM
modern poetry doesn't NEED the rhyme. Many poets deliberately break that rule.
Though it would indeed be nice if it rhymed or if that at least was an option.

Two words rhyme when the two last chars are equal? (This is a simplified rule).
My program can not understand phonetical stuff :dink:

What can happen when the last word is "I", "a", or a sign like "..."  :o


Title: Re: Fractal poetry
Post by: kram1032 on April 19, 2012, 12:39:52 PM
well, I only used the program once so far, with the result of the poem I posted above.
I'm not really sure what values I used but maaaaybe it was
63, 42
At least that comes to my mind if I think back to that situation.

It's really the weirdest kind of bug I've ever seen.

Also, I didn't notice this right away. I'm not even sure if your program is the source for that. But since all kinds of files and folders got renamed into that, it's at least what I assume.

imperfect Rhymes on of:
Cough.
tough.
rough.
off.

Tell me about the switch of
rough coughs which's turn'd off.


Title: Re: Fractal poetry
Post by: DarkBeam on April 19, 2012, 04:06:17 PM
Ok, but... A simple algorithm that finds if two words "rhyme"? Language independent? If it does not exist I can't do it :P

Let's say that the last word used in the previous verse is in a temp buffer t[15], a null terminated C string ;)

It can be a null string in some cases of course, in this case we exit immediately.

All other words are in a big array (let's call it words[0 to 2][0 to 499] - but not all filled with words, limits are stored in another index ... )

Excluding rhyme of two identical words of course :D

And... We should need to enum all possible rhymes then choose the word with a criteria... That's not so hard.


Title: Re: Fractal poetry
Post by: kram1032 on April 19, 2012, 06:04:22 PM
Maybe you can invent some sort of phonetical coding (it probably isn't even that difficult, just ennumerate the phonetic table from  to whatever) and save the words in that form (a bunch of integers).
That's how they are compared.
Written, however, they are how they should be.

The problem with that is, that it takes a lot of time to build such a phonetic dictionary, unless you actually find one on teh webz.
(Mary TTS (http://mary.dfki.de/) might have some of those somewhere... not sure though)


Title: Re: Fractal poetry
Post by: jehovajah on March 30, 2015, 03:43:45 AM
 :peacock:
Lol! Can fractal generators generate poetry, or is it poets that generate fractal generators?
What are we dreaming of,
My Love?
Endless rills and rhymes
Attached to iterative escape times?
Or
Deep free scale transderivational links
That never return but always syncs
The mind at whatever level it can spot
That ubiquitous, iconic Mandelbrot?


Title: Re: Fractal poetry
Post by: DarkBeam on March 30, 2015, 10:58:12 AM
 :D hehe, still playing with that program? ;)
It uses a sort of pseudorandom number generator don't know it is definable as a fractal generator at all :)


Title: Re: Fractal poetry
Post by: youhn on March 30, 2015, 08:58:59 PM
What are we dreaming of,
My Love?
Endless rills and rhymes
Attached to iterative escape times?
Or
Deep free scale transderivational links
That never return but always syncs
The mind at whatever level it can spot
That ubiquitous, iconic Mandelbrot?

Both nice, but if I have to pick one ... it'll be the first.
That's because the second is a bit too much in-your-face.
I rather have poetry that keeps it a bit mysterious,
only to be suprised - sometimes - by the as-it-is-poetry.

I think Jules Deelder NEVER uses simile,
always just writing how it is:

Quote from: Deelder
Het Heelal

Hoe verder men keek,
Hoe groter het leek

Which translated to something like:

Quote from: Deelder
The universe

The further they look,
The bigger it seemed