diff --git a/src/art/genAI/clothesPromptPart.js b/src/art/genAI/clothesPromptPart.js index 79d1c4e43f7101be6d265ec2a6f4a6eac48f92e9..cc8c33ccc7a58e97fdaebf52d6500386ca45f632 100644 --- a/src/art/genAI/clothesPromptPart.js +++ b/src/art/genAI/clothesPromptPart.js @@ -449,11 +449,23 @@ App.Art.GenAI.ClothesPromptPart = class ClothesPromptPart extends App.Art.GenAI. return clothes; } + /** + * Remove positive keywords for genitalia from slaves that don't have the genitalia described by the keyword. + * Currently handles pussies; probably should substitute penises when appropriate but right now the model is very bad at penises, so we just drop it. + * @returns {string} + */ + bodyPartReplacer(prompt) { + if (this.slave.vagina === -1) { + return prompt.replace(/( *)pussy(,)*/g, ""); + } + return prompt; + } + /** * @returns {string} */ positive() { - return clothesPrompts[this.getClothes()].positive; + return this.bodyPartReplacer(clothesPrompts[this.getClothes()].positive); } /**