2.16.0 • Published 2 months ago

limerick v2.16.0

Weekly downloads
3
License
ISC
Repository
github
Last release
2 months ago

limerick

Limerick is a Poem Generator driven by a standard OOP description language. The language is inspired by text adventure games. A virtual being is sent down the world of your own imagination making observations and interacting with objects you define within.

The following is a snippet out of a poem about a little universe filled with light and love, and land; and forrest. Resulting Poems follow bellow.

    universe.has(love);
    universe.contains(light);
    universe.contains(sea);
    sea.contains(land);
    sea.has(love);
    land.contains(forest);
    land.has(love);
    forest.has(light);
    forest.has(love);
    wanderer.enterInto(universe);

Version two introduces a stand-alone motion expression object with named variables:

const language = {

  poemTitles: [
    /* note the elongated structure of title [actor(s) [motion] ... of [location]] */
    '{{actor_name}} falling into the fabric of {{location_name}}',
    '{{actor_name}} falling into the depths of {{location_name}}',
    '{{actor_name}} hidden within the h eights of {{location_name}}',
  ],

  closingLines: [
    'And we rest quietly in {{location_name}}',
    'And we are reborn within {{location_name}}',
    'And we find adventure in {{location_name}}',
    'And none will come to visit {{location_name}} again.',
  ],

  itemInteractions: [
    'Thinking of {{item_name}} helps us understand',
    'Understanding {{item_name}} finds us wanting',
    'Within the year {{item_name}} helps us see',
    'Overnight {{item_name}} fills us with light',
  ],

  locationTransitions: [
    'Leaving {{location_name}} we step into {{destination_name}}',
    'We fly out of {{location_name}} together',
    'We glide together into {{destination_name}}',
    'Escaping {{location_name}} we slide into {{destination_name}}',
    'Falling asleep in {{location_name}} we come to awaken inside {{destination_name}}',
  ],

};

Interesting Examples

Version 3 (Event Emitter Based)

I enter lovely woods by A. E. Mouse

Mmm, the lovely woods are lovely dark and deep
But the damn curious horse makes a strange sound
I must escape dark and deep woods in hopes of to reaching A quiet village
The sound of silence rings in my ears.

I greet the being that owns the woods.

the houses, the houses envelop me and take me over

I enters lovely woods by A. E. Mouse

Mmm, the lovely woods are lovely dark and deep
Leaving dark and deep woods and entering frozen lake
Brr, the frozen lake is sweet and welcoming to no end

The lonely I finds silent fish

Version 2

Bird Enters Universe

Bird has left infinite universe and entered infinite peace

Journey ends with infinite peace slowly fading away.

Lunk Enters Gym

Lunk finds Pull Up Bar
Leaving gym and entering restroom

Lunk finds toilet
Journey ends in restroom

Robot Enters Universe

Robot finds nothing
Leaving infinite universe and entering infinite universe

Robot finds nothing
Leaving infinite universe and entering infinite universe

Robot finds nothing
Leaving infinite universe and entering infinite universe

Robot finds nothing
Leaving infinite universe and entering infinite universe

Robot finds nothing
Leaving infinite universe and entering quiet lobby

Robot finds powerful battery
Journey ends in quiet lobby

Wanderers Falling Into The Fabric Of Universe

Within the year the music of the spheres helps us see
Falling asleep in all the worlds combined we come to awaken inside throbbing light

And none will come to visit a brightly lit orb again.

Wanderers Falling Into The Depths Of Existence

Thinking of the wanting of forever helps us understand
Falling asleep in fabric of time we come to awaken inside final frontier

Understanding the music of the spheres finds us wanting
We fly out of final frontier together

Understanding the music of the spheres finds us wanting
Leaving the base plateau we step into source of understanding

Overnight a brightly lit orb fills us with light
And none will come to visit castle of trees again.

Adventurers Hidden Within The Heights Of Existence

Thinking of the music of the spheres helps us understand
And none will come to visit all the worlds combined again.

Version 1

Wanderers in Existence

Overnight the music of the spheres fills us with light
Escaping all the worlds combined we slide into infinite starscape

Overnight the wanting of forever fills us with light
Escaping infinite starscape we slide into the base plateau

Within the year the dream of a dynasty helps us see
Leaving place of complexity we step into tree of knowledge

Within the year the light of us helps us see
And none have come to visit tree of knowledge

Escape

Escaping all the worlds combined we slide into infinity of eden
And we rest deep in final frontier

Wanderers in fabric of time

Flying out of fabric of time we glide together into throbbing light
And we are reborn in throbbing light

Wanderers in Universe

Falling asleep in fabric of time we come to awaken inside endless horizon
And we are reborn in infinity of eden

Wanderers in Existence

the music of the spheres helps us see
Flying out of fabric of time we glide together into endless horizon
Flying out of infinity of eden we glide together into place for anchor
Escaping place for anchor we slide into castle of trees
the light of us fills us with light
And we are reborn in source of understanding

Wanderers into the fabric of Universe

the music of the spheres fills us with light
Leaving all the worlds combined we step into infinite starscape
the music of the spheres finds us wanting
Leaving infinite starscape we step into the base plateau
the music of the spheres fills us with light
Flying out of the streets at night we glide together into source of understanding
a brightly lit orb fills us with light
And we are reborn in castle of trees

Beta Version (Failed Experiments)

I Enters Woods

I finds horse
Leaving dark and deep woods and entering frozen lake
Journey ends in frozen lake

horse.png

2.16.0

2 months ago

2.15.0

4 months ago

2.14.0

8 months ago

2.13.0

9 months ago

2.12.0

1 year ago

2.11.0

2 years ago

2.10.0

2 years ago

2.9.0

2 years ago

2.8.0

2 years ago

2.7.0

3 years ago

2.6.0

5 years ago

2.5.0

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.10

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago