opening = {
'detective': 'DETECTIVE_NAME',
'crime': 'CRIME_TYPE',
'setting': 'SETTING_NAME',
'atmosphere': 'ATMOSPHERE_DESCRIPTION',
'suspense_tension': 'SUSPENSE_TENSION_ELEMENTS',
'initial_clues': 'INITIAL_CLUES',
'character_reactions': 'CHARACTER_REACTIONS'
}

act_one = {
'supporting_characters': {
'suspects': ['SUSPECT_1', 'SUSPECT_2', 'SUSPECT_3', 'SUSPECT_4'],
'motives': ['MOTIVE_1', 'MOTIVE_2', 'MOTIVE_3', 'MOTIVE_4'],
'connections': ['CONNECTION_1', 'CONNECTION_2', 'CONNECTION_3', 'CONNECTION_4']
},
'setting_description': 'SETTING_DESCRIPTION',
'landmarks': 'LANDMARKS',
'atmosphere': 'ATMOSPHERE_DESCRIPTION',
'subplots': {
'subplot_1': 'SUBPLOT_1',
'subplot_2': 'SUBPLOT_2'
},
'relationships': 'RELATIONSHIPS_DESCRIPTION',
'investigate_crime': {
'clues': 'GATHERED_CLUES',
'witnesses': 'INTERVIEWED_WITNESSES',
'evidence': 'ANALYZED_EVIDENCE',
'narrow_suspects': 'NARROWED_SUSPECTS'
}
}

act_two = {
'clues_red_herrings': {
'new_clues': ['NEW_CLUE_1', 'NEW_CLUE_2', 'NEW_CLUE_3', 'NEW_CLUE_4'],
'contradictory_evidence': 'CONTRADICTORY_EVIDENCE',
'red_herrings': 'RED_HERRINGS',
'unexpected_evidence': 'UNEXPECTED_EVIDENCE'
},
'subplots_advance': {
'subplot_1_advance': 'SUBPLOT_1_ADVANCE',
'subplot_2_advance': 'SUBPLOT_2_ADVANCE'
},
'investigate_suspects': {
'suspect_interrogations': {
'suspect_1': 'INTERROGATION_1',
'suspect_2': 'INTERROGATION_2',
'suspect_3': 'INTERROGATION_3',
'suspect_4': 'INTERROGATION_4'
}
},
'plot_twist': 'PLOT_TWIST_DESCRIPTION',
'deepen_investigation': 'DEEPEN_INVESTIGATION_DETAILS'
}

act_three = {
'climax': {
'confront_culprit': 'CONFRONT_CULPRIT_SCENE',
'reveal_truth': 'REVEAL_TRUTH_DETAILS',
'aftermath': 'AFTERMATH_DESCRIPTION'
},
'subplot_resolution': {
'subplot_1_resolution': 'SUBPLOT_1_RESOLUTION',
'subplot_2_resolution': 'SUBPLOT_2_RESOLUTION'
},
'investigation_wrap_up': 'INVESTIGATION_WRAP_UP_DETAILS',
'closing_scene': 'CLOSING_SCENE_DESCRIPTION'
}

Opening (400 words): "Introduce detective, crime, setting, and atmosphere. Build suspense and tension, and introduce initial clues and character reactions."

Act One (2,400 words):
2a. Supporting characters (400 words): "Introduce suspects, their motives, and connections to the crime."
2b. Setting (400 words): "Describe the main location, landmarks, and atmosphere."
2c. Subplots and relationships (400 words): "Introduce subplots, conflicts, and connections between characters."
2d. Investigate crime (1,200 words): "Gather clues, interview witnesses, analyze evidence, and narrow down suspects."

Act Two (3,200 words):
3a. Clues and red herrings (800 words): "Introduce new clues, contradictory evidence, red herrings, and unexpected evidence."
3b. Subplots (800 words): "Advance subplots and their impact on the main plot."
3c. Investigate suspects (800 words): "Interrogate suspects, uncover secrets, motives, and alibis."
3d. Plot twist (400 words): "Introduce a major twist, forcing the detective to reconsider their approach."
3e. Deepen investigation (400 words): "Follow new leads and make connections between clues."

Act Three (2,000 words):
4a. Climax (800 words): "Confront culprit, reveal truth, and detail the aftermath."
4b. Subplot resolution (600 words): "Resolve subplots and their impact on the main plot."
4c. Investigation wrap-up (400 words): "Tie up loose ends and explain remaining questions."
4d. Closing scene (200 words): "Conclude the story and hint at the future for the characters."

opening = {
'detective': 'DETECTIVE_NAME',
'crime': 'CRIME_TYPE',
'setting': 'SETTING_NAME',
'atmosphere': 'ATMOSPHERE_DESCRIPTION',
'suspense_tension': 'SUSPENSE_TENSION_ELEMENTS',
'initial_clues': 'INITIAL_CLUES',
'character_reactions': 'CHARACTER_REACTIONS'
}

act_one = {
'supporting_characters': {
'suspects': ['SUSPECT_1', 'SUSPECT_2', 'SUSPECT_3', 'SUSPECT_4'],
'motives': ['MOTIVE_1', 'MOTIVE_2', 'MOTIVE_3', 'MOTIVE_4'],
'connections': ['CONNECTION_1', 'CONNECTION_2', 'CONNECTION_3', 'CONNECTION_4']
},
'setting_description': 'SETTING_DESCRIPTION',
'landmarks': 'LANDMARKS',
'atmosphere': 'ATMOSPHERE_DESCRIPTION',
'subplots': {
'subplot_1': 'SUBPLOT_1',
'subplot_2': 'SUBPLOT_2'
},
'relationships': 'RELATIONSHIPS_DESCRIPTION',
'investigate_crime': {
'clues': 'GATHERED_CLUES',
'witnesses': 'INTERVIEWED_WITNESSES',
'evidence': 'ANALYZED_EVIDENCE',
'narrow_suspects': 'NARROWED_SUSPECTS'
}
}

act_two = {
'clues_red_herrings': {
'new_clues': ['NEW_CLUE_1', 'NEW_CLUE_2', 'NEW_CLUE_3', 'NEW_CLUE_4'],
'contradictory_evidence': 'CONTRADICTORY_EVIDENCE',
'red_herrings': 'RED_HERRINGS',
'unexpected_evidence': 'UNEXPECTED_EVIDENCE'
},
'subplots_advance': {
'subplot_1_advance': 'SUBPLOT_1_ADVANCE',
'subplot_2_advance': 'SUBPLOT_2_ADVANCE'
},
'investigate_suspects': {
'suspect_interrogations': {
'suspect_1': 'INTERROGATION_1',
'suspect_2': 'INTERROGATION_2',
'suspect_3': 'INTERROGATION_3',
'suspect_4': 'INTERROGATION_4'
}
},
'plot_twist': 'PLOT_TWIST_DESCRIPTION',
'deepen_investigation': 'DEEPEN_INVESTIGATION_DETAILS'
}

act_three = {
'climax': {
'confront_culprit': 'CONFRONT_CULPRIT_SCENE',
'reveal_truth': 'REVEAL_TRUTH_DETAILS',
'aftermath': 'AFTERMATH_DESCRIPTION'
},
'subplot_resolution': {
'subplot_1_resolution': 'SUBPLOT_1_RESOLUTION',
'subplot_2_resolution': 'SUBPLOT_2_RESOLUTION'
},
'investigation_wrap_up': 'INVESTIGATION_WRAP_UP_DETAILS',
'closing_scene': 'CLOSING_SCENE_DESCRIPTION'
}

Opening (400 words):
"Introduce {opening['detective']}, {opening['crime']}, {opening['setting']}, and {opening['atmosphere']}. Build {opening['suspense_tension']}, and introduce {opening['initial_clues']} and {opening['character_reactions']}."

Act One (2,400 words):
2a. Supporting characters (400 words): "Introduce {', '.join(act_one['supporting_characters']['suspects'])}, their {'; '.join(act_one['supporting_characters']['motives'])}, and {'; '.join(act_one['supporting_characters']['connections'])} to the crime."
2b. Setting (400 words): "Describe {act_one['setting_description']}, {act_one['landmarks']}, and {act_one['atmosphere']}."
2c. Subplots and relationships (400 words): "Introduce {act_one['subplots']['subplot_1']}, {act_one['subplots']['subplot_2']}, and {act_one['relationships']}."
2d. Investigate crime (1,200 words): "Gather {act_one['investigate_crime']['clues']}, interview {act_one['investigate_crime']['witnesses']}, analyze {act_one['investigate_crime']['evidence']}, and narrow down {act_one['investigate_crime']['narrow_suspects']}."

Act Two (3,200 words):
3a. Clues and red herrings (800 words): "Introduce {', '.join(act_two['clues_red_herrings']['new_clues'])}, {act_two['clues_red_herrings']['contradictory_evidence']}, {act_two['clues_red_herrings']['red_herrings']}, and {act_two['clues_red_herrings']['unexpected_evidence']}."
3b. Subplots (800 words): "Advance {act_two['subplots_advance']['subplot_1_advance']} and {act_two['subplots_advance']['subplot_2_advance']}."
3c. Investigate suspects (800 words): "Interrogate {act_two['investigate_suspects']['suspect_interrogations']['suspect_1']}, {act_two['investigate_suspects']['suspect_interrogations']['suspect_2']}, {act_two['investigate_suspects']['suspect_interrogations']['suspect_3']}, and {act_two['investigate_suspects']['suspect_interrogations']['suspect_4']}."
3d. Plot twist (400 words): "Introduce {act_two['plot_twist']}."
3e. Deepen investigation (400 words): "Follow {act_two['deepen_investigation']}."

Act Three (2,000 words):
4a. Climax (800 words): "Confront {act_three['climax']['confront_culprit']}, reveal {act_three['climax']['reveal_truth']}, and detail {act_three['climax']['aftermath']}."
4b. Subplot resolution (600 words): "Resolve {act_three['subplot_resolution']['subplot_1_resolution']} and {act_three['subplot_resolution']['subplot_2_resolution']}."
4c. Investigation wrap-up (400 words): "Tie up {act_three['investigation_wrap_up']}."
4d. Closing scene (200 words): "Conclude {act_three['closing_scene']}."
