Ipmplement woo generator

This commit is contained in:
n_u committed 2026-02-03 17:31:25 -06:00
1 parent c0def2f0a3
commit 8434a9dae5
5 files changed
+825

No files matched your search

Binary file not shown.
Binary file not shown.
+589
View File
@@ -0,0 +1,589 @@
// Woo-woo incense description generator
const adjective = [
"aromatic",
"climatic",
"cooling",
"deep",
"dulled",
"effervescent",
"effluent",
"effulgent",
"endless",
"evocative",
"grounding",
"healing",
"hidden",
"indolent",
"juicy",
"lactescent",
"lingering",
"ministerial",
"nourishing",
"open",
"precious",
"pungent",
"resonant",
"restless",
"sacred",
"sensual",
"shimmering",
"sparkling",
"still",
"undulating",
"unparalleled",
"warming",
];
const noun = [
["astrology", "astrologies"],
["bloom", "blooms"],
["breath", "breaths"],
["chakra", "chakras"],
["clarity", "clarities"],
["contribution", "contributions"],
["curiosity", "curiosities"],
["direction", "directions"],
["ember", "embers"],
["connection", "connections"],
["constriction", "constrictions"],
["coolness", "coolnesses"],
["expression", "expressions"],
["fire", "fires"],
["geometry", "geometries"],
["glow", "glows"],
["harmony", "harmonies"],
["meaning", "meanings"],
["nourishment", "nourishments"],
["onanism", "onanisms"],
["relationship", "relationships"],
["resonance", "resonances"],
["ritual", "rituals"],
["smoke", "smokes"],
["space", "spaces"],
["surface", "surfaces"],
["tantra", "tantras"],
["tension", "tensions"],
["transformation", "transformations"],
["vibration", "vibrations"],
["wonder", "wonders"],
];
const bodyPart = [
"appendix",
"armpit",
"bile",
"central core",
"cheeks",
"chest",
"cuticles",
"diaphragm",
"fingernails",
"flaps",
"folds",
"frenulum",
"goiter",
"humors",
"limbs",
"lingam",
"legs",
"lungs",
"meatus",
"mind",
"paunch",
"perineum",
"ribs",
"spine",
"spleen",
"throat",
"uvula",
"yoni",
"wenis",
];
const affliction = [
"abasement",
"acne",
"appropriation",
"bodaciousness",
"cirrhosis",
"concavity",
"confiscation",
"corpulence",
"defenestration",
"denunciation",
"despondency",
"erosion",
"exasperation",
"fatigue",
"fibrillation",
"flaking",
"hardening",
"hypertension",
"ill-humor",
"imbalance",
"impertinence",
"impotence",
"impropriety",
"incontinence",
"indolence",
"ingrowth",
"itching",
"leprosy",
"malignancy",
"mastication",
"melancholia",
"miasma",
"mistreatment",
"mortification",
"necrosis",
"plasticity",
"protuberance",
"psoriasis",
"putrescence",
"rumination",
"schadenfreude",
"scruples",
"seizure",
"sinkage",
"softening",
"stoppage",
"swelling",
"whiffiness",
];
const verb = [
["appreciate", "appreciates", "appreciating"],
["blend", "blends", "blending"],
["bloom", "blooms", "blooming"],
["breathe", "breathes", "breathing"],
["carry", "carries", "carrying"],
["calm", "calms", "calming"],
["cleanse", "cleanses", "cleansing"],
["clear", "clears", "clearing"],
["consolidate", "consolidates", "consolidating"],
["cool", "cools", "cooling"],
["dance", "dances", "dancing"],
["descend", "descends", "descending"],
["discern", "discerns", "discerning"],
["exacerbate", "exacerbates", "exacerbating"],
["fold", "folds", "folding"],
["govern", "governs", "governing"],
["harmonize", "harmonizes", "harmonizing"],
["linger", "lingers", "lingering"],
["masticate", "masticates", "masticating"],
["nourish", "nourishes", "nourishing"],
["retract", "retracts", "retracting"],
["scatter", "scatters", "scattering"],
["shift", "shifts", "shifting"],
["sink", "sinks", "sinking"],
["soften", "softens", "softening"],
["tingle", "tingles", "tingling"],
["titillate", "titillates", "titillating"],
["ululate", "ululates", "ululating"],
["undulate", "undulates", "undulating"],
["vent", "vents", "venting"],
["vindicate", "vindicates", "vindicating"],
["warm", "warms", "warming"],
["waver", "wavers", "wavering"],
["weave", "weaves", "weaving"],
];
const healingMethod = [
["abate", "abates", "abating"],
["alleviate", "alleviates", "alleviating"],
["assuage", "assuages", "assuaging"],
["balance", "balances", "balancing"],
["broaden", "broadens", "broadening"],
["cool", "cools", "cooling"],
["discipline", "disciplines", "disciplining"],
["edify", "edifies", "edifying"],
["elevate", "elevates", "elevating"],
["enrich", "enriches", "enriching"],
["harmonize", "harmonizes", "harmonizing"],
["heal", "heals", "healing"],
["invigorate", "invigorates", "invigorating"],
["lift", "lifts", "lifting"],
["lighten", "lightens", "lightening"],
["mitigate", "mitigates", "mitigating"],
["promote", "promotes", "promoting"],
["re-balance", "re-balances", "re-balancing"],
["refine", "refines", "refining"],
["regenerate", "regenerates", "regenerating"],
["relieve", "relieves", "relieving"],
["soften", "softens", "softening"],
["sooth", "soothes", "soothing"],
["uplift", "uplifts", "uplifting"],
["warm", "warms", "warming"],
];
const recipe = [
"agarbatti",
"blend",
"composition",
"fragrance",
"incense",
"recipe",
"stick",
];
const amount = [
"base",
"blessing",
"boatload",
"crumb",
"dash",
"dollop",
"dusting",
"glob",
"hint",
"pinch",
"shred",
"smattering",
"smidgen",
"sprinkling",
"touch",
"trace",
];
const preposition = [
"above",
"across",
"after",
"against",
"along",
"amid",
"among",
"around",
"as",
"before",
"behind",
"below",
"beneath",
"beside",
"between",
"beyond",
"following",
"from",
"into",
"like",
"near",
"onto",
"opposite",
"over",
"past",
"round",
"through",
"to",
"toward",
"under",
"underneath",
"upon",
"versus",
"via",
"with",
"within",
];
const ingredient = [
"agarwood",
"amber",
"ambergris",
"ambrette seed",
"atlas cedar",
"bergamot",
"balsam of tolu",
"basil",
"bay laurel",
"benzoin",
"borneol camphor",
"burgundy pitch",
"calamus root",
"cardamom",
"cassia",
"catnip",
"chen pi",
"chamomile",
"cinnamon",
"clove",
"colophony pine",
"copal",
"coriander",
"dammar",
"dragon’s blood",
"elemi",
"eucalyptus",
"frankincense",
"galangal root",
"galbanum",
"ginger root",
"guggul",
"hibiscus",
"hyssop",
"juniper berry",
"juniper",
"labdanum",
"laurel leaf",
"lavender",
"lemon balm",
"lemon grass",
"marjoram",
"mastic",
"mugwort",
"musk root",
"myrrh",
"nutmeg",
"oakmoss",
"onycha",
"opoponax",
"orris root",
"palo santo",
"patchouli",
"pine needle",
"pine resin",
"red cedar",
"red sandalwood",
"rose",
"rosemary",
"saffron",
"sage",
"sandalwood",
"sandarac",
"spikenard",
"spruce",
"star anise",
"storax",
"sweetgrass",
"thyme",
"tolu balsam",
"tonka bean",
"turkey rhubarb",
"turmeric",
"valerian",
"vanilla",
"vetiver",
"weeping cypress",
];
const getWord = (wordArr, usedArr, tense, plural) => {
if (wordArr == noun) {
let word = wordArr[(wordArr.length * Math.random()) | 0][0];
let pluralWord = wordArr[(wordArr.length * Math.random()) | 0][1];
let wordIsUsed = usedArr.indexOf(word) >= 0 ? true : false;
let pluralIsUsed = usedArr.indexOf(pluralWord) >= 0 ? true : false;
while (wordIsUsed == true || pluralIsUsed == true) {
word = wordArr[(wordArr.length * Math.random()) | 0][0];
pluralWord = wordArr[(wordArr.length * Math.random()) | 0][1];
wordIsUsed = usedArr.indexOf(word) >= 0 ? true : false;
pluralIsUsed = usedArr.indexOf(word) >= 0 ? true : false;
}
return plural ? pluralWord : word;
} else if (wordArr == verb || wordArr == healingMethod) {
let word = wordArr[(wordArr.length * Math.random()) | 0][0];
let present = wordArr[(wordArr.length * Math.random()) | 0][1];
let continuous = wordArr[(wordArr.length * Math.random()) | 0][2];
let wordIsUsed = usedArr.indexOf(word) >= 0 ? true : false;
let presentIsUsed = usedArr.indexOf(present) >= 0 ? true : false;
let continuousIsUsed = usedArr.indexOf(continuous) >= 0 ? true : false;
while (
wordIsUsed == true ||
presentIsUsed == true ||
continuousIsUsed == true
) {
word = wordArr[(wordArr.length * Math.random()) | 0][0];
present = wordArr[(wordArr.length * Math.random()) | 0][1];
continuous = wordArr[(wordArr.length * Math.random()) | 0][2];
wordIsUsed = usedArr.indexOf(word) >= 0 ? true : false;
presentIsUsed = usedArr.indexOf(word) >= 0 ? true : false;
continuousIsUsed = usedArr.indexOf(continuous) >= 0 ? true : false;
}
if (tense == "present") {
return present;
} else if (tense == "continuous") {
return continuous;
} else {
return word;
}
} else {
let word = wordArr[(wordArr.length * Math.random()) | 0];
let isUsed = usedArr.indexOf(word) >= 0 ? true : false;
while (isUsed == true) {
word = wordArr[(wordArr.length * Math.random()) | 0];
isUsed = usedArr.indexOf(word) >= 0 ? true : false;
}
return word;
}
};
const capitalize = (str) => {
return str[0].toUpperCase() + str.slice(1);
};
const coinFlip = () => {
return Math.random() < 0.5 ? true : false;
};
const randomNumber = (min, max) => {
return Math.floor(Math.random() * (max - min + 1) + min);
};
const descriptionConstructor = (
adjective,
noun,
bodyPart,
verb,
preposition,
ingredient,
) => {
let used = [];
let description = "<p>";
let currentWord = "";
const addWord = (list, plural, punctuation, tense, capitalizeBool) => {
currentWord = getWord(list, used, tense, plural);
capitalizeBool
? (description += capitalize(currentWord))
: (description += currentWord);
description += punctuation;
used.push(currentWord);
};
const addAdjective = (punctuation, capitalize) => {
addWord(adjective, false, punctuation, null, capitalize);
};
const addAffliction = (punctuation, capitalize) => {
addWord(affliction, false, punctuation, null, capitalize);
};
const addAmount = (punctuation, capitalize) => {
addWord(amount, false, punctuation, null, capitalize);
};
const addBodyPart = (punctuation, capitalize) => {
addWord(bodyPart, false, punctuation, null, capitalize);
};
const addHealingMethod = (punctuation, tense, capitalize) => {
addWord(healingMethod, false, punctuation, tense, capitalize);
};
const addIngredient = (punctuation, capitalize) => {
addWord(ingredient, false, punctuation, null, capitalize);
};
const addNoun = (punctuation, plural, capitalize) => {
addWord(noun, plural, punctuation, null, capitalize);
};
const addPreposition = (punctuation, capitalize) => {
addWord(preposition, false, punctuation, null, capitalize);
};
const addRecipe = (punctuation, capitalize) => {
addWord(recipe, false, punctuation, null, capitalize);
};
const addVerb = (punctuation, tense, capitalize) => {
addWord(verb, false, punctuation, tense, capitalize);
};
const insertCustomString = (str) => {
description += str;
};
const removeLastCharacter = () => {
description = description.slice(0, description.length - 1);
};
// Construct opening sentence.
addAdjective(" ", true);
addNoun(" ");
addVerb(" ", "present");
if (coinFlip()) addPreposition(" ");
addVerb(" ", "continuous");
coinFlip() ? addNoun(". ", true) : addNoun(". ");
insertCustomString("</p>");
// Construct recipe description
insertCustomString("<p>This ");
addAdjective(" ");
addRecipe(" ");
addVerb(" ", "present");
insertCustomString("and ");
addVerb(" ", "present");
addPreposition(" ");
addNoun(" ");
insertCustomString("and ");
addNoun(".</p>");
// Construct ingredient roles
const numOfIngredients = randomNumber(2, 5);
for (let i = 0; i < numOfIngredients; i++) {
i == 0 ? insertCustomString("<p>") : null;
if (coinFlip()) {
insertCustomString("A ");
addAmount(" ");
insertCustomString("of ");
addAdjective(" ");
} else {
addAdjective(" ", true);
}
if (coinFlip()) {
if (coinFlip()) {
insertCustomString("and ");
addAdjective(" ");
addIngredient(" ");
} else {
removeLastCharacter();
insertCustomString(", yet ");
addAdjective(", ");
addIngredient(" ");
}
} else {
addIngredient(" ");
}
addVerb(" ", "present");
if (coinFlip()) {
insertCustomString("and ");
addVerb(" ", "present");
}
if (coinFlip()) {
if (coinFlip()) {
insertCustomString("while ");
addHealingMethod(" ", "continuous");
addAffliction(" ");
insertCustomString("of the ");
} else {
insertCustomString("and ");
addHealingMethod(" ", "present");
addAffliction(" ");
insertCustomString("of the ");
}
i == numOfIngredients - 1 ? addBodyPart(".</p>") : addBodyPart(". ");
} else {
i == numOfIngredients - 1 ? addNoun(".</p>") : addNoun(". ");
}
}
// Healing properties
insertCustomString("<p>Also good for: ");
const numOfHealingProps = randomNumber(1, 5);
for (let i = 1; i <= numOfHealingProps; i++) {
i == 1 ? addAffliction(" ", true) : addAffliction(" ");
insertCustomString("of the ");
if (i == numOfHealingProps - 1) {
addBodyPart(", and ");
} else if (i == numOfHealingProps) {
addBodyPart(".</p>");
} else {
addBodyPart(", ");
}
}
return description;
};
+6
View File
@@ -0,0 +1,6 @@
/**
* @license
* Copyright 2010-2021 Three.js Authors
* SPDX-License-Identifier: MIT
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).THREE={})}(this,(function(t){"use strict";const e="128",n=100,i=300,r=301,s=302,a=303,o=304,l=306,c=307,h=1e3,u=1001,d=1002,p=1003,m=1004,f=1005,g=1006,v=1007,y=1008,x=1009,_=1012,w=1014,b=1015,M=1016,S=1020,T=1022,E=1023,A=1026,L=1027,R=33776,C=33777,P=33778,D=33779,I=35840,N=35841,B=35842,z=35843,F=37492,O=37496,H=2300,G=2301,U=2302,k=2400,V=2401,W=2402,j=2500,q=2501,X=3e3,Y=3001,Z=3007,J=3002,Q=3004,K=3005,$=3006,tt=7680,et=35044,nt=35048,it="300 es";class rt{addEventListener(t,e){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)}hasEventListener(t,e){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[t]&&-1!==n[t].indexOf(e)}removeEventListener(t,e){if(void 0===this._listeners)return;const n=this._listeners[t];if(void 0!==n){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}dispatchEvent(t){if(void 0===this._listeners)return;const e=this._listeners[t.type];if(void 0!==e){t.target=this;const n=e.slice(0);for(let e=0,i=n.length;e<i;e++)n[e].call(this,t);t.target=null}}}const st=[];for(let t=0;t<256;t++)st[t]=(t<16?"0":"")+t.toString(16);let at=1234567;const ot=Math.PI/180,lt=180/Math.PI;function ct(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return(st[255&t]+st[t>>8&255]+st[t>>16&255]+st[t>>24&255]+"-"+st[255&e]+st[e>>8&255]+"-"+st[e>>16&15|64]+st[e>>24&255]+"-"+st[63&n|128]+st[n>>8&255]+"-"+st[n>>16&255]+st[n>>24&255]+st[255&i]+st[i>>8&255]+st[i>>16&255]+st[i>>24&255]).toUpperCase()}function ht(t,e,n){return Math.max(e,Math.min(n,t))}function ut(t,e){return(t%e+e)%e}function dt(t,e,n){return(1-n)*t+n*e}function pt(t){return 0==(t&t-1)&&0!==t}function mt(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function ft(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}var gt=Object.freeze({__proto__:null,DEG2RAD:ot,RAD2DEG:lt,generateUUID:ct,clamp:ht,euclideanModulo:ut,mapLinear:function(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)},inverseLerp:function(t,e,n){return t!==e?(n-t)/(e-t):0},lerp:dt,damp:function(t,e,n,i){return dt(t,e,1-Math.exp(-n*i))},pingpong:function(t,e=1){return e-Math.abs(ut(t,2*e)-e)},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},seededRandom:function(t){return void 0!==t&&(at=t%2147483647),at=16807*at%2147483647,(at-1)/2147483646},degToRad:function(t){return t*ot},radToDeg:function(t){return t*lt},isPowerOfTwo:pt,ceilPowerOfTwo:mt,floorPowerOfTwo:ft,setQuaternionFromProperEuler:function(t,e,n,i,r){const s=Math.cos,a=Math.sin,o=s(n/2),l=a(n/2),c=s((e+i)/2),h=a((e+i)/2),u=s((e-i)/2),d=a((e-i)/2),p=s((i-e)/2),m=a((i-e)/2);switch(r){case"XYX":t.set(o*h,l*u,l*d,o*c);break;case"YZY":t.set(l*d,o*h,l*u,o*c);break;case"ZXZ":t.set(l*u,l*d,o*h,o*c);break;case"XZX":t.set(o*h,l*m,l*p,o*c);break;case"YXY":t.set(l*p,o*h,l*m,o*c);break;case"ZYZ":t.set(l*m,l*p,o*h,o*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}});class vt{constructor(t=0,e=0){this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=tLine truncated