Poetry algorithm - Artificial Fauxetry!
Hello again, been making something quite unusual and insane, nothing to do with music, it's a random sentence/poetry generator.
If anyone would care to have a look and make some suggestions for improvement or suggestions for other objects to investigate.
`
I would like to make a variable ordering algorithm, ie each word/symbol has a type associated, verb, noun etc, i would like to make a set of rules to dictate placement of words in a sentence, but unsure how to approach it. My thinking is to add a descriptor to each symbol/word (append the type at the end or start or end of the string), when it gets to join the words together they are ordered following a set of predefined patterens ie Verb>Noun>Prep or Prep>Other>Adj>Noun etc.
So after the random choice of words, they get fed to something that can rearrange them based on a specified arranging principle. Can anyone think of an object that may be able to help in this quest?? I know it's a long shot as you may find language totally boring to think about in terms of an audio programming language, but any help would be great!
Or is there something better than join that will allow me to carry on adding items to the list? So I don't have to carry on stacking joins together like this: `
(append) and (prepend)
If anyone fancies some comedic random poetry/nonsense:
`
Such stupid nonsense comes out of it so far! Click the toggle and generate awesome lines such as:
" young know she that thing seem number see my important next child own his "
Inspiring.
I've built a massive text generator in Supercard. The approach I took was generative grammars. Basically I pass over a block of text that contains terminals (don't need to go any farther) and non-terminals (lookup and replace), then repeat until all the noon-terminals have been replaced. For example, a non-temminal - $dogname - would randomly select from a list of dog names. The token $dogname actually selects a card that holds this list. I use other notation to create text, [this|that] this or that text, and punctuation. The database is huge and generates grammatically correct text.
$kantsentence $kantsentence will generate
The logical situations of the space-time continuum stand in contrast to the accident being "for me" of the synthetic objects in space and time. In which of our faculties are unnatural causes and subjectivity connected together?
The generated text is entirely random and $kantsentence $kantsentence will do something very different next time it is expanded.
We can deduce that the dialectical demonstrations of the irresoluteness of lofty motive, then, are by their very nature cryptic, by virtue of unnatural reason. As anyone but a cutesy person will agree, the reader should hold their doubts that, thus, the origins of truth (and what should be obvious to you now, but not to the saphead over there, is that this is true except for the bubbleheaded person) are this muttonheaded analogy for the transcendental aesthetic, but our analytic of existence (and what we have now come to believe is that this is flatheaded) can not take account of the concretion towards reason.
The representaion of the grammar is pretty simple. The key is the text behind the grammar that can be generated. The noun-phrase verb-phrase grammar opens up a whole can of worms that pretty much leads you to the language as a whole...
Hello,
I would like to ask Richhop something concerning this posts' thread and wasn't able to find any PM option.
I will be thankful to know if there is any option to do so, and if there is one, please connect me with a PM, so I will be able to reply.
Thank you.
i.