Spanish Poem Generator

here’s my spanish poem generator (with english translation)

no, it’s not using any AI helper - anymore! (you’ll see what i mean)

the algorithm is simple - you provide the rhyming scheme, eg. ABAC) and the program will get a random verse from pool A, the next verse from pool B, ,you get the idea!

here’s what the pool looks like in json form

{
  "A": [
    "Bajo el sol de la mañana^In the morning's golden light",
    "En la brisa del verano^With the summer's gentle breeze",
    "Con el viento en mi ventana^Through my window, wind does tease",
    "En el cielo tan lejano^In the sky so far from sight",
    "En los campos de Girona^In Girona's fields of green",
    "Con la luna en su mirada^With the moon within your eyes",
    . . .
  ],
  "B": [
    "En el eco de tu risa^With the echo of your cheer",
    "En la noche sin medida^In the night, so vast and grand",
    "Con la luna como guía^With the moon to guide the land",
    "Cuando el alma se desvía^When the soul begins to veer",
    "En la sombra de la vida^In life's shadow, dark and drear",
    . . .
  ],
  "C": [
    "Y el amor siempre renace^And love will always rise anew",
    "Con el tiempo que no pasa^With time that seems to never flee",
    "Y en el viento se desplaza^And in the wind, it moves free",
    "Hasta el fin de nuestra raza^Till the end of what we see",
    "Y el eco de tu mirada^And your gaze, a lasting view",
    . . .
  ]
}

in order to generate these, i did ask Groq to do it! (look closely at each verse - it’s the spanish and english combined but separated by a caret (^) symbol - i asked Groq to do that too by joining parallel tables)

here’s the project link
https://x.thunkable.com/copy/ccac80c5a3226413015be262538e44d0

3 Likes

Well done!