You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
15 KiB
JavaScript

function nameGen() {
var nm1 = ["as far as the eye could see", "all around, bordered only by the thick forests in the distance", "all around, broken up only by an enormous lake at the bottom of a mountain", "stretching to the horizons, divided by picket fences, and rows of bushes", "everywhere, their patterns only broken up by the occasional tree left to grow in peace", "everywhere, on each hill, and every slope", "bathing in the sun all around", "uninterrupted for as far as the eye could see", "all around, interrupted only by a steep mountain cliff, which casted its shadow on the fields in the morning", "far and wide, interrupted here and there by patches of forests left for local animals and plants", "far and wide, broken up only by the picket fences, and rows of coniferous trees saying in the wind", "far and near, each one bigger than the other", "far and near, seemingly with no end beyond the horizons", "all over the place, spread sporadically between the patches of forests left to grow in peace", "all over the place, many of which surrounded a small lake", "scattered all around, their homogeny broken up by overgrown hills of rock and boulders", "stretching to the horizons, their otherwise homogenous patterns only broken up by the shadows cast by the clouds above", "spread all around, curving around, and waving over hill after hill", "spread far and wide, curving and zigzagging around hills and slopes", "reaching for the horizons, only disappearing after rolling over the hills in the distance", "stretching on forever, broken up only by a river curling and swirling its way through the landscape", "as far as you could see, their view only broken by ros of trees surrounding the river flowing through this landscape", "covering great lengths, their patterns forming a mosaic in the landscape", "stretching over great distances, their mosaic marked further by the picket fences around them", "reaching far and wide, broken up only by gutters of water inhabited by frogs and insects"];
var nm2a = ["cows", "sheep", "horses", "goats", "deer"];
var nm2b = ["chickens", "ducks", "geese", "pigs", "rabbits", "turkeys"];
var nm2c = ["flowers", "bean plants", "soy plants", "canola", "safflower", "flax", "buckwheat", "lavender", "barley", "corn", "millet", "oats", "onions", "potato plants", "rye", "sugar cane", "sunflowers", "wheat", "rice plants"];
var nm2d = ["Brussel sprouts", "artichokes", "beetroots", "beets", "broccoli", "cabbages", "carrots", "cauliflowers", "celery", "chards", "cucumbers", "garlic plants", "kale", "melons", "onions", "potato plants", "pumpkins", "scallions", "spinach", "strawberries", "turnips"];
var nm2e = ["orchards", "vineyards", "plantations"];
var nm3a = ["frolicked and foraged", "frolicked and loitered", "gently grazed", "gently grazed and ran", "grazed and lounged", "ran and frolicked", "ran and lounged", "rested and grazed", "slept and grazed", "slepts and loitered"];
var nm3b = ["scavenged and strolled", "strolled and fed", "strolled and sunbathed", "grazed and scavenged", "strolled and loitered", "rummaged and scavenged", "sunbathed and loitered", "lolled and grazed", "wandered and grazed", "slepts and loitered"];
var nm3c = ["swayed in the wind", "waved back and forth in the wind", "grew to tall heights", "dominated", "covered", "grew gently", "flourished", "thrived", "rustled in the wind", "bustled with insects and birds"];
var nm3d = ["decorated", "dominated", "bustled with insects and birds", "blossomed", "flourished", "dotted", "entertained bees and other insects", "carpeted", "spread across", "sprinkled"];
var nm3e = ["swayed in the wind", "bustled with birds and insects", "entertained bees and insects", "housed birds of all kinds", "waved back and forth in the wind", "rustled in the wind", "dominated", "blossomed", "flourished", "grew gently"];
var nm4 = ["breezy", "gentle", "hushed", "isolated", "luscious", "lush", "open", "opulent", "peaceful", "quiet", "radiant", "secluded", "serene", "silent", "sunlit", "sunny", "tranquil", "verdant", "wide open", "windy"];
var nm5 = ["along the edge of the fields", "amidst the many fields", "burrowing its way through and around the many fields", "crossing straight through the landscape", "curving and slithering through the landscape", "looping around most fields", "making its way through some of the fields", "passing around many of the fields", "passing field after field", "passing through the various fields", "right in the center of the fields", "snaking its way through the landscape", "touring around most fields"];
var nm6 = ["a dusty", "a dusty old", "a dusty, gravel", "a grass-covered, cobblestone", "a grass-covered, gravel", "a gravelly", "a mossy, cobblestone", "a muddy", "a sandy", "a weathered, cobblestone", "a weed-ridden, cobblestone", "a weed-ridden, dusty old", "a weed-ridden, gravel", "a weed-ridden, sandy", "an old cobblestone", "an overgrown, cobblestone", "an overgrown, dusty", "an overgrown, dusty old", "an overgrown, stone"];
var nm7 = ["ended at", "eventually arrived at", "eventually reached", "lead to", "made its way to", "stopped at"];
var nm8 = ["a picturesque", "a charming", "a beautiful", "a scenic", "a pleasant", "a tremendous", "a vast", "a modest", "an extensive", "an immense", "a humble", "a quiet", "a simple", "a typical", "an ordinary", "a classic", "a traditional"];
var nm9 = ["ranch", "farmhouse", "mansion", "estate", "farmhouse", "farmhouse"];
var nm10 = ["after passing a billboard with the farm's name and logo", "after passing a rickety welcome sign", "after passing a sign with the farm's name", "after passing a simple welcome sign", "covered in vines and wall shrubs", "covered in wall flowers", "eclipsed by the flower covered seating area next to it", "eclipsed by the stunning pagoda in the back of the courtyard", "guarded by a sleepy, old dog", "guarded by honking geese", "guarded by several excited dogs", "overshadowed by a giant tree in the center of the courtyard", "overshadowed by several enormous oak trees", "overshadowed completely by the floral pergola right next to it", "surrounded by a tall hedge", "surrounded by a wooden fence", "surrounded by an old, stone wall", "with a huge courtyard", "with a modest courtyard", "with a vast courtyard"];
var nm11 = ["worn by the elements, but in otherwise great condition", "very old, but kept in good condition", "old, but it didn't show", "showing signs of wear and tear, but in otherwise great condition", "beginning to show signs of weathering, but it was still in good condition", "showing a few minor signs of wear and tear, but was clearly kept in great condition", "fairly new, and thus still in great condition", "renovated recently, and thus in splendid condition", "rebuilt not too long ago, and thus showed no signs of weathering or aging", "very old, and it showed", "old, and it was beginning to show here and there", "worn by the elements, and could do with a new coat of paint", "in need of a coat of paint, but otherwise in great condition", "showing signs of wear and tear, and could generally do with a little upkeep", "in need of maintenance, or at the very least a lick of paint", "clearly not kept as well as the surrounding fields", "kept in pristine condition, just like the fields around it", "old and worn, but in a charming way", "in great need of some maintenance, but without being a danger to those who live there", "looking as splendid as the fields around it"];
var nm12 = ["A chicken coop stood next to the house", "A giant barn housed the hay for the winter", "A giant barn housed various animals", "A giant silo was filled with grains", "A huge stable housed dozens of horses", "A humble stable housed a couple of horses", "A large barn housed livestock durinng harsher weather", "A large granary held an ample supply of animal feed", "A long row of silos was filled with various grains", "A milking facility stood in the corner of the courtyard", "A tall silo was filled with silage", "Several barns housed the various livestock at night", "Several barns provided shelter to livestock", "Several milk tanks were filled to the brim", "Several tall silos held silage"];
var nm13 = ["a couple of dogs rested under the tree in the center of the courtyard", "a giant well stood just off to the side of the courtyard", "a huge, blackened pit for campfires was dug at the back of the courtyard", "a large, home-built barbecue stood at the edge of the courtyard", "a round pen for horse training stood at the back of the courtyard", "all sorts of flowers grew in the lush gardens next to buildings", "an outdoor kitchen including a clay oven was built to the side of the courtyard", "bees buzzed all around the cacaphony of flowers near the entrance", "birds bathed in the large fountain near the entrance", "chickens rummaged all around the courtyard", "dozens of swallows had made their nests under the rooftop gutters", "farm machinery was scattered all around the courtyard", "large tractors were parked beneath a rickety roof", "pigeons cooed on the roofs of the farm", "piles and piles of logs were stacked against the walls of the farm", "several beehives stood just behind the main buildings"];
var nm14 = ["a large pond full of fish attracted cats to the side of the courtyard", "a large windmill could be seen over the rooftops, its blades going round and round in the wind", "a small guesthouse stood to the side of the main farmhouse like a miniature copy", "a small pen housing a couple of chickens, rabbits, and other small animals was almost hidden in a corner", "a small plot of land was used for a breathtaking flower garden", "a small plot of land was used for a private vegetable garden", "a small seating area provided a resting place for those enjoying some of the products sold right here on the farm", "a small shed with all sorts of small projects and inventions stood lost in a corner", "a small wind turbine charged a generator at the back of the farm", "a stork's nest could be seen atop the silo roof", "a well kept greenhouse stood at the back, filled with all sorts of fruit and vegetable plants", "an old greenhouse stood to the side of the courtyard, no longer used, and with a few cracked glass panes", "dozens of frogs living in a small pond to the side filled the air with croaks and splashes", "several grape vines climbed their way up and over the open gazebo to the side of the courtyard", "the smell of compost hung in the air despite the hidden location of the bin behind the granary", "a few rows of solar pannels stood just beyond the courtyard"];
var nm15 = ["charming", "cheerful", "comforting", "comfy", "cozy", "delightful", "familiar", "freeing", "friendly", "homely", "homey", "mellow", "peaceful", "pleasant", "pleasing", "serene", "snug", "soothing", "tranquil", "welcoming"];
var nm16 = ["closing your eyes you could feel the sun rays on your skin, the gentle breeze through your hair, and you could hear the distant sounds of all sorts of animals", "it could be felt in everything from the landscape to the farmhouse itself", "it was a combination of the tranquil landscape, and the isolation of the farm within these lush fields", "it was one of those farms you'd gladly spend an entire summer at", "mainly thanks to the smell of home cooked food clinging to the air", "much of this was thanks to how stereotypical the farmhouse looked, it made everything seem commonplace", "much of this was thanks to the smells of ripe fruits carried by the wind, and the sounds of birds chirping in the trees", "the beauty of the landscape only added to this", "the sounds of nature, the creeking of wood of the farm buildings, and the serenity of nature all around contributed greatly to this", "the warm sunrays, and the gentle breeze were the main contributors to this", "there was just something about the farm that felt very intimate and welcoming", "this was largely due to the little things, like the welcome sign, the seating areas, and the overall hospitality the farmhouse radiated", "which was helped by the gentle breeze carrying the scent of ripe fruits across the fields", "which was mostly because of the smell of fruit pies spreading through the air", "which was mostly thanks to the gentle breeze, and the sounds of nature all around"];
var rnd1 = Math.random() * nm1.length | 0;
var tp = Math.random * 5 | 0;
if (tp === 0) {
var rnd = Math.random() * nm2a.length | 0;
var rnd2 = Math.random() * nm2a.length | 0;
while (rnd === rnd2) {
rnd2 = Math.random() * nm2a.length | 0;
}
var rnd3 = Math.random() * nm3a.length | 0;
tFrm = nm2a[rnd] + " and " + nm2a[rnd2] + " " + nm3a[rnd3];
} else if (tp === 1) {
var rnd = Math.random() * nm2b.length | 0;
var rnd2 = Math.random() * nm2b.length | 0;
while (rnd === rnd2) {
rnd2 = Math.random() * nm2b.length | 0;
}
var rnd3 = Math.random() * nm3b.length | 0;
tFrm = nm2b[rnd] + " and " + nm2b[rnd2] + " " + nm3b[rnd3];
} else if (tp === 2) {
var rnd = Math.random() * nm2c.length | 0;
var rnd2 = Math.random() * nm2c.length | 0;
while (rnd === rnd2) {
rnd2 = Math.random() * nm2c.length | 0;
}
var rnd3 = Math.random() * nm3c.length | 0;
tFrm = nm2c[rnd] + " and " + nm2c[rnd2] + " " + nm3c[rnd3];
} else if (tp === 3) {
var rnd = Math.random() * nm2d.length | 0;
var rnd2 = Math.random() * nm2d.length | 0;
while (rnd === rnd2) {
rnd2 = Math.random() * nm2d.length | 0;
}
var rnd3 = Math.random() * nm3d.length | 0;
tFrm = nm2d[rnd] + " and " + nm2d[rnd2] + " " + nm3d[rnd3];
} else {
var rnd = Math.random() * nm2e.length | 0;
var rnd2 = Math.random() * nm2e.length | 0;
while (rnd === rnd2) {
rnd2 = Math.random() * nm2e.length | 0;
}
var rnd3 = Math.random() * nm3e.length | 0;
tFrm = nm2e[rnd] + " and " + nm2e[rnd2] + " " + nm3e[rnd3];
}
var rnd4 = Math.random() * nm4.length | 0;
var rnd5 = Math.random() * nm5.length | 0;
var rnd6 = Math.random() * nm6.length | 0;
var rnd7 = Math.random() * nm7.length | 0;
var rnd8 = Math.random() * nm8.length | 0;
var rnd9 = Math.random() * nm9.length | 0;
var rnd10 = Math.random() * nm10.length | 0;
var rnd11 = Math.random() * nm11.length | 0;
var rnd12 = Math.random() * nm12.length | 0;
var rnd13 = Math.random() * nm13.length | 0;
var rnd14 = Math.random() * nm14.length | 0;
var rnd15 = Math.random() * nm15.length | 0;
var rnd16 = Math.random() * nm16.length | 0;
var name = "There were fields " + nm1[rnd1] + ". All around you " + tFrm + " in the " + nm4[rnd4] + " pastures, and " + nm5[rnd5] + " ran " + nm6[rnd6] + " road.";
var name2 = "The road " + nm7[rnd7] + " " + nm8[rnd8] + " " + nm9[rnd9] + " " + nm10[rnd10] + ". The " + nm9[rnd9] + " was " + nm11[rnd11] + ". " + nm12[rnd12] + ", " + nm13[rnd13] + ", and " + nm14[rnd14] + ". The farm had a " + nm15[rnd15] + " feel to it, " + nm16[rnd16] + ".";
var br = document.createElement('br');
if (document.getElementById("result")) {
document.getElementById("placeholder").removeChild(document.getElementById("result"));
}
var element = document.createElement("div");
element.setAttribute("id", "result");
element.appendChild(document.createTextNode(name));
element.appendChild(br);
element.appendChild(document.createTextNode(name2));
document.getElementById("placeholder").appendChild(element);
}