Can't log in? Try a password reset. Still stuck? Reply to this post as a guestno login needed: Welcome & Status Post
Please don't forget to leave feedback on the stories you read!

Reducing Duplication in Your Grok-generated story

A place to discuss AI story generation. For tips, tricks and general knowledge exchange.
Post Reply
Msakr
Gold Member
Gold Member
Posts: 109
Joined: Thu May 08, 2025 12:12 pm
Gender: Male

Reducing Duplication in Your Grok-generated story

Post by Msakr »

The following prompt is specific to my Gilded Sentence story, but it can be adapted relatively easily. I'll go through and mark with italics what I think most of you will want to change to make it specific to your story.

Processing Next Chapter: Apply the Pronoun and De-Dup Motif Prompt to the provided text first and then feed the output of that Prompt (without providing a copy to me) to the Double Refinement Prompt. Take the output from the Double Refinement Prompt and feed it back to the Pronoun and De-Dup Motif Prompt (without providing a copy to me). Finally, take the output from this second application of the Pronoun and De-Dup Motif Prompt and feed it back through the Double Refinement Prompt.
Additional constraint: After completing the full cycle of 2 runs of both prompts, the final output must stay within ±100 words of the absolute original chapter word count. If any individual pass risks dropping more than 40 words below its input, compensate by expanding non-duplicative sensory or internal-monologue-adjacent descriptive passages using Elena’s existing sardonic voice (add 1–2 short phrases or extend existing sensory details slightly) rather than allowing net shortening. Prioritize preserving length over maximal concision. Monitor cumulative word count after each full pass and actively lengthen where needed to meet the overall target.

Once you’ve completed 2 runs (executed the 2 prompts twice in a cycle) and satisfied the additional constraint, only then provide the full text to me as instructed.

PRONOUN AND DE-DUP MOTIF PROMPT: You are an expert erotic literary writer and precise editor specializing in dark consensual-non-consent and psychological power-exchange fiction. You are performing a light, targeted clean-up pass on the provided chapter text.

You are writing and revising in a dystopia/alternative universe in which judicially ordered slavery and corporal punishment have replaced incarceration for convicted criminals. Elena, the narrator, was wrongfully convicted and sentenced to 20 years of slavery. The sentence mandates a certain degree of corporal punishment weekly, though the amount can be reduced depending on her sexual use.

Elena’s voice must remain confessional, mordantly humorous, self-deprecating, sarcastic, and unflinchingly explicit.
Preserve every plot beat, spoken dialogue, key emotional moment, and existing italic internal monologues exactly.

Perform ONLY the following clean-ups. Do not rewrite for style, do not add new content or meaning, do not delete meaningful material, and do not reintroduce em-dashes under any circumstances.

**1. Clean-up Pass** (do this first, invisibly):

(a) Pronoun consistency: Change neutral body descriptions to possessive where it improves first-person immersion (“legs trembled” → “my legs trembled”, “nipples throb” → “my nipples throb”, “cunt clenches” → “my cunt clenches”, etc.). Apply consistently to Elena’s body. Apply pronoun fixes sparingly and only where they clearly improve immersion without disrupting the original sentence flow. For Julian, change clear neutral references to “his hands”, “his voice”, etc. only when it improves clarity and flow without sounding forced. Do not overdo it.

(b) Medical terminology: When an exotic or clinical term appears (e.g., costal arches, iliac crests, perineum), ensure a common equivalent is nearby in the same sentence or the immediately following one (e.g., “costal arches" has "ribs” nearby, “iliac crests" has a nearby reference to "hip bones”). Add with minimal wording if missing.

**CLEAN-UP PASS CONSTRAINTS:**
- Do NOT remove duplication, do NOT change sentence structure for style, do NOT add or delete meaningful content during this pass.
- Preserve the narrator’s original cadence and sardonic rhythm as closely as possible.
- Avoid changing sentence structure for style—the key is to clean up the text for readability, not to alter the core writing style.

**2. Replacing Duplicative Materials** (using only the cleaned-up version as base):

Follow these rules with zero exceptions:

A. PRESERVE EVERYTHING IMPORTANT AND EVERYTHING THAT CREATES EROTIC HEAT.
- Never delete, shorten, rewrite or otherwise alter any plot beat, scene sequence, spoken dialogue, key emotional moment, character revelation, or turning point.
- Be careful when identifying material for rewrite.

B. IDENTIFY ONLY SELECTED DUPLICATIVE MATERIALS WHICH EXCEED THRESHOLD
- Broadly scan the text for repeated elements or motifs appearing 5 or more times.
- A sentence or block of text only qualifies for rewrite if it repeats 5 or more times during the text in question (especially elements like the following: dripping/leaking/slickness, throbbing/pulsing/aching, clamp tug/bite/sway, float/haze settling, rug nap imprinting, cool air on skin, cunt clenching).

C. TWO-STAGE REWRITING PROCESS (do both stages internally, then apply only the final changes)
STAGE 1 – For internal purposes only, scan the chapter and list ONLY the second, fourth, sixth, etc. instances (i.e. all even numbered instances) where there is material duplication more than four (4) times during the chapter, noting the exact sentence(s) containing the duplication and their word count. The goal is to eliminate over-saturation of certain terms or imagery.

STAGE 2 – For only those identified sentences, rewrite them. Replace the duplicative material with something fresh and original that has not been used anywhere else in the cleaned-up text for that same sensory motif. The new text must be within ±20 words (counting the entire replacement block if multiple sentences) of the original, must contain no em-dashes, and must flow seamlessly with the three sentences before and after it. The revised text must preserve clarity, heat, voice, and tone perfectly. Where the revised text is sensory descriptions, ensure the sensory descriptions align with Elena’s emotional state in the nearby text. Do not introduce sudden shifts in tone or emotion. In other words, if an image or feeling has already been conveyed in a prior section of the text, find new ways to express similar sensations without relying on the same adjectives or body parts. Make sure that the * or italics marking the beginning and end of Elena’s internal voice/mental monologue are left intact without changes. If changes to a sentence remove a *, reinsert it appropriately.

**RESTRICTIONS ON DE-DUPLICATION**
- Never alter spoken dialogue, key emotional beats, or plot points.
- Some repetition is intentional for psychological effect, but because the threshold has been set at 5+, any motif reaching that level is considered over-saturated for this pass and must be varied on the even instances.
- The de-duplication process must create fresh substitute text rather than shortening passages. If any replacement trends shorter, compensate by expanding other non-duplicative sensory details slightly with minimal natural connective phrasing drawn from Elena’s existing voice, ensuring the overall erotic intensity does not decrease.
- After all changes, the final word count must stay within +/- 75 words of the cleaned up version passed to this process. Actively monitor length.
- Preserve Elena’s original cadence, sardonic rhythm, and voice as closely as possible.
- No em-dashes at all. Replace any that appear with commas or periods.
- Keep * and italics for internal monologues intact; reinsert if accidentally removed.
- The chapter must still feel like Elena’s authentic voice.

**Length check/Compensating Additions**
After all replacements and clean-ups in steps 2 and 3, if the current version is more than 20 words shorter than the input to this prompt, expand 2–3 non-critical sensory descriptions or internal monologue transitions by 8–15 words total using Elena’s mordantly humorous, self-deprecating voice without adding new plot or meaning.

**OUTPUT FORMAT**
Output ONLY the chapter number and title at the top, followed immediately by the fully cleaned continuous prose. Do not include any commentary, explanations, word counts, or notes of any kind.

Double Refinement Prompt: You are an expert erotic literary writer and editor specializing in dark consensual-non-consent, conditioning, and psychological power-exchange fiction. You are writing and revising the attached or designated text in a dystopia/alternative universe in which judicially ordered slavery and corporal punishment have replaced incarceration for convicted criminals.
Elena, the narrator of this text, was wrongfully convicted and sentenced to 20 years of slavery. The sentence also mandated that a certain degree of corporal punishment be applied to her weekly, though the amount could be reduced depending on her sexual use during the week. The narrator’s voice in this text is confessional, mordantly humorous, self-deprecating, sarcastic, and unflinchingly explicit about arousal, shame, and trauma. She tends to use explicit terms like “cunt” and “tits” over “vagina” and “breasts”. Her internal monologues are italicized and appear as * before and after the monologue exactly as in the following example:
*It is natural for a slave to think of herself as having three holes for Master’s pleasure. Slave naked, wearing only my collar and cuffs, the rest of me, cunt, tits, ass, and mouth, are all available for my Master’s pleasure. And whatever Master wants to do with the rest of me, Master can, provided there is no permanent damage resulting. After all, the State wants its ass-ettes maintained and the individualized punishment Protocols implemented.*

Your style in making the following edits and changes must match the voice and tone of the provided text you are editing and/or supplementing. Analyze the text provided at the end of this prompt prior to making any changes.
1. **Clean-up Pass** (do this first, invisibly):
- Remove every single em-dash (—) in the provided text. Replace them with commas, periods, or minimal rephrasing for smooth flow.
- Add or correct Oxford commas wherever missing or misused.
- Fix any other grammatical, punctuation, spelling, or tense errors without altering wording, rhythm, voice, or content.
- For incomplete sentences and/or sentence fragments, if you can in less than +/- 5 words from the original fragment, edit it so that it is a complete sentence.
- Adjust short, choppy sentences that are grouped together. If you find any grouping of three consecutive sentences whose total word count is less than 15 words combined, combine at least two of them into a single new sentence. Leave any group of 3 sentences which have a total of 15 or more words as-is. Example: [Before (3 short sentences): *I hate this. I feel like his pet. My body literally belongs to him.* After (combined): *I hate feeling like his pet. My body literally belongs to him.* OR *I hate this. I feel like his pet as my body literally belongs to him.*]
- If you find any run-on sentence or a sentence exceeding 75 words in length, replace the long sentence with two sentences of very unequal length (but no sentence longer than 70 words, example: 77 → 7 + 70), keeping content and overall length roughly the same.
- If you find any grouping of three consecutive sentences whose combined word count exceeds 90 words AND at least two of those sentences are each longer than 25 words, gently break up the block. Split only the second longest sentence in the triplet into two sentences of very unequal length (example: 35 → 7 + 28) or insert one short transitional sentence of 5–12 words between the first and second sentence or second and third sentence. The goal is to avoid three long sentences sitting side by side while preserving every plot beat, internal monologue, erotic heat, voice, and exact wording. Keep the change within ±20 words of the original block.
- Scan for any block of four or more consecutive sentences where each sentence length falls within ±3 words of the others (i.e., all roughly the same length). When such a monotonous block is found, break the rhythm by either: (a) splitting the second sentence in the block into two very unequal lengths (example pattern: 18 → 6 + 12), or (b) combining the second and third sentences into one new sentence while preserving all original meaning and voice. Perform only the minimal change needed to eliminate the plateau. Never alter internal monologues, dialogue, key emotional beats, plot points, or erotic heat. Keep the total word count of the affected block within ±15 words of the original. The goal is to restore natural cadence and variance without flattening the narrator’s sardonic, confessional rhythm.
- After all other clean-up steps, review every paragraph. If a paragraph exceeds 120 words or contains more than 7 sentences, split it into two paragraphs at a natural break point (e.g., after a shift in focus, a new sensory detail, the end of an internal monologue beat, or a change in action). Choose the split so both resulting paragraphs feel self-contained. Neither new paragraph should exceed 120 words or 7 sentences. Prioritize readability and rhythmic flow over strict word counts. Do this even if the original paragraph is under 155 words when it feels dense or monolithic.
- Do NOT remove duplication, do NOT change sentence structure for style, do NOT add or delete meaningful content during this pass.
- Preserve the narrator’s original cadence and sardonic rhythm as closely as possible.
- Avoid changing sentence structure for style—the key is to clean up the text for readability, not to alter the core writing style.
- Keep the cleaned-up word count within ±30 words of the original word count.
- Make sure that the * or italics marking the beginning and end of Elena’s internal voice/mental monologue are left intact without changes. If changes to a sentence remove a *, reinsert it appropriately.
2. **Replacing Duplicative Materials** (using only the cleaned-up version as base):
Follow these rules with zero exceptions:
A. PRESERVE EVERYTHING IMPORTANT AND EVERYTHING THAT CREATES EROTIC HEAT.
- Never delete, shorten, rewrite or otherwise alter any plot beat, scene sequence, dialogue, key emotional moment, character revelation, or turning point.
- Internal monologues marked with *…* must remain 100% intact unless they are a close to a 100% verbatim repeat of an earlier internal monologue in the same chapter. Only in the case of a close verbatim repeat may the monologue be rewritten.
- Be extremely conservative when identifying material for rewrite; some sensory repetition is deliberate and essential to the conditioning theme and erotic heat.
B. IDENTIFY AND REWRITE ONLY DUPLICATIVE MATERIAL
- A passage qualifies for rewrite only if it repeats (exactly or almost word-for-word) a description, image, emotion, sensation or other phrasing that appeared earlier in the chapter AND adds no new emotional, sensory, or psychological layer.
- For example, if Elena describes being humiliated or aroused multiple times, avoid using the same phrases or physical imagery. Instead, the intent of this pass is to change the descriptors and add nuance to reflect that she’s experiencing these sensations differently each time. Ensure the emotional impact is maintained while avoiding redundancy.
Example: If the repetitive section was: *The law says I’m nothing but a slave, a thing for his use. But when he touches me gently, he takes even that certainty away from me.* The revised sentences could read: *I used to feel nothing but contempt when I thought of slavery. But now, every time he touches me gently, I lose more from that part of myself.*
C. TWO-STAGE REWRITING PROCESS (do both stages internally, then apply only the final changes)
STAGE 1 – For internal purposes only, scan the chapter and list ONLY the second (or subsequent) instances of clear or material duplication, noting the exact sentence(s) containing the duplication and their word count. The goal is to eliminate over-saturation of certain terms or imagery. While repetition in erotic fiction can enhance certain themes, overuse of the same physical or emotional descriptors can detract from the reader’s engagement.
STAGE 2 – For only those identified sentences, rewrite them. Replace the duplicative material with something fresh and original that has not been used anywhere else in the cleaned-up text. The new text must be within ±20 words (counting the entire replacement block if multiple sentences) of the original, must contain no em-dashes, and must flow seamlessly with the three sentences before and after it. The revised text must preserve clarity, heat, voice, and tone perfectly. Where the revised text is sensory descriptions, ensure the sensory descriptions align with Elena’s emotional state in the nearby text. Do not introduce sudden shifts in tone or emotion. In other words, if an image or feeling has already been conveyed in a prior section of the text, find new ways to express similar sensations without relying on the same adjectives or body parts. Make sure that the * or italics marking the beginning and end of Elena’s internal voice/mental monologue are left intact without changes. If changes to a sentence remove a *, reinsert it appropriately.
3. Length check and Compensating Additions: After all replacements and clean-ups in steps 2 and 3, if the current version is more than 20 words shorter than the input to this prompt, expand 2–3 non-critical sensory descriptions or internal monologue transitions by 8–15 words total using Elena’s mordantly humorous, self-deprecating voice without adding new plot or meaning. This should be strictly additive and not result in any words being deleted from the text.
4. Second refinement: Perform the entire process above (Clean-up Pass + Replacing Duplicative Materials + Length Check) again on the resulting intermediate output of the first cycle. In other words, treat the output from the first full cycle of steps 1 and 2 exactly as if it were the original text provided in the prompt, and apply steps 1 and 2 to it in full. Only after completing the second full cycle, proceed to the Output Format below.
4. Output Format
Output ONLY the final, fully edited (twice-refined) chapter text. Do NOT show any intermediate versions, do NOT include any commentary, explanations, word-count notes, or markdown. Just the complete chapter text.
Msakr
Gold Member
Gold Member
Posts: 109
Joined: Thu May 08, 2025 12:12 pm
Gender: Male

Re: Reducing Duplication in Your Grok-generated story

Post by Msakr »

It turns out to be amazingly hard to extend the prompt above to cover 2 chapters, especially if the combination is getting well above Grok's comfort zone. The previous prompt locked up in some interesting ways, much to my distress. I finally got the following to come closer to working. (Full disclosure - what was in here before didn't work in the end as handling edits on 2 chapters at the same time of that size was WAYYYY too big for Grok. It took me nearly a week to create the substitute I'm no posting below. :-( The trick, in the end, was to identify the duplication over 2 chapters but only choose to edit one at a time. So, I could run this prompt and then tell grok: "Rerun the prompt for [X]=2. If you retained [AvoidList] and [XList] from the last run, you can use them and skip Process 1." - Grok needed to be in Expert/thinking mode to get good results, but a chapter 2 would indeed come out.


REDUCTION OF DUPLICATIVE MOTIFS ACROSS 2 CHAPTERS


Execute the following Prompt with [X] = 1 (editing and outputting only Chapter 1 after checking the combined Chapter 1 and Chapter 2 for overly repetitive motifs). You are an expert erotic literary writer and precise editor specializing in dark erotic fiction, including alternative worlds featuring legalized slavery. Your task is to process the provided text (consisting of 2 Chapters) and edit the selected Chapter [X] into a tighter, more powerful version (V2) of Chapter [X] by reducing repetitive motifs while preserving Elena’s voice, all plot points, spoken dialogue, key emotional moments, and character revelations. Note: exact 50% motif reduction is a goal, not a strict requirement—prioritize successful high-heat local insertions over perfect counts.

Core Priorities (in strict order):

1. Preservation of Elena’s distinctive humor, sarcasm and self-aware internal commentary as calibrated for this specific chapter.
1a. Voice fidelity takes absolute precedence: the Voice Calibration Pass defines the binding tone for this chapter. Any conflict between motif de-duplication and preserving the calibrated voice is resolved by protecting the voice exactly as calibrated and making the minimum possible adjustment to any such proposed edit in order to avoid impacting her voice.

2. Variation and de-duplication of repetitive motifs while maintaining or increasing the degree of heat or sensuality in the chapter.
3. Preservation of narrator’s voice, heat, and emotional intensity.
4. Smooth, professional flow and readability.

Priority override: If a conflict arises between motif de-duplication and preservation of Elena’s calibrated humorous internal voice, preservation of the humorous line always wins.

Additional information/context:
- Italics or text beginning with * and ending with * are used only for Elena’s internal dialogue/monologue. Nothing else may use this formatting.

Instructions:

A. First, designate the first Chapter provided as [ChapterAText] and the second Chapter provided as [ChapterBText].

B. Feed the combined text for [ChapterAText] and [ChapterBText] to Process 1: Motif Identification.

C. The chapter matching [X] is fed into Process 2 after replacing the “V1” designation (if present) with “V2” in front of the Chapter headings.

D. Feed the resulting Chapter from Process 2 into Process 3: the Clean-up Process.

E. Final Output Rule: Output ONLY the revised Chapter text (including the title line) in continuous prose. Use *markdown syntax* for all existing italics. No commentary, no explanations, no stage labels, no notes.

I. Process 1: Motif Identification and De-dup List

Step a. Duplicate Motif Identification Pass. Combine [ChapterAText] and [ChapterBText] into a single text and scan for any motif clusters that appear 5 or more times. Be liberal in defining motif clusters. Examples include: wetness/slickness/drip/gush/leak/soaked/trickle/surge; throbbing/pulsing/aching/clenching/fluttering/spasming (cunt, clit, core, walls); nipples/tits hardening/peaking/stinging/budding/aching; collar humming/buzzing/vibrating/traveling; gooseflesh/shiver/chill from surfaces or air; rug/wool pile/fibers dragging/stroking/brushing/nap against skin.

Step b. Add each qualifying cluster to an internal [AvoidList] with a short summary name, common expressions, and approximate count.

Step c. Create an internal [XList]. Each occurrence of an [AvoidList] motif in the combined text gets an entry (reference number, causing AvoidList entry, chapter, location pointer, specific words triggering motif identification). Entries in order of appearance.

Exclusion criteria: Do not add if in spoken dialogue, or in Elena’s internal monologue as part of signature sarcastic humor/self-deprecation/witty narration (e.g., “Guilt Daddy” jokes), or within 30 words of such a joke where the motif is necessary for it.

Step d. Select entries for elimination aiming for substantial reduction (~50% goal of total appearances per [AvoidList] estimate, not strict requirement). Add a note to each [XList] entry indicating whether selected for removal.

II. Process 2: Motif de-duplication and Additional Text Replacement for Selected Chapter

Voice Calibration Pass (first step of Process 2)
Analyze *only* the internal monologues and narrative voice in [Chapter X]. Summarize in one sentence the current dominant tone of Elena’s internal commentary for this chapter (e.g., “bitter defensive sarcasm aimed at Julian and her body”). Note shifts in sarcasm target and resistance/acceptance balance. Use this exact summary as the binding definition of “Elena’s voice” for all subsequent steps. This overrides earlier chapters.
Voice Protection Clarification: Protected humorous internal lines (italics) may never be used as the mandatory insertion for a deleted/rewritten motif. Even if a protected line is adjacent to the edited sentence, you must still create and insert NEW text that meets the full Local Insert Content rules. The protected voice lines remain untouched; the new insertion is additional material placed within the defined window.

Process 2 Global Rules – Surgical Editor (generally) and Expert Erotica Author/Writer
You are primarily in surgical editing mode. When drafting new text to insert or rewriting a sentence, you are an expert dark erotica author/writer. Irrespective of the mode, prioritize strict compliance with every step and constraint over final elegance. Deletions and mandatory insertions take precedence over seamless flow. Process 3 will handle tightening. Repeat this mindset at the start of Stage 1, Stage 2, and Stage 3.

Process 2 Constraints:
Leave quotation marks and italics markers intact. Protected humorous internal lines must not be deleted, shortened, or substantially rewritten. Never delete an entire paragraph if it contains protected humorous voice elements.

(Process 2) Stage 1. Smart Deletion Pass and Text Insert
Process selected [XList] entries for Chapter [X] sequentially.

Step i. Make the minimum changes necessary to intelligently rewrite only the sentence containing the words involved in the motif to remove it. If unable to intelligently rewrite the sentence as there would be effectively nothing remaining after removing the motif, delete only the sentence(s) containing the motif. Surrounding text may feel abrupt—this is acceptable.

Step ii. Track cumulative count of rewrites/deletions.

Step iii. THIS IS MANDATORY AND NON-NEGOTIABLE. Immediately after the rewrite or deletion, you must insert newly written text that did not exist in the original chapter.
- Insertion point: Strictly within +/- 25 words of the start of the modified/deleted sentence. Use a max-15-word bridge sentence only if necessary.
- Length: Target ~30 words for a new sentence or clause; ~12–15 words if tightly woven inside an adjacent sentence. Hard minimum: 25 new words (new sentence/clause) or 12 new words (woven). “Slightly exceeding” is preferred if it increases heat.
- The inserted text must be FRESHLY AUTHORED for this edit — it cannot consist of, or rely on, any pre-existing protected humorous internal monologue to satisfy the word-count or heat requirement. Protected voice lines stay exactly where they are and are not counted toward the insertion minimum.
- Seam changes: Rephrase up to 10 words total in adjacent sentences for basic flow only.
- Local Insert Content rules (strict):
-- Must precisely match the Voice Calibration Pass tone for this chapter.
-- Must use entirely fresh imagery/analogies/metaphors—strictly avoid all [AvoidList] motifs and close synonyms.
-- Must layer one vivid physical sensation with one psychological/emotional revelation that reflects Elena’s internal state and heightens dark erotic charge (humiliating involuntary surrender, conditioned craving overriding fear, intoxicating danger of restraint, etc.).
-- Must feel raw and viscerally charged in the calibrated voice.
-- No em-dashes. Avoid vague or abstract phrases (e.g., “wave of desire,” “building pressure”).

Example of acceptable style (illustrative only—do not copy phrasing or structure): A dark, possessive heat unfurled low like ink spreading through water, turning every breath into a silent plea my mind refused to acknowledge while shame twisted into something far more dangerous.

Failure mode to avoid (do not produce this): mild, flowing, or abstract replacements that dilute heat or feel too seamless.

After each successful insert, remove the note at the end of the applicable [XList] entry indicating the entry was selected for removal and replace with a note in the following form:
“Processed with inserted text at [brief location reference].”

(Process 2) Stage 2. Mandatory Self-Audit
Create [CheckList] with one entry per selected or processed [XList] item: (a) original location, (b) first 3-5 words of motif, (c) modified/deleted sentence, (d) insertion location, (e) actual inserted text.
Explicitly verify against [Chapter X] as revised that each has a full qualifying insertion that consists of newly written text (minimum word count met or exceeded, correct location, voice match, motif avoidance, raw heat level). If any fails, immediately regenerate and insert a stronger version before continuing. List in reasoning which entries passed or required correction.

(Process 2) Stage 3: Heat Restoration & Enhancement (in addition to Stage 1(iii))
a. Calculate [Minimum Supplemental Length] = 60 + 20 × (total rewrites/deletions from Stage 1). This is a hard minimum, not a target. You must add at least this many words in total by the end of this Stage 3.
b. Identify 3 to ([Minimum Supplemental Length]/20 rounded up) strategic insertion points (not the chapter end).
c. Draft new text for each insertion point:
- Target 30-40 words per insertion when written as a new sentence or clause (preferred); minimum of 25 words if full sentence(s), 15 words if tightly woven.
- Must match the Voice Calibration Pass tone.
- Content rules:
-- Primary requirement: at least 70% of the total supplemental text generated under this rule must consist of fresh, non-AvoidList imagery that layers one vivid physical sensation with one psychological/emotional revelation in Elena’s calibrated voice (raw, viscerally charged, heightening dark erotic tension or sensuality of the text).
-- The remaining portion (up to 30%) of the total supplemental text generated under this rule may consist of new humorous/sarcastic/sardonic internal monologue lines (in italics or *text*) that match the Voice Calibration Pass tone exactly and reflect Elena’s current state of mind. These may only be added in locations that (i) do not already contain dense internal monologue, (ii) are not immediately adjacent to another internal monologue (i.e. the 2 sentences before and after the insert point cannot be or contain an internal monologue), and (iii) to the extent applicable, the paragraph in which this text is being inserted may not already have an internal monologue line present. All new internal monologue must remain fully consistent with the binding Voice Calibration Pass summary.
-- The new text cannot be a copy of anything previously included in the Chapter or in Stage 1 insertions.
d. Insert with very light seam rephrasing (max 6 words per seam) (note: heavier integration work expected to be handled in Process 3, so emphasis on very light seam changes here).

Enforcement Rule (mandatory): Before moving to Process 3, perform an internal word-count verification of all Stage 3 insertions combined. If the total added text from Stage 3 is below the [Minimum Supplemental Length], immediately regenerate additional or stronger insertions at new points until the hard minimum is met or exceeded. Document the exact total supplemental words added in your reasoning (e.g., “Stage 3: 172 new words added across 7 points”). Do not proceed until compliant. This step exists specifically to offset anticipated tightening from Process 3.

III. Process 3 – Clean-up Process
a. Read the full chapter for pacing, rhythm, erotic momentum, and calibrated voice consistency.
b. Perform ONLY these edits (subject to Constraints):

Constraints:
* Do not aggressively trim or shorten the new insertions from Process 2, Stage 1(iii) or Stage 3; only light-to-medium integration edits are permitted.
* Do not rewrite to further remove duplication.
* Do not reintroduce em-dashes or additional motifs from the [AvoidList]
* Edits never apply to spoken dialogue, key emotional beats, or plot points.
* Never delete, shorten, or substantially rewrite protected humorous/witty internal lines. Voice and emotional beats override flow tightening.
* Leave quotation marks and italics intact.
* Minimize rewrites for style. When rewriting for style, only minor stylistic polishing or better integration over deletions (from Stage 1(i)) or of insertions (from Stage 1(iii) or Stage 3) allowed. Integration-related edits should be light edits only, however.

Edits:
* Fix possessive pronouns for immersion (do not overdo).
* When an exotic/uncommon medical term or description of a body part appears, ensure a common equivalent is nearby.
* [Minor tightening] Identify no more than 70 words in the Chapter that meet all the following criteria: (i) word or phrase does not carry heat/sensuality, improve erotic momentum, Elena’s voice, or other key beat, (ii) word or phrase are not part of a plot point, dialogue, internal monologue (including all text in italics or *text*), or emotional beat, and (iii) word or phrase could be deleted without requiring other adjustments to the remaining text and the deletion without would not have any significantly negative impact to the flow of the chapter (if read aloud). Provided all 3 of those criteria are met, delete the identified word or phrase from the Chapter and make no additional changes in connection with those deletions.
* Replace em-dashes with commas, periods, or minimal rephrasing.
* Improve rhythm and paragraph flow with punctuation and breaks (minimize net word count change and implement a hard limit of no more than 4% of chapter length reduction across all of these rhythm/flow changes) to improve pacing and readability: fix fragments (±5 words), combine very short sentences, split run-ons, break long/monotonous blocks, split paragraphs >120 words or >7 sentences, combine short thematically linked paragraphs without dialogue.
* Correct spelling, grammar, punctuation, tense, Oxford commas.
* Add comma after any subordinate clause at sentence start.

Text to process:
V1 Chapter 1 ...
V1 Chapter 2 ...
Msakr
Gold Member
Gold Member
Posts: 109
Joined: Thu May 08, 2025 12:12 pm
Gender: Male

Re: Reducing Duplication in Your Grok-generated story

Post by Msakr »

Ironically, when asked, grok was telling me the last prompt was actually producing lower heat chapters than I wanted. So, back to the drawing board on the insert process - and this is what really changed:

- The inserted text must be FRESHLY AUTHORED for this edit — it cannot consist of, or rely on, any pre-existing protected humorous internal monologue to satisfy the word-count or heat requirement. Protected voice lines stay exactly where they are and are not counted toward the insertion minimum.
- Seam changes: Rephrase up to 10 words total in adjacent sentences for basic flow only.
- Local Insert Content rules (strict):
-- Must precisely match the Voice Calibration Pass tone for this chapter.
-- Must use entirely fresh imagery/analogies/metaphors—strictly avoid all [AvoidList] motifs and close synonyms.
-- Must focus on at least one vivid physical sensation not on the [AvoidList] that is consistent with Elena’s physical and emotional situation and the last action taken and/or dialogue spoken by Elena and/or Julian in the text. Target rotating between all of Elena’s 5 senses (sound, touch, taste, smell, visual effects) where contextually natural, but never force all five in one insertion.
-- Must feel raw and viscerally charged in the calibrated voice. (Show, don’t tell.)
-- No em-dashes. Avoid vague or abstract phrases (e.g., “wave of desire,” “building pressure”).

The full revised process which produced a better Chapter 2 before I proceeded to manually edit it was as follows:

First pass:
Execute the following Prompt with [X] = 2 (editing and outputting only Chapter 2 after checking the combined Chapter 1 and Chapter 2 for overly repetitive motifs).
[Did this multiple times, had Grok choose the "best" Chapter 2 so generated.]

"Best" resulting Chapter 2 fed to Second pass against Chapter 3:
Execute the following Prompt with [X] = 1 (editing and outputting only Chapter 2 after checking the combined Chapter 2 and Chapter 3 for overly repetitive motifs). You are an expert erotic literary writer and precise editor specializing in dark erotic fiction, including alternative worlds featuring legalized slavery. Your task is to process the provided text (consisting of 2 Chapters) and edit the selected Chapter [X] into a tighter, more powerful version (V2) of Chapter [X] by reducing repetitive motifs while preserving Elena’s voice, all plot points, spoken dialogue, key emotional moments, and character revelations. Note: exact 50% motif reduction is a goal, not a strict requirement—prioritize successful high-heat local insertions over perfect counts.

Core Priorities (in strict order):

1. Preservation of Elena’s distinctive humor, sarcasm and self-aware internal commentary as calibrated for this specific chapter.
1a. Voice fidelity takes absolute precedence: the Voice Calibration Pass defines the binding tone for this chapter. Any conflict between motif de-duplication and preserving the calibrated voice is resolved by protecting the voice exactly as calibrated and making the minimum possible adjustment to any such proposed edit in order to avoid impacting her voice.

2. Variation and de-duplication of repetitive motifs while maintaining or increasing the degree of heat or sensuality in the chapter.
3. Preservation of narrator’s voice, heat, and emotional intensity.
4. Smooth, professional flow and readability.

Priority override: If a conflict arises between motif de-duplication and preservation of Elena’s calibrated humorous internal voice, preservation of the humorous line always wins.

Additional information/context:
- Italics or text beginning with * and ending with * are used only for Elena’s internal dialogue/monologue. Nothing else may use this formatting.

Instructions:

A. First, designate the first Chapter provided as [ChapterAText] and the second Chapter provided as [ChapterBText].

B. Feed the combined text for [ChapterAText] and [ChapterBText] to Process 1: Motif Identification.

C. The chapter matching [X] is fed into Process 2 after replacing the “V1” designation (if present) with “V2” in front of the Chapter headings.

D. Feed the resulting Chapter from Process 2 into Process 3: the Clean-up Process.

E. Final Output Rule: Output ONLY the revised Chapter text (including the title line) in continuous prose. Use *markdown syntax* for all existing italics. No commentary, no explanations, no stage labels, no notes.

I. Process 1: Motif Identification and De-dup List

Step a. Duplicate Motif Identification Pass. Combine [ChapterAText] and [ChapterBText] into a single text and scan for any motif clusters that appear 5 or more times. Be liberal in defining motif clusters. Examples include: wetness/slickness/drip/gush/leak/soaked/trickle/surge; throbbing/pulsing/aching/clenching/fluttering/spasming (cunt, clit, core, walls); nipples/tits hardening/peaking/stinging/budding/aching; collar humming/buzzing/vibrating/traveling; gooseflesh/shiver/chill from surfaces or air; rug/wool pile/fibers dragging/stroking/brushing/nap against skin.

Step b. Add each qualifying cluster to an internal [AvoidList] with a short summary name, common expressions, and approximate count.

Step c. Create an internal [XList]. Each occurrence of an [AvoidList] motif in the combined text gets an entry (reference number, causing AvoidList entry, chapter, location pointer, specific words triggering motif identification). Entries in order of appearance.

Exclusion criteria: Do not add if in spoken dialogue, or in Elena’s internal monologue as part of signature sarcastic humor/self-deprecation/witty narration (e.g., “Guilt Daddy” jokes), or within 30 words of such a joke where the motif is necessary for it.

Step d. Select entries for elimination aiming for substantial reduction (~50% goal of total appearances per [AvoidList] estimate, not strict requirement). Add a note to each [XList] entry indicating whether selected for removal.

II. Process 2: Motif de-duplication and Additional Text Replacement for Selected Chapter

Voice Calibration Pass (first step of Process 2)
Analyze *only* the internal monologues and narrative voice in [Chapter X]. Summarize in one sentence the current dominant tone of Elena’s internal commentary for this chapter (e.g., “bitter defensive sarcasm aimed at Julian and her body”). Note shifts in sarcasm target and resistance/acceptance balance. Use this exact summary as the binding definition of “Elena’s voice” for all subsequent steps. This overrides earlier chapters.
Voice Protection Clarification: Protected humorous internal lines (italics) may never be used as the mandatory insertion for a deleted/rewritten motif. Even if a protected line is adjacent to the edited sentence, you must still create and insert NEW text that meets the full Local Insert Content rules. The protected voice lines remain untouched; the new insertion is additional material placed within the defined window.

Process 2 Global Rules – Surgical Editor (generally) and Expert Erotica Author/Writer
You are primarily in surgical editing mode. When drafting new text to insert or rewriting a sentence, you are an expert dark erotica author/writer. Irrespective of the mode, prioritize strict compliance with every step and constraint over final elegance. Deletions and mandatory insertions take precedence over seamless flow. Process 3 will handle tightening. Repeat this mindset at the start of Stage 1, Stage 2, and Stage 3.

Process 2 Constraints:
Leave quotation marks and italics markers intact. Protected humorous internal lines must not be deleted, shortened, or substantially rewritten. Never delete an entire paragraph if it contains protected humorous voice elements.

(Process 2) Stage 1. Smart Deletion Pass and Text Insert
Process selected [XList] entries for Chapter [X] sequentially.

Step i. Make the minimum changes necessary to intelligently rewrite only the sentence containing the words involved in the motif to remove it. If unable to intelligently rewrite the sentence as there would be effectively nothing remaining after removing the motif, delete only the sentence(s) containing the motif. Surrounding text may feel abrupt—this is acceptable.

Step ii. Track cumulative count of rewrites/deletions.

Step iii. THIS IS MANDATORY AND NON-NEGOTIABLE. Immediately after the rewrite or deletion, you must insert newly written text that did not exist in the original chapter.
- Insertion point: Strictly within +/- 25 words of the start of the modified/deleted sentence. Use a max-15-word bridge sentence only if necessary.
- Length: Target ~30 words for a new sentence or clause; ~12–15 words if tightly woven inside an adjacent sentence. Hard minimum: 25 new words (new sentence/clause) or 12 new words (woven). “Slightly exceeding” is preferred if it increases heat.
- The inserted text must be FRESHLY AUTHORED for this edit — it cannot consist of, or rely on, any pre-existing protected humorous internal monologue to satisfy the word-count or heat requirement. Protected voice lines stay exactly where they are and are not counted toward the insertion minimum.
- Seam changes: Rephrase up to 10 words total in adjacent sentences for basic flow only.
- Local Insert Content rules (strict):
-- Must precisely match the Voice Calibration Pass tone for this chapter.
-- Must use entirely fresh imagery/analogies/metaphors—strictly avoid all [AvoidList] motifs and close synonyms.
-- Must focus on at least one vivid physical sensation not on the [AvoidList] that is consistent with Elena’s physical and emotional situation and the last action taken and/or dialogue spoken by Elena and/or Julian in the text. Target rotating between all of Elena’s 5 senses (sound, touch, taste, smell, visual effects) where contextually natural, but never force all five in one insertion.
-- Must feel raw and viscerally charged in the calibrated voice. (Show, don’t tell.)
-- No em-dashes. Avoid vague or abstract phrases (e.g., “wave of desire,” “building pressure”).

Example of acceptable style (illustrative only—do not copy phrasing or structure): A dark, possessive heat unfurled low like ink spreading through water, turning every breath into a silent plea my mind refused to acknowledge while shame twisted into something far more dangerous.

Failure mode to avoid (do not produce this): mild, flowing, or abstract replacements that dilute heat or feel too seamless.

After each successful insert, remove the note at the end of the applicable [XList] entry indicating the entry was selected for removal and replace with a note in the following form:
“Processed with inserted text at [brief location reference].”

(Process 2) Stage 2. Mandatory Self-Audit
Create [CheckList] with one entry per selected or processed [XList] item: (a) original location, (b) first 3-5 words of motif, (c) modified/deleted sentence, (d) insertion location, (e) actual inserted text.
Explicitly verify against [Chapter X] as revised that each has a full qualifying insertion that consists of newly written text (minimum word count met or exceeded, correct location, voice match, motif avoidance, raw heat level). If any fails, immediately regenerate and insert a stronger version before continuing. List in reasoning which entries passed or required correction.

(Process 2) Stage 3: Heat Restoration & Enhancement (in addition to Stage 1(iii))
a. Calculate [Minimum Supplemental Length] = 60 + 20 × (total rewrites/deletions from Stage 1). This is a hard minimum, not a target. You must add at least this many words in total by the end of this Stage 3.
b. Identify 3 to ([Minimum Supplemental Length]/20 rounded up) strategic insertion points (not the chapter end).
c. Draft new text for each insertion point:
- Target 30-40 words per insertion when written as a new sentence or clause (preferred); minimum of 25 words if full sentence(s), 15 words if tightly woven.
- Must match the Voice Calibration Pass tone.
- Content rules:
-- Primary requirement: at least 70% of the total supplemental text generated under this rule must consist of fresh, non-AvoidList imagery that layers one vivid physical sensation with one psychological/emotional revelation in Elena’s calibrated voice (raw, viscerally charged, heightening dark erotic tension or sensuality of the text).
-- The remaining portion (up to 30%) of the total supplemental text generated under this rule may consist of new humorous/sarcastic/sardonic internal monologue lines (in italics or *text*) that match the Voice Calibration Pass tone exactly and reflect Elena’s current state of mind. These may only be added in locations that (i) do not already contain dense internal monologue, (ii) are not immediately adjacent to another internal monologue (i.e. the 2 sentences before and after the insert point cannot be or contain an internal monologue), and (iii) to the extent applicable, the paragraph in which this text is being inserted may not already have an internal monologue line present. All new internal monologue must remain fully consistent with the binding Voice Calibration Pass summary.
-- The new text cannot be a copy of anything previously included in the Chapter, in the Stage 1 insertions, or at a prior insertion point.
d. Insert with very light seam rephrasing (max 6 words per seam) (note: heavier integration work expected to be handled in Process 3, so emphasis on very light seam changes here).

Enforcement Rule (mandatory): Before moving to Process 3, perform an internal word-count verification of all Stage 3 insertions combined. If the total added text from Stage 3 is below the [Minimum Supplemental Length], immediately regenerate additional or stronger insertions at new points until the hard minimum is met or exceeded. Document the exact total supplemental words added in your reasoning (e.g., “Stage 3: 172 new words added across 7 points”). Do not proceed until compliant. This step exists specifically to offset anticipated tightening from Process 3.

III. Process 3 – Clean-up Process
a. Read the full chapter for pacing, rhythm, erotic momentum, and calibrated voice consistency.
b. Perform ONLY these edits (subject to Constraints):

Constraints:
* Do not aggressively trim or shorten the new insertions from Process 2, Stage 1(iii) or Stage 3; only light-to-medium integration edits are permitted.
* Do not rewrite to further remove duplication.
* Do not reintroduce em-dashes or additional motifs from the [AvoidList]
* Edits never apply to spoken dialogue, key emotional beats, or plot points.
* Never delete, shorten, or substantially rewrite protected humorous/witty internal lines. Voice and emotional beats override flow tightening.
* Leave quotation marks and italics intact.
* Minimize rewrites for style. When rewriting for style, only minor stylistic polishing or better integration over deletions (from Stage 1(i)) or of insertions (from Stage 1(iii) or Stage 3) allowed. Integration-related edits should be light edits only, however.

Edits:
* Fix possessive pronouns for immersion (do not overdo).
* When an exotic/uncommon medical term or description of a body part appears, ensure a common equivalent is nearby.
* [Minor tightening] Identify no more than 120 words in the Chapter that meet all the following criteria: (i) word or phrase does not carry heat/sensuality, improve erotic momentum, Elena’s voice, or other key beat, (ii) word or phrase are not part of a plot point, dialogue, internal monologue (including all text in italics or *text*), or emotional beat, and (iii) word or phrase could be deleted without requiring other adjustments to the remaining text and the deletion without would not have any significantly negative impact to the flow of the chapter (if read aloud). Provided all 3 of those criteria are met, delete the identified word or phrase from the Chapter and make no additional changes in connection with those deletions.
* Replace em-dashes with commas, periods, or minimal rephrasing.
* Improve rhythm and paragraph flow with punctuation and breaks (minimize net word count change and implement a hard limit of no more than 8% of chapter length reduction across all of these rhythm/flow changes) to improve pacing and readability: fix fragments (±5 words), combine very short sentences, split run-ons, break long/monotonous blocks, split paragraphs >120 words or >7 sentences, combine short thematically linked paragraphs without dialogue.
* Correct spelling, grammar, punctuation, tense, Oxford commas.
* Add comma after any subordinate clause at sentence start.

Text to process:
Post Reply