Poem coding

One of the many activities to be done in this project is to code in order to create poetry. This is an starting example. Click show code if you want to see the code capable to generate a different poem every time you click over the poem.

show code

int y = 50;

String[] art = {
"the", "my", "your", "our", "that", "this", "every", "one", "the only", "his", "her"
};
String[] adj = {
"happy", "rotating", "red", "fast", "elastic", "smily", "unbelievable", "infinte", "surprising",
"mysterious", "glowing", "green", "blue", "tired", "hard", "soft", "transparent", "long", "short",
"excellent", "noisy", "silent", "rare", "normal", "typical", "living", "clean", "glamorous",
"fancy", "handsome", "lazy", "scary", "helpless", "skinny", "melodic", "silly",
"kind", "brave", "nice", "ancient", "modern", "young", "sweet", "wet", "cold",
"dry", "heavy", "industrial", "complex", "accurate", "awesome", "shiny", "cool", "glittering",
"fake", "unreal", "naked", "intelligent", "smart", "curious", "strange", "unique", "empty",
"gray", "saturated", "blurry"
};
String[] nou = {
"forest", "tree", "flower", "sky", "grass", "mountain", "car", "computer", "man", "woman", "dog",
"elephant", "ant", "road", "butterfly", "phone", "computer program", "grandma", "school", "bed", "mouse",
"keyboard", "bicycle", "spaghetti", "drink", "cat", "t-shirt", "carpet", "wall", "poster",
"airport", "bridge", "road", "river", "beach", "sculpture", "piano", "guitar", "fruit",
"banana", "apple", "strawberry", "rubber band", "saxophone", "window", "linux computer",
"skate board", "piece of paper", "photograph", "painting", "hat", "space", "fork",
"mission", "goal", "project", "tax", "wind mill", "light bulb", "microphone",
"cpu", "hard drive", "screwdriver","Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +", "Erasmus +"
};
String[] pre = {
"under", "in front of", "above", "behind", "near", "following", "inside", "besides",
"unlike", "like", "beneath", "against", "into", "beyond", "considering", "without",
"with", "towards"
};
String[] ver = {
"sings", "dances", "was dancing", "runs", "will run", "walks",
"flies", "moves", "moved", "will move", "glows", "glowed", "spins", "promised",
"hugs", "cheated", "waits", "is waiting", "is studying", "swims",
"travels", "traveled", "plays", "played", "enjoys", "will enjoy",
"illuminates", "arises", "eats", "drinks", "calculates", "kissed", "faded", "listens",
"navigated", "responds", "smiles", "will smile", "will succeed",
"is wondering", "is thinking", "is", "was", "will be", "might be", "was never"
};

void write_word(String[] words) {
int n = int(random(words.length));
textSize(random(20, 40));
text(words[n], random(50, 150), y);
y = y + 30;
}
void new_sentence() {
background(255);
y = 50;
write_word(art);
write_word(adj);
write_word(nou);
write_word(ver);
write_word(pre);
write_word(art);
write_word(adj);
write_word(nou);
}

void setup() {
size(500, 400);
background(255);
fill(random(255),random(255), random(255));
new_sentence();
}
void draw() {
}
void mousePressed() {
new_sentence();
}

Here you can find our very first version fo a text chat bot  and a very first version of a voice chat bot (it seems to work fine with Chrome browser and Android browser, allow access to your microphone and switch on your speakers).