diff --git a/Docs/WritingSolver/CuratedV2/PermanentEditorial/Audit.md b/Docs/WritingSolver/CuratedV2/PermanentEditorial/Audit.md new file mode 100644 index 00000000..81c2b8ac --- /dev/null +++ b/Docs/WritingSolver/CuratedV2/PermanentEditorial/Audit.md @@ -0,0 +1,583 @@ +# Permanent Writing Problem editorial audit + +All 52 authoritative diagnoses reviewed and substantially rewritten in a separate authored editorial catalogue. Solver graph, identifiers, slugs, H1s, evidence/scoring and capability choices are unchanged. Each resource now provides recognition, common causes with a concrete example, three manuscript checks, a mental model and two neighbouring problems. + +Search intents are editorial hypotheses, not measured search-volume research. Six per diagnosis (312 total), stored with the content in `PlotLine/Content/WritingSolver/Editorial/pages-v1.json`; never rendered as keyword lists. + +Nine grouped discovery pages provide ordinary HTML links to all 52 resources. The solver entry links quietly to `/writing-problems/browse`; results link to their group and two relevant neighbours. Existing feature routes remain linked. No site-wide catalogue or hidden links. + +HTML title and description are individually authored, unique and used consistently in Open Graph and existing WebPage structured data. Original H1s and clean self canonical/OG URLs are retained. No FAQ schema added; old unhelpful question lists are omitted on the new resources. Development remains noindex; index-enabled fixture validation covers eventual production behaviour. + +## Individual review and intent mapping + +### D01 — There are too many storylines to keep in your head + +- URL: `/writing-problems/too-many-storylines-to-manage` +- HTML/OG title: Too many storylines in a novel: finding an overview +- Description: Find a workable overview of multiple storylines, their open questions and shared consequences without assuming a complex novel needs fewer plots. +- Area: plots +- Distinction: Managing the number and connections of open threads, rather than the length of one thread's absence. +- Related: D02, D04 +- Editorial search intents: too many storylines in my novel; how many subplots is too many; keeping track of multiple plots; organising intertwined storylines; my novel has too many threads; how to manage a complicated plot +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D02 — A storyline disappears for too long + +- URL: `/writing-problems/storyline-disappears-for-too-long` +- HTML/OG title: When a subplot disappears for too long +- Description: Inspect long subplot gaps, what keeps a question alive during an absence, and what a returning thread expects readers to remember. +- Area: plots +- Distinction: The interval between one thread's contributions is the issue, even if the rest of the novel is well balanced. +- Related: D04, D51 +- Editorial search intents: subplot disappears halfway through novel; how often should a subplot appear; forgotten subplot in my story; story thread goes missing; bringing back a subplot after a long gap; keeping a subplot alive +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D03 — Your storylines don't feel connected + +- URL: `/writing-problems/storylines-dont-connect` +- HTML/OG title: Connecting separate storylines without forcing them together +- Description: Explore why separate storylines feel disconnected and inspect the information, decisions and consequences that could connect them. +- Area: plots +- Distinction: Connections between lines are missing, rather than events within one line failing to cause each other. +- Related: D01, D07 +- Editorial search intents: my subplots do not connect; how to weave storylines together; connecting multiple plots in a novel; separate story threads feel unrelated; making subplots affect the main plot; bringing storylines together at the end +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D04 — One storyline is taking over the book + +- URL: `/writing-problems/one-storyline-is-taking-over` +- HTML/OG title: When one storyline takes over the novel +- Description: Compare the space given to a dominant storyline with your intended balance, including supporting threads that still need room to develop. +- Area: plots +- Distinction: The allocation of attention across storylines differs from your intention, rather than one isolated gap being the whole problem. +- Related: D02, D11 +- Editorial search intents: one subplot takes over my novel; main plot crowds out subplots; balancing storylines in a book; too much space given to one storyline; my novel changed focus while drafting; how much space should subplots get +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D05 — You're not sure what some scenes are contributing + +- URL: `/writing-problems/scenes-with-no-clear-purpose` +- HTML/OG title: Working out what a scene contributes +- Description: Work out what a scene contributes by tracing change, later dependencies and what readers would lose if the scene disappeared. +- Area: structure +- Distinction: The contribution of an individual scene is unclear; repeated contributions across several scenes are a different question. +- Related: D36, D34 +- Editorial search intents: what is the purpose of a scene; scene does not advance the plot; how to tell if a scene is needed; quiet scenes in a novel; what should each scene contribute; my scene feels pointless +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D06 — Your setups and payoffs have become disconnected + +- URL: `/writing-problems/setups-without-payoffs` +- HTML/OG title: Keeping track of setups and payoffs +- Description: Trace setups to their payoffs and check what remains of a promise after scenes, clues or endings change during revision. +- Area: plots +- Distinction: Preparation and response have lost their connection; the timing of an otherwise prepared reveal may need a different review. +- Related: D25, D26 +- Editorial search intents: tracking setups and payoffs in a novel; forgotten foreshadowing in my book; payoff feels unearned; plot promises without resolution; how to track Chekhov's gun; setups removed during revision +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D07 — Things happen, but the story doesn't seem to build + +- URL: `/writing-problems/story-feels-like-unconnected-events` +- HTML/OG title: When a story feels like a sequence of unrelated events +- Description: Inspect cause and effect when a novel feels like unrelated events, distinguishing purposeful episodic structure from missing consequences. +- Area: plots +- Distinction: The causal links between events are weak, rather than a connected sequence simply changing too little. +- Related: D03, D43 +- Editorial search intents: my story is just a series of events; plot lacks cause and effect; things happen but story goes nowhere; how to connect scenes causally; episodic novel feels disconnected; making events build into a plot +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D08 — There are too many characters to keep straight + +- URL: `/writing-problems/too-many-characters-to-manage` +- HTML/OG title: Keeping track of a large cast of characters +- Description: Manage a large fictional cast by making roles, introductions and later appearances easier to retrieve and distinguish. +- Area: people +- Distinction: The cast as a whole is difficult to retrieve and distinguish; overlap between two specific roles is more focused. +- Related: D09, D15 +- Editorial search intents: too many characters in my novel; how to keep track of characters while writing; organising a large cast; remembering minor characters in a book; introducing too many names; managing an ensemble novel +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D09 — Some characters may be doing the same job in the story + +- URL: `/writing-problems/characters-doing-the-same-job` +- HTML/OG title: When two characters seem to do the same job +- Description: Compare characters whose narrative functions overlap before deciding whether to distinguish, develop or combine their roles. +- Area: people +- Distinction: Two characters have overlapping narrative functions, rather than the cast simply being large. +- Related: D08, D36 +- Editorial search intents: two characters do the same job; should I combine characters in my novel; redundant characters in a story; characters feel interchangeable; distinguishing character roles; how to tell if a character is necessary +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D10 — An important character disappears for a long stretch + +- URL: `/writing-problems/character-disappears-for-too-long` +- HTML/OG title: When an important character disappears from the story +- Description: Review an important character's long absence, the effects that remain active, and the demands their return places on the reader. +- Area: people +- Distinction: One character's stretch of absence needs attention, rather than the overall proportions of the cast. +- Related: D11, D02 +- Editorial search intents: character disappears halfway through book; important character missing for chapters; how long can a character be absent; bringing back a forgotten character; tracking character appearances; reader forgets a supporting character +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D11 — Your characters aren't appearing in the proportions you expected + +- URL: `/writing-problems/character-presence-is-unbalanced` +- HTML/OG title: Balancing character presence across a novel +- Description: Inspect how character presence is distributed across a novel without assuming an ensemble needs equal space for every person. +- Area: people +- Distinction: The distribution of attention across characters is the concern, rather than one person's isolated absence. +- Related: D10, D12 +- Editorial search intents: balancing character screen time in a novel; character presence is unbalanced; supporting characters get too little space; ensemble cast balance; one character dominates my book; tracking how often characters appear +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D12 — Your points of view are becoming difficult to balance + +- URL: `/writing-problems/pov-characters-are-unbalanced` +- HTML/OG title: Making sense of viewpoint balance +- Description: Review viewpoint patterns, long switches and each narrator's unique access without imposing equal chapter counts. +- Area: people +- Distinction: The pattern of narrative perspectives is at issue; different information held by those perspectives is a separate layer. +- Related: D11, D23 +- Editorial search intents: balancing multiple POV characters; uneven viewpoint chapters; one narrator has too many chapters; how often to switch POV; tracking point of view in a novel; do POV characters need equal space +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D13 — A character's details don't stay consistent + +- URL: `/writing-problems/character-details-dont-match` +- HTML/OG title: Keeping established character details consistent +- Description: Reconcile character descriptions and established facts while allowing intentional change, unreliable accounts and differences of perspective. +- Area: people +- Distinction: Established non-temporal facts need reconciliation; age arithmetic and conflicting interpretations require different checks. +- Related: D29, D19 +- Editorial search intents: character details inconsistent in my novel; keeping character facts straight; character description changes between chapters; tracking character backstory; continuity errors in character profiles; how to maintain a character reference +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D14 — You're losing track of where your characters are + +- URL: `/writing-problems/losing-track-of-character-whereabouts` +- HTML/OG title: Knowing where characters are between scenes +- Description: Track last confirmed character locations and distinguish uncertain whereabouts from a journey that is demonstrably impossible. +- Area: world +- Distinction: The last reliable position is uncertain; a known journey that cannot fit is a different problem. +- Related: D38, D31 +- Editorial search intents: how to track character locations; losing track of where characters are; character whereabouts between scenes; tracking off page movement; where was this character last seen; organising character movement in a novel +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D15 — There are too many character relationships to hold in your head + +- URL: `/writing-problems/too-many-character-relationships` +- HTML/OG title: Managing a complicated web of relationships +- Description: Make a complex fictional relationship network easier to inspect by separating connection types, story positions and changes. +- Area: relationships +- Distinction: The network is hard to hold in memory, rather than one pair's current state being unclear. +- Related: D16, D20 +- Editorial search intents: tracking character relationships in a novel; complicated relationship map; organising family ties in fiction; keeping track of alliances; large cast relationship web; how to plan relationships between characters +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D16 — You're not sure where a relationship has reached + +- URL: `/writing-problems/relationship-stage-is-unclear` +- HTML/OG title: Working out where a relationship has reached +- Description: Establish a relationship's current state from its turning points and each participant's understanding at a particular story position. +- Area: relationships +- Distinction: The relationship's present state is uncertain; lack of development over an interval is a different concern. +- Related: D18, D19 +- Editorial search intents: tracking relationship stages in fiction; where has a character relationship reached; relationship continuity between scenes; characters act closer than they should; tracking trust changes; relationship status unclear in my novel +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D17 — A relationship changes before it feels earned + +- URL: `/writing-problems/relationship-changes-too-quickly` +- HTML/OG title: When a relationship changes faster than expected +- Description: Inspect the experiences supporting a fast relationship transition without imposing a universal pace on trust, intimacy or alliance. +- Area: relationships +- Distinction: A particular transition lacks visible support, rather than a relationship staying unchanged for too long. +- Related: D18, D16 +- Editorial search intents: relationship develops too fast in my novel; romance feels rushed; friendship change feels unearned; characters trust each other too quickly; pacing an alliance in fiction; missing relationship development scenes +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D18 — A relationship stops moving for too long + +- URL: `/writing-problems/relationship-stops-developing` +- HTML/OG title: When a relationship seems to stop developing +- Description: Examine repeated relationship encounters for intended development, while distinguishing stagnation from deliberate slowness or stability. +- Area: relationships +- Distinction: The development across several encounters is flat relative to intention; a slow relationship is not automatically a fault. +- Related: D17, D16 +- Editorial search intents: relationship subplot goes nowhere; romance stops developing; characters repeat the same argument; slow relationship or stalled relationship; how to track relationship progression; friendship arc feels static +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D19 — Your characters see the same relationship differently + +- URL: `/writing-problems/characters-see-relationship-differently` +- HTML/OG title: When characters understand the same relationship differently +- Description: Track different interpretations of the same relationship without mistaking intentional asymmetry for an accidental inconsistency. +- Area: relationships +- Distinction: The two sides hold different interpretations; do not flatten that into one supposedly correct state. +- Related: D16, D23 +- Editorial search intents: characters see relationship differently; one sided relationship in fiction; tracking asymmetric character relationships; unreliable relationship perspectives; characters misunderstand each other; different expectations in a romance subplot +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D20 — One event has changed too many relationships to track easily + +- URL: `/writing-problems/relationship-changes-have-too-many-consequences` +- HTML/OG title: Following the consequences of a relationship turning point +- Description: Follow a betrayal, confession or alliance through a wider relationship network, including delayed and private consequences. +- Area: relationships +- Distinction: A specific social turning point has network effects, rather than every kind of revision dependency being the issue. +- Related: D15, D48 +- Editorial search intents: betrayal affects too many relationships; tracking consequences of an alliance; character relationships after a major event; social fallout in a novel; keeping relationship changes consistent; one event changes the whole cast +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D21 — A character knows something they haven't learned yet + +- URL: `/writing-problems/character-knows-something-too-early` +- HTML/OG title: When a character knows something too early +- Description: Check whether a character has access to information before using it, separating knowledge from suspicion, inference and bluff. +- Area: knowledge +- Distinction: There is a possible timing contradiction between acquiring information and using it, rather than an unlocated source alone. +- Related: D22, D24 +- Editorial search intents: character knows something they have not learned; character knowledge continuity error; information revealed to character too early; tracking who knows what; author knowledge leaks into dialogue; character acts on future information +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D22 — You can't remember how a character learned something + +- URL: `/writing-problems/cant-remember-how-character-learned-something` +- HTML/OG title: Remembering how a character learned something +- Description: Locate the source of a character's knowledge before deciding whether an apparent gap is a genuine continuity error. +- Area: knowledge +- Distinction: The source of a knowledge claim is missing from your working record; its timing may still be entirely plausible. +- Related: D21, D25 +- Editorial search intents: how did my character learn this; tracking sources of character knowledge; cannot remember when character found out; who told this character; recording discoveries in a novel; lost explanation for character knowledge +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D23 — Different POV characters know different pieces of the story + +- URL: `/writing-problems/different-povs-know-different-things` +- HTML/OG title: Keeping different viewpoints' knowledge separate +- Description: Keep viewpoint, character and reader knowledge separate when different people hold different parts of a story. +- Area: knowledge +- Distinction: Information differs between perspectives, rather than the distribution of viewpoint chapters being the concern. +- Related: D12, D21 +- Editorial search intents: tracking knowledge across multiple POVs; different characters know different things; multi POV information management; reader knows more than character; dramatic irony continuity; keeping narrator knowledge separate +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D24 — Your revelations have ended up in the wrong order + +- URL: `/writing-problems/revelations-are-in-the-wrong-order` +- HTML/OG title: Putting discoveries and revelations in a workable order +- Description: Trace the prerequisites and consequences of discoveries when clues and revelations arrive in an unworkable sequence. +- Area: knowledge +- Distinction: Dependencies between pieces of information are out of sequence; early versus late dramatic effect is a different judgement. +- Related: D26, D30 +- Editorial search intents: revelations in the wrong order; clues revealed out of sequence; organising discoveries in a mystery; reordering information in a novel; reveal depends on a later clue; plot information sequence does not work +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D25 — There are too many clues and discoveries to keep straight + +- URL: `/writing-problems/too-many-clues-to-keep-track-of` +- HTML/OG title: Keeping track of clues and discoveries +- Description: Organise clues, observers, interpretations and unresolved leads so a mystery's evidence remains traceable through revision. +- Area: knowledge +- Distinction: The body of evidence and its changing interpretations are hard to manage, rather than one fact's source being the only uncertainty. +- Related: D06, D22 +- Editorial search intents: how to track clues in a mystery; organising discoveries in a novel; keeping track of red herrings; clue tracking for writers; forgotten evidence in a plot; who has found which clues +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D26 — You're not sure whether a reveal comes too early or too late + +- URL: `/writing-problems/reveal-timing-doesnt-feel-right` +- HTML/OG title: Deciding whether a reveal comes too early or too late +- Description: Consider reveal timing through the questions and consequences it creates, rather than a fixed point in the manuscript. +- Area: knowledge +- Distinction: The dramatic timing of a supported reveal is uncertain; missing preparation or broken information dependencies need other checks. +- Related: D24, D06 +- Editorial search intents: when should I reveal the secret; plot twist comes too early; reveal comes too late in novel; pacing a mystery revelation; how long to withhold information; reader gets answer before the climax +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D27 — Your timeline doesn't add up + +- URL: `/writing-problems/timeline-doesnt-add-up` +- HTML/OG title: When the dates in a fictional timeline contradict each other +- Description: Compare dates and relative time references in story-world chronology, keeping nonlinear reading order separate from contradiction. +- Area: time +- Distinction: The time claims conflict with one another; a consistent schedule can still allow too little time for an activity. +- Related: D28, D30 +- Editorial search intents: timeline in my novel does not make sense; dates contradict in my story; fictional chronology errors; checking a novel timeline; events happen before their cause; inconsistent dates between chapters +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D28 — The amount of time between events doesn't work + +- URL: `/writing-problems/elapsed-time-doesnt-work` +- HTML/OG title: Checking whether enough time passes between events +- Description: Check whether travel, recovery and other activities fit the elapsed interval between scenes, even when the stated dates agree. +- Area: time +- Distinction: An activity does not fit its allotted interval, even if all stated dates are mutually consistent. +- Related: D27, D38 +- Editorial search intents: not enough time between scenes; elapsed time in my novel does not work; journey takes too little time; tracking duration in fiction; too much happens in one day; checking travel and recovery time +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D29 — A character's age doesn't match the dates + +- URL: `/writing-problems/character-age-doesnt-match-dates` +- HTML/OG title: When a character's age disagrees with the dates +- Description: Check fictional ages against birth dates, story dates and reference scenes, especially when characters continue across books. +- Area: time +- Distinction: A time-dependent character fact needs arithmetic against a reference date, rather than a general profile discrepancy. +- Related: D13, D27 +- Editorial search intents: character age does not match timeline; calculating ages in a novel; inconsistent birthdays in fiction; character too young for backstory; tracking ages across a series; birth dates and story dates conflict +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D30 — Your reading order and chronological order are different + +- URL: `/writing-problems/story-order-differs-from-chronology` +- HTML/OG title: Managing reading order and chronological order +- Description: Maintain both manuscript order and event chronology when planning flashbacks, parallel timelines or other nonlinear structures. +- Area: time +- Distinction: The two orders differ intentionally or structurally; difference alone is not a contradictory timeline. +- Related: D27, D24 +- Editorial search intents: writing a nonlinear timeline; story order versus chronological order; organising flashbacks in a novel; tracking narrative order; parallel timelines in fiction; how to outline a non chronological book +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D31 — Too many things are happening at the same time + +- URL: `/writing-problems/too-many-events-happening-at-once` +- HTML/OG title: Keeping simultaneous events straight +- Description: Align simultaneous fictional events and inspect their implications for shared people, places, resources and communication. +- Area: time +- Distinction: Overlapping activities need coordination across people and places, rather than a single interval being too short. +- Related: D14, D28 +- Editorial search intents: tracking simultaneous events in a novel; parallel action timeline; characters in two places at once; coordinating events across viewpoints; overlapping scenes in fiction; what happens at the same time in my plot +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D32 — Your fictional timeline has to fit around real dates + +- URL: `/writing-problems/fiction-must-fit-real-dates` +- HTML/OG title: Fitting fictional events around fixed real dates +- Description: Plan fictional intervals around reliable real-world date anchors while keeping uncertainty in research visible. +- Area: time +- Distinction: External date anchors constrain the invented sequence; distinguish researched certainty from your own movable choices. +- Related: D27, D28 +- Editorial search intents: historical novel timeline planning; fiction around real historical dates; matching a story to a calendar; fixed dates in a fictional timeline; research dates conflict with plot; planning events around a real deadline +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D33 — There are too many scenes to see the structure clearly + +- URL: `/writing-problems/too-many-scenes-to-organise` +- HTML/OG title: Seeing the structure when there are too many scenes +- Description: Build a usable chapter-and-scene overview before deciding that a large manuscript needs cuts or a new order. +- Area: structure +- Distinction: The arrangement is hard to see at all; uncertainty about one scene's position is a more local problem. +- Related: D34, D36 +- Editorial search intents: too many scenes to organise; how to see novel structure; organising a long manuscript; scene overview for a novel; lost in my own draft; mapping chapters and scenes +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D34 — You don't know where a scene belongs + +- URL: `/writing-problems/dont-know-where-scene-belongs` +- HTML/OG title: Deciding where a scene belongs +- Description: Find a workable position for a scene by comparing its prerequisites, consequences and transitions into neighbouring material. +- Area: structure +- Distinction: A scene's position is uncertain even though its contribution may be clear. +- Related: D33, D05 +- Editorial search intents: where should this scene go; moving a scene in a novel; finding the right scene order; scene placement in a manuscript; reordering chapters without breaking plot; how to position a flashback scene +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D35 — Your chapter structure feels uneven + +- URL: `/writing-problems/chapter-structure-feels-unbalanced` +- HTML/OG title: When chapter structure feels uneven +- Description: Inspect chapter boundaries and the work inside each chapter, allowing intentional variation in length and rhythm. +- Area: structure +- Distinction: The grouping and boundaries of chapters need inspection; overall reading speed can vary for other reasons. +- Related: D34, D44 +- Editorial search intents: chapters feel unbalanced; some chapters too long others short; where to end a chapter; uneven chapter structure; chapter lengths in a novel; organising scenes into chapters +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D36 — Several scenes may be doing the same job + +- URL: `/writing-problems/scenes-repeat-the-same-job` +- HTML/OG title: When several scenes repeat the same work +- Description: Compare similar scenes for new consequences, changed stakes and purposeful variation before deciding whether repetition is redundant. +- Area: structure +- Distinction: Several scenes make overlapping contributions; the purpose of each may be clear while their combined effect is repetitive. +- Related: D05, D43 +- Editorial search intents: repetitive scenes in my novel; scenes doing the same job; how to find redundant scenes; repeating information in fiction; should I cut a similar scene; novel scenes feel repetitive +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D37 — You want to rearrange the story without wrecking it + +- URL: `/writing-problems/afraid-to-rearrange-the-story` +- HTML/OG title: Trying structural changes without losing the current version +- Description: Test a proposed structural change against a preserved baseline so uncertainty about the idea does not become fear of losing the draft. +- Area: revision +- Distinction: The barrier is safely trying a proposed change, rather than deciding between several already-developed alternatives. +- Related: D49, D34 +- Editorial search intents: afraid to rearrange my novel; trying a new scene order safely; experimenting with novel structure; keeping original draft while reordering; testing chapter changes; how to restructure without losing my place +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D38 — A character's movement between places doesn't make sense + +- URL: `/writing-problems/character-movement-doesnt-make-sense` +- HTML/OG title: Checking whether character movement is possible +- Description: Check character travel against established positions, available routes and elapsed time, distinguishing missing transitions from impossibility. +- Area: world +- Distinction: A known movement must be possible given its route and interval; uncertain whereabouts should be resolved first. +- Related: D14, D28 +- Editorial search intents: character travel does not make sense; impossible movement in a novel; tracking journeys between scenes; character appears somewhere too quickly; travel continuity in fiction; checking routes and elapsed time +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D39 — A location has changed without you meaning it to + +- URL: `/writing-problems/location-details-have-changed` +- HTML/OG title: When a fictional place changes unintentionally +- Description: Reconcile setting descriptions and stable physical features while allowing differences of viewpoint, weather and change over time. +- Area: world +- Distinction: The established place itself appears inconsistent, rather than a journey through it being implausible. +- Related: D38, D42 +- Editorial search intents: location details change in my novel; inconsistent setting descriptions; tracking fictional places; room layout continuity in fiction; keeping a story location consistent; setting changes between chapters +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D40 — You've lost track of an important object + +- URL: `/writing-problems/dont-know-where-important-object-is` +- HTML/OG title: Losing track of an important object +- Description: Trace an important object's last reliable location or holder and mark the gaps between its recorded appearances. +- Area: world +- Distinction: The object's last reliable position or holder is uncertain, rather than a known history contradicting itself. +- Related: D41, D42 +- Editorial search intents: where is an object in my story; tracking important objects in a novel; lost track of a clue; object location continuity; following an item between scenes; who last had this object +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D41 — A character has an object they shouldn't have + +- URL: `/writing-problems/wrong-character-has-an-object` +- HTML/OG title: When the wrong character has an object +- Description: Check possession and handovers when a character produces an item they have not been shown acquiring. +- Area: world +- Distinction: A particular person's access to an object is unsupported, rather than its general whereabouts being unknown. +- Related: D40, D21 +- Editorial search intents: wrong character has an object; missing handover in a novel; object possession continuity; character uses a weapon they do not have; tracking who holds a clue; how did character get this item +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D42 — An object's history contradicts itself + +- URL: `/writing-problems/object-history-contradicts-itself` +- HTML/OG title: When an object's recorded history contradicts itself +- Description: Follow recorded object states through story time and check later uses against changes such as loss, opening or destruction. +- Area: world +- Distinction: The recorded sequence of object states conflicts; a missing location alone is not the same problem. +- Related: D40, D39 +- Editorial search intents: object continuity errors in a novel; destroyed object reappears; tracking the state of story objects; clue history contradicts itself; item changes between scenes; keeping an object timeline consistent +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D43 — The story seems to stop moving + +- URL: `/writing-problems/story-stops-moving` +- HTML/OG title: When a story feels busy but stops progressing +- Description: Inspect lasting changes in situation, knowledge and choices when a story contains activity but little intended progression. +- Area: revision +- Distinction: The amount of lasting change is too small for your intention; speed and pressure are separate dimensions. +- Related: D44, D45 +- Editorial search intents: my story stops moving; novel has no progression; busy plot but nothing changes; story feels static in the middle; how to tell if a story is developing; scenes happen without progress +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D44 — Some parts of the story rush while others drag + +- URL: `/writing-problems/pacing-is-uneven` +- HTML/OG title: When parts of a novel rush and others drag +- Description: Compare rushing and dragging passages through reading rhythm, scene density and the amount of development being processed. +- Area: revision +- Distinction: The experience of speed varies awkwardly; that can happen even when progression and tension are working. +- Related: D43, D45 +- Editorial search intents: pacing is uneven in my novel; story rushes then drags; middle of novel feels slow; how to check novel pacing; scenes move too quickly; balancing action and quieter passages +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D45 — The tension rises and falls in the wrong places + +- URL: `/writing-problems/tension-is-uneven` +- HTML/OG title: When tension rises and falls in the wrong places +- Description: Review the shape of uncertainty and pressure across scenes, separately from pace, action and reveal timing. +- Area: revision +- Distinction: The pattern of uncertainty and pressure needs inspection, rather than reading speed or activity alone. +- Related: D44, D26 +- Editorial search intents: tension is uneven in my novel; story loses tension in the middle; too much constant tension; tracking suspense across scenes; where should tension peak; quiet scenes with tension +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D46 — A character's development goes flat + +- URL: `/writing-problems/character-arc-stops-developing` +- HTML/OG title: When a character's development goes flat +- Description: Trace a character's responses and choices over time, distinguishing intended stability from development that the draft does not support. +- Area: people +- Distinction: One person's responses and choices show too little intended development across time; stability can still be purposeful. +- Related: D47, D18 +- Editorial search intents: character arc stops developing; static character arc in a novel; protagonist does not change; how to track character growth; character development goes flat; deliberately unchanging character or weak arc +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D47 — Too much development is packed into the ending + +- URL: `/writing-problems/too-much-happens-near-the-end` +- HTML/OG title: When too much development is left for the ending +- Description: Inspect the earlier experiences supporting late changes in belief, loyalty or understanding when an ending feels development-heavy. +- Area: revision +- Distinction: Necessary development is concentrated late, rather than being flat throughout or one relationship transition being rushed. +- Related: D46, D17 +- Editorial search intents: too much happens at the end of my novel; character development rushed in ending; back loaded character arc; ending has too many changes; preparing a character transformation; climax feels emotionally unearned +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D48 — Every change seems to break something else + +- URL: `/writing-problems/changes-have-unexpected-consequences` +- HTML/OG title: Following the consequences of a manuscript change +- Description: Trace manuscript dependencies around an edit, including the earlier preparation and later consequences affected by the chosen change. +- Area: revision +- Distinction: The task is tracing consequences of a chosen edit, rather than comparing competing versions before choosing one. +- Related: D49, D20 +- Editorial search intents: every revision breaks something else; tracking consequences of novel edits; continuity after changing a scene; how to revise a complicated manuscript; scene changes affect later chapters; managing dependencies in fiction +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D49 — You have more than one possible version of the story + +- URL: `/writing-problems/comparing-different-story-versions` +- HTML/OG title: Comparing different versions of the same story +- Description: Keep competing story arrangements distinct and compare the same turning points before choosing which version to adopt. +- Area: revision +- Distinction: Several alternatives need comparison and separation; tracing a committed edit's consequences is a different job. +- Related: D48, D37 +- Editorial search intents: comparing different story versions; keeping alternative novel structures; which draft version is the main one; testing alternate scene orders; managing competing plot ideas; how to compare structural revisions +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D50 — Your series has become too big to remember reliably + +- URL: `/writing-problems/series-continuity-is-too-big-to-remember` +- HTML/OG title: Keeping established facts consistent across a series +- Description: Verify established series facts against their source books and story positions, allowing details and states to change between volumes. +- Area: projects +- Distinction: Established facts across books are difficult to verify; the progress of one unresolved thread is a separate concern. +- Related: D51, D29 +- Editorial search intents: tracking continuity across a book series; series bible for novelists; remembering facts from earlier books; cross book continuity errors; keeping characters consistent across sequels; organising a shared story world +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D51 — A storyline stretches across several books + +- URL: `/writing-problems/storyline-spans-several-books` +- HTML/OG title: Following a storyline across several books +- Description: Follow an unresolved storyline's contributions and continuing questions across volumes without requiring every book to resolve it. +- Area: projects +- Distinction: The lifespan and development of one thread crosses books; this is more specific than general series fact checking. +- Related: D50, D02 +- Editorial search intents: plot thread spans several books; tracking a series long running subplot; unresolved storyline across sequels; planning multi book arcs; keeping a mystery alive across a series; when to resolve a series thread +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. + +### D52 — Your novel has become too much to hold in your head + +- URL: `/writing-problems/novel-is-too-much-to-hold-in-your-head` +- HTML/OG title: When the whole novel becomes too much to hold in mind +- Description: Reduce the memory burden of a complex novel by separating established facts, open decisions and the context needed for each writing task. +- Area: projects +- Distinction: The burden spans several kinds of information, rather than one scene arrangement or cross-book fact being the sole obstacle. +- Related: D33, D50 +- Editorial search intents: my novel is too complicated to manage; cannot hold my whole story in my head; organising notes for a complex novel; overwhelmed by manuscript details; keeping track of a big writing project; how to regain control of a complicated draft +- Review: unique recognition, cause/example, three inspection points and mental model; existing primary recommendation and screenshot preserved. diff --git a/Docs/WritingSolver/CuratedV2/PermanentEditorial/Report.md b/Docs/WritingSolver/CuratedV2/PermanentEditorial/Report.md new file mode 100644 index 00000000..8e05bba1 --- /dev/null +++ b/Docs/WritingSolver/CuratedV2/PermanentEditorial/Report.md @@ -0,0 +1,15 @@ +# Permanent Writing Problem resources + +All 52 diagnoses reviewed and substantially rewritten. Authored content precedes the preserved product recommendation: recognition, causes and an example, three concrete manuscript checks, a useful mental model, then Start Here / Look for / real screenshot. Direct visitors see no claimed personal answers; completed solver journeys retain their evidence and history. Neutral outcomes keep their existing separate presentation. + +See [Audit.md](Audit.md) for every page's title, description, neighbour distinction, group and six editorial search intents (312 total). These are editorial hypotheses, not measured keyword-volume research. The maintainable runtime source is `PlotLine/Content/WritingSolver/Editorial/pages-v1.json`. + +Important distinctions include a storyline's long absence versus unintended allocation across threads; an individual scene's purpose versus repeated work across scenes; established character facts versus age/date arithmetic; relationship-state uncertainty versus little development over an interval; knowledge appearing before access versus a missing acquisition source; progression versus reading speed versus pressure; cross-book reference continuity versus an unresolved series thread. Related links explain these differences instead of presenting interchangeable SEO variants. + +Nine server-rendered browse groups, reached through a quiet link on the solver entry page, reach all 52 permanent resources. Each resource links to two neighbours, its browse group and existing primary feature page. No large 52-link block, hidden links or article catalogue was introduced. + +Specific unique HTML titles and descriptions feed Open Graph and existing WebPage schema. Original visible H1s and clean canonical/OG URLs are retained. No artificial FAQ schema; redundant legacy question lists are omitted for the new articles. Development noindex remains enabled. Index-enabled fixture checks verify future public indexability and sitemap coverage, including browse pages. + +No changes to solver weights, thresholds, routing, evidence, identifiers, slugs, primary/secondary recommendations, article choices or screenshot assets. No application theme changes or new JavaScript. The decorative background has visually equivalent AVIF/WebP encodings with PNG fallback, reducing its encoded size from 2,293,988 bytes to 176,669 bytes (92.3%). Existing background placement, full-width canvas and responsive positions remain unchanged. + +Validation and live performance/deployment results are recorded in Deployment.md. diff --git a/PlotLine.Tests/Browser/writing-problem-editorial-performance.cjs b/PlotLine.Tests/Browser/writing-problem-editorial-performance.cjs new file mode 100644 index 00000000..9e11338a --- /dev/null +++ b/PlotLine.Tests/Browser/writing-problem-editorial-performance.cjs @@ -0,0 +1,2 @@ +const{chromium}=require('playwright'),fs=require('node:fs'); +(async()=>{const b=await chromium.launch();const samples=[];try{for(const slug of ['too-many-storylines-to-manage','relationship-stops-developing','story-order-differs-from-chronology'])for(const width of [390,1440])for(let run=0;run<2;run++){const c=await b.newContext({viewport:{width,height:1000}});const p=await c.newPage();await p.addInitScript(()=>{window.measured={lcp:null,cls:0};new PerformanceObserver(l=>{for(const e of l.getEntries())window.measured.lcp={ms:e.startTime,url:e.url,tag:e.element?.tagName};}).observe({type:'largest-contentful-paint',buffered:true});new PerformanceObserver(l=>{for(const e of l.getEntries())if(!e.hadRecentInput)window.measured.cls+=e.value;}).observe({type:'layout-shift',buffered:true});});await p.goto('https://dev.plotdirector.com/writing-problems/'+slug);await p.waitForLoadState('networkidle');await p.waitForTimeout(500);samples.push(await p.evaluate(({slug,width,run})=>({slug,width,run,...window.measured,resources:performance.getEntriesByType('resource').filter(e=>e.name.includes('writing-solver')).map(e=>({url:e.name,transfer:e.transferSize,encoded:e.encodedBodySize,initiator:e.initiatorType})),totalBytes:performance.getEntriesByType('resource').reduce((n,e)=>n+e.transferSize,0)}),{slug,width,run}));await c.close();}fs.writeFileSync(process.argv[2],JSON.stringify(samples,null,2));console.log('Recorded',samples.length,'fresh-context measurements');}finally{await b.close();}})().catch(e=>{console.error(e);process.exit(1)}); diff --git a/PlotLine.Tests/Browser/writing-problem-editorial.cjs b/PlotLine.Tests/Browser/writing-problem-editorial.cjs new file mode 100644 index 00000000..6fa92300 --- /dev/null +++ b/PlotLine.Tests/Browser/writing-problem-editorial.cjs @@ -0,0 +1,12 @@ +const {chromium}=require('playwright'),assert=require('node:assert/strict'),fs=require('node:fs'); +const graph=JSON.parse(fs.readFileSync('PlotLine/Content/WritingSolver/Candidates/curated-v2-stage1-repair/writing-solver-curated-v2-stage1-repair.json')); +const catalog=JSON.parse(fs.readFileSync('PlotLine/Content/WritingSolver/Editorial/pages-v1.json')); +const base=process.env.SOLVER_BASE_URL||'http://127.0.0.1:5238', indexed=process.env.PD_SOLVER_TEST_INDEXING==='true'; +(async()=>{const browser=await chromium.launch();try{const context=await browser.newContext();await context.addCookies([{name:'solver-anonymous',value:'true',url:base}]);const page=await context.newPage(); +const discovered=new Set();await page.goto(base+'/writing-problems');assert(await page.locator('a[href="/writing-problems/browse"]').count()>0);await page.goto(base+'/writing-problems/browse'); +const areas=await page.locator('.solver-browse-areas a').evaluateAll(es=>es.map(e=>e.getAttribute('href')));assert.equal(areas.length,9); +for(const area of areas){await page.goto(base+area);for(const link of await page.locator('.solver-problem-links a').evaluateAll(es=>es.map(e=>e.getAttribute('href'))))discovered.add(link);} +assert.equal(discovered.size,52); +for(const solution of graph.solutions){const article=catalog.pages.find(p=>p.solution===solution.id),path='/writing-problems/'+solution.slug;assert(discovered.has(path));assert.equal((await page.goto(base+path)).status(),200);assert.equal(await page.locator('h1').innerText(),solution.title);assert((await page.title()).includes(article.title));assert.equal(await page.locator('meta[name=description]').getAttribute('content'),article.description);assert((await page.locator('meta[property="og:title"]').getAttribute('content')).includes(article.title));assert.equal(await page.locator('meta[property="og:description"]').getAttribute('content'),article.description);const canonical=await page.locator('link[rel=canonical]').getAttribute('href');assert.equal(canonical,'https://plotdirector.com'+path);assert.equal(await page.locator('meta[property="og:url"]').getAttribute('content'),canonical);const schema=(await page.locator('script[type="application/ld+json"]').allTextContents()).join('');assert(schema.includes(canonical));assert(!schema.includes('FAQPage'));assert.equal(await page.locator('.solver-result-evidence').count(),0);assert.equal(await page.locator('.solver-permanent-copy').count(),1);assert.equal(await page.locator('.solver-permanent-copy li').count(),3);assert.equal(await page.locator('.solver-related li').count(),article.related.length);assert.equal(await page.locator('.solver-result-cta').count(),1);assert.equal(await page.locator('meta[name=robots]').getAttribute('content'),indexed?'index, follow':'noindex, follow');assert(!(await page.locator('body').innerText()).includes('DEVELOPMENT PREVIEW'));} +for(const width of [390,768,1440,1920]){await page.setViewportSize({width,height:1000});for(const id of ['d01','d16','d21','d28','d30','d34','d43','d49','d50']){const s=graph.solutions.find(s=>s.id===id);await page.goto(base+'/writing-problems/'+s.slug);assert.equal(await page.evaluate(()=>document.documentElement.scrollWidth>innerWidth),false);const canvas=await page.locator('.solver-space').boundingBox();assert(canvas.width>=width-2);const copy=await page.locator('.solver-permanent-copy').boundingBox();assert(copy.width<=782);await page.locator('.solver-start').scrollIntoViewIfNeeded();await page.waitForTimeout(100);const img=page.locator('.solver-result-visual img');if(await img.count())assert(await img.evaluate(e=>e.complete&&e.naturalWidth>0));if(id==='d01'&&process.env.EDITORIAL_CAPTURE_DIR){fs.mkdirSync(process.env.EDITORIAL_CAPTURE_DIR,{recursive:true});await page.screenshot({path:process.env.EDITORIAL_CAPTURE_DIR+'/after-'+width+'.png',fullPage:true});}}} +await context.close();const nojs=await browser.newContext({javaScriptEnabled:false,viewport:{width:390,height:1000}});const np=await nojs.newPage();await np.goto(base+'/writing-problems/'+graph.solutions[0].slug);assert.equal(await np.locator('.solver-permanent-copy').count(),1);assert.equal(await np.evaluate(()=>document.documentElement.scrollWidth>innerWidth),false);await nojs.close();console.log('PASS editorial: all 52 metadata/content/direct-entry pages; nine crawlable groups reach all 52; nine families × four widths; no overflow; no-JS; preserved previews.');}finally{await browser.close();}})().catch(e=>{console.error(e);process.exit(1)}); diff --git a/PlotLine.Tests/Browser/writing-solver-clean-urls.cjs b/PlotLine.Tests/Browser/writing-solver-clean-urls.cjs index 45465b38..facdc499 100644 --- a/PlotLine.Tests/Browser/writing-solver-clean-urls.cjs +++ b/PlotLine.Tests/Browser/writing-solver-clean-urls.cjs @@ -22,7 +22,7 @@ const indexed=process.env.PD_SOLVER_TEST_INDEXING==='true'; await page.reload();assert.equal(await page.locator('.solver-result-evidence').innerText(),personal); const fresh=await browser.newContext();const direct=await fresh.newPage();await direct.goto(page.url()); assert.equal(await direct.locator('.solver-result-panel').count(),1); - assert.equal(await direct.locator('.solver-result-evidence > p').count(),1); + assert.equal(await direct.locator('.solver-result-evidence').count(),0);assert.equal(await direct.locator('.solver-permanent-copy').count(),1); assert.equal(await direct.locator('nav[aria-label="Areas discussed"]').count(),0); assert.equal(await direct.locator('.solver-result-cta').count(),1); await fresh.close(); diff --git a/PlotLine.Tests/Program.cs b/PlotLine.Tests/Program.cs index f97f76e8..a84224f6 100644 --- a/PlotLine.Tests/Program.cs +++ b/PlotLine.Tests/Program.cs @@ -96,6 +96,7 @@ var tests = new (string Name, Action Test)[] ("Curated V2 preserves 60 literal paths and enforces eight explicit Development review exceptions", WritingSolverCuratedV2Tests.Acceptance), ("Curated V2 exhausts real-engine states and preserves revision/multi-select behaviour", WritingSolverCuratedV2Tests.ReachabilityAndRevision), ("Curated V2 passes normal validation and invalid publication stays guarded", WritingSolverCuratedV2Tests.ExistingValidatorBoundary), + ("All permanent writing problems have distinct editorial content, intent, metadata, links and real images", WritingProblemEditorialTests.Audit), ("Clean solver completion preserves private evidence and permanent indexable URLs", WritingSolverCleanUrlTests.TransitionAndIsolation), ("Writing Solver anonymous state is protected, expires and rejects stale versions", WritingSolverTests.AnonymousState), ("Writing Solver scoring, multi-select, revision, fallback and graph routes", WritingSolverTests.RoutingAndRevision), diff --git a/PlotLine.Tests/ToolbarBrowserHost.cs b/PlotLine.Tests/ToolbarBrowserHost.cs index d5b33b5d..1bcb5494 100644 --- a/PlotLine.Tests/ToolbarBrowserHost.cs +++ b/PlotLine.Tests/ToolbarBrowserHost.cs @@ -79,6 +79,7 @@ internal static class ToolbarBrowserHost builder.Services.AddSingleton(); builder.Services.AddMemoryCache(); builder.Services.AddSingleton(); + builder.Services.AddSingleton(new WritingProblemEditorial(Path.GetFullPath("PlotLine/Content/WritingSolver/Editorial/pages-v1.json"))); builder.Services.AddSingleton(new WritingSolverResults(Path.GetFullPath("PlotLine/Content/WritingSolver/Presentation/results-v1.json"))); builder.Services.AddSingleton(); builder.Services.AddScoped(services => new ToolbarTestUser(int.Parse(services.GetRequiredService().HttpContext!.User.FindFirstValue(ClaimTypes.NameIdentifier)!))); diff --git a/PlotLine.Tests/WritingProblemEditorialTests.cs b/PlotLine.Tests/WritingProblemEditorialTests.cs new file mode 100644 index 00000000..b365eac2 --- /dev/null +++ b/PlotLine.Tests/WritingProblemEditorialTests.cs @@ -0,0 +1,52 @@ +using System.Text.RegularExpressions; +using Microsoft.AspNetCore.DataProtection; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Caching.Memory; +using Microsoft.Extensions.Configuration; +using PlotLine.Controllers; +using PlotLine.Data; +using PlotLine.Models.WritingSolver; +using PlotLine.Services; +internal static class WritingProblemEditorialTests +{ + private sealed class Repository(SolverGraph graph):IWritingSolverRepository + { + public Task GetAsync()=>Task.FromResult(graph); + public Task PublishAsync(string json,string editor)=>throw new NotSupportedException(); + } + public static void Audit() + { + var root=WritingSolverCuratedV2Tests.Root(); + var editorial=new WritingProblemEditorial(Path.Combine(root,"PlotLine/Content/WritingSolver/Editorial/pages-v1.json")); + var graph=WritingSolverRepository.Parse(File.ReadAllText(Path.Combine(root,"PlotLine/Content/WritingSolver/Candidates/curated-v2-stage1-repair/writing-solver-curated-v2-stage1-repair.json"))); + var results=WritingSolverResultTests.Content(); + void Check(bool condition,string reason){if(!condition)throw new Exception(reason);} + string Normal(string s)=>Regex.Replace(s.ToLowerInvariant(),@"\W+"," ").Trim(); + Check(editorial.Catalog.Pages.Count==52 && graph.Solutions.Count==52,"Expected 52 authoritative diagnoses."); + Check(graph.Solutions.Select(s=>s.Slug).Distinct().Count()==52,"Diagnosis slugs must be unique."); + foreach(var field in new Func[] {p=>p.Title,p=>p.Description,p=>p.Recognition,p=>p.Cause,p=>p.Model,p=>p.Distinction}) + Check(editorial.Catalog.Pages.Select(p=>Normal(field(p))).Distinct().Count()==52,"Accidentally duplicated editorial field."); + using var cache=new MemoryCache(new MemoryCacheOptions()); + foreach(var solution in graph.Solutions) + { + var article=editorial.Find(solution.Id);Check(article is not null,"Missing permanent article."); + Check(!string.IsNullOrWhiteSpace(solution.Title) && article!.Title.Length>20 && article.Description.Length>50,"Missing specific heading or metadata."); + var body=string.Join(" ",new[]{article!.Recognition,article.Cause,article.Model}.Concat(article.Inspect)); + Check(body.Split((char[]?)null,StringSplitOptions.RemoveEmptyEntries).Length>=100 && article.Inspect.Count>=3,"Thin permanent article."); + Check(article.SearchIntents.Count is >=5 and <=10 && article.SearchIntents.Select(Normal).Distinct().Count()==article.SearchIntents.Count,"Search intent coverage incomplete."); + Check(article.Related.Count is >0 and <=3 && article.Related.Distinct().Count()==article.Related.Count && article.Related.All(id=>id!=solution.Id && graph.Solutions.Any(s=>s.Id==id&&s.Active)),"Invalid related problems."); + var recommendation=results.Catalog.Results.Single(r=>r.Solution==solution.Id);var capability=results.Capability(recommendation.Capability); + Check(results.HasImage(capability)&&capability.ImageAlt.Length>30,"Missing primary capability/image/alt."); + solution.Index=true; + var controller=new WritingProblemsController(new Repository(graph),new EphemeralDataProtectionProvider(),new ConfigurationBuilder().Build(),new(cache),editorial){ControllerContext=new(){HttpContext=new DefaultHttpContext()}}; + Check(controller.Solution(solution.Slug).GetAwaiter().GetResult() is ViewResult,"Permanent slug failed."); + Check((string?)controller.ViewData["CanonicalUrl"]=="https://plotdirector.com/writing-problems/"+solution.Slug,"Canonical must use the clean permanent slug."); + Check((string?)controller.ViewData["Robots"]=="index, follow" && controller.ViewData["OgTitle"]?.ToString()?.Contains(article.Title)==true,"Production-ready metadata missing."); + } + // Catch near-copy accidents without asserting exact authored sentences. + var sets=editorial.Catalog.Pages.Select(p=>Regex.Matches(Normal(p.Recognition+" "+p.Cause+" "+p.Model),@"\w+").Select(m=>m.Value).ToHashSet()).ToArray(); + for(var i=0;iRegex.IsMatch(a.Id,@"^[a-z]+$")&&editorial.Catalog.Pages.Any(p=>p.Area==a.Id)),"Empty or unsafe browse area."); + } +} diff --git a/PlotLine/Content/WritingSolver/Editorial/pages-v1.json b/PlotLine/Content/WritingSolver/Editorial/pages-v1.json new file mode 100644 index 00000000..0b22f565 --- /dev/null +++ b/PlotLine/Content/WritingSolver/Editorial/pages-v1.json @@ -0,0 +1,1456 @@ +{ + "version": 1, + "areas": [ + { + "id": "plots", + "title": "Plots and storylines", + "description": "Open threads, their connections and the promises they create." + }, + { + "id": "people", + "title": "Characters and viewpoints", + "description": "Cast roles, appearances, established details and character development." + }, + { + "id": "relationships", + "title": "Character relationships", + "description": "Connections, changing expectations and the consequences between people." + }, + { + "id": "knowledge", + "title": "Knowledge and revelations", + "description": "Who knows what, where knowledge comes from and when discoveries arrive." + }, + { + "id": "time", + "title": "Time and chronology", + "description": "Event dates, elapsed time, overlapping action and nonlinear narration." + }, + { + "id": "structure", + "title": "Scenes and chapters", + "description": "Scene contributions, placement, repetition and chapter boundaries." + }, + { + "id": "world", + "title": "Places and important objects", + "description": "Where people and objects are, how they move and what stays consistent." + }, + { + "id": "revision", + "title": "Progression, pacing and revision", + "description": "Patterns of change, reading rhythm and alternative arrangements." + }, + { + "id": "projects", + "title": "Large novels and series", + "description": "Shared references and storylines that extend beyond one book." + } + ], + "pages": [ + { + "solution": "d01", + "area": "plots", + "title": "Too many storylines in a novel: finding an overview", + "description": "Find a workable overview of multiple storylines, their open questions and shared consequences without assuming a complex novel needs fewer plots.", + "recognition": "You can remember each storyline in isolation, yet lose track of which ones are active when you return to the draft. Adding another scene seems to create several new obligations.", + "cause": "New threads often arrive faster than their relationships become visible. The difficulty may be the amount you are holding in memory, rather than the number of plots the novel can sustain.\n\nFor example, a thread may be easy to describe but hard to place beside its neighbours. Naming its next unresolved commitment can be more useful than writing a longer synopsis.", + "inspect": [ + "List each thread's unresolved question", + "Mark where threads share a consequence", + "Find lines with no clear next contribution" + ], + "model": "Think of the overview as a map of commitments, not a demand to cut until the book looks simple.", + "searchIntents": [ + "too many storylines in my novel", + "how many subplots is too many", + "keeping track of multiple plots", + "organising intertwined storylines", + "my novel has too many threads", + "how to manage a complicated plot" + ], + "related": [ + "d02", + "d04" + ], + "distinction": "Managing the number and connections of open threads, rather than the length of one thread's absence." + }, + { + "solution": "d02", + "area": "plots", + "title": "When a subplot disappears for too long", + "description": "Inspect long subplot gaps, what keeps a question alive during an absence, and what a returning thread expects readers to remember.", + "recognition": "A supporting storyline returns and you have to remind yourself what was happening in it. Its last contribution may be much further back than it felt while drafting.", + "cause": "A thread can lose its place when another sequence expands or scenes move. A deliberate absence can build anticipation; an accidental gap may leave the return without a live question.\n\nCompare the thread's last contribution with its return. If the intervening book changes the stakes, the returning scene may need to acknowledge that change rather than resume the old situation unchanged.", + "inspect": [ + "Find the last meaningful contribution before the gap", + "Note what keeps the question alive during the absence", + "Check what the returning scene expects the reader to remember" + ], + "model": "Measure a gap by the reader's continuing investment, not by an equal quota of scenes for every plot.", + "searchIntents": [ + "subplot disappears halfway through novel", + "how often should a subplot appear", + "forgotten subplot in my story", + "story thread goes missing", + "bringing back a subplot after a long gap", + "keeping a subplot alive" + ], + "related": [ + "d04", + "d51" + ], + "distinction": "The interval between one thread's contributions is the issue, even if the rest of the novel is well balanced." + }, + { + "solution": "d03", + "area": "plots", + "title": "Connecting separate storylines without forcing them together", + "description": "Explore why separate storylines feel disconnected and inspect the information, decisions and consequences that could connect them.", + "recognition": "The individual strands have interesting events, but moving between them feels like changing books. A scene in one line rarely alters what is possible in another.", + "cause": "Threads may share a setting or cast without sharing consequences. That separation can be intentional, but a converging story needs more than characters occupying the same room.\n\nTwo people meeting does not necessarily connect their plots. Ask whether the meeting changes a decision or creates a consequence that the other line must now accommodate.", + "inspect": [ + "Find decisions whose effects cross into another thread", + "Compare what each strand contributes to the ending", + "Identify meetings that change nothing beyond their own line" + ], + "model": "A connection is useful when something travels through it: information, pressure, resources or consequences.", + "searchIntents": [ + "my subplots do not connect", + "how to weave storylines together", + "connecting multiple plots in a novel", + "separate story threads feel unrelated", + "making subplots affect the main plot", + "bringing storylines together at the end" + ], + "related": [ + "d01", + "d07" + ], + "distinction": "Connections between lines are missing, rather than events within one line failing to cause each other." + }, + { + "solution": "d04", + "area": "plots", + "title": "When one storyline takes over the novel", + "description": "Compare the space given to a dominant storyline with your intended balance, including supporting threads that still need room to develop.", + "recognition": "One thread keeps acquiring longer runs of scenes while the others wait. The book may be drifting away from the balance you meant, even though the dominant material works on its own.", + "cause": "Expansion is not automatically imbalance. A strong main plot can rightly occupy most of a novel; the concern begins when supporting work loses space it needs to fulfil its intended role.\n\nA main plot occupying most of the book can be exactly right. The warning sign is a supporting resolution that still asks the reader to accept development its scenes no longer provide.", + "inspect": [ + "Compare actual scene runs with your intended emphasis", + "Locate supporting threads displaced by expansion", + "Check whether the ending still depends on underdeveloped material" + ], + "model": "Balance means giving each line enough room for its purpose, not giving every line the same amount.", + "searchIntents": [ + "one subplot takes over my novel", + "main plot crowds out subplots", + "balancing storylines in a book", + "too much space given to one storyline", + "my novel changed focus while drafting", + "how much space should subplots get" + ], + "related": [ + "d02", + "d11" + ], + "distinction": "The allocation of attention across storylines differs from your intention, rather than one isolated gap being the whole problem." + }, + { + "solution": "d05", + "area": "structure", + "title": "Working out what a scene contributes", + "description": "Work out what a scene contributes by tracing change, later dependencies and what readers would lose if the scene disappeared.", + "recognition": "You can describe what happens in a scene but struggle to explain why it belongs in this particular book. Its dialogue or atmosphere may be enjoyable while its contribution remains uncertain.", + "cause": "A scene's work can be quiet: establishing an expectation, changing a relationship or giving meaning to a later choice. Difficulty naming that work is a reason to inspect it, not proof that it should go.\n\nA reflective scene might make a later refusal understandable without advancing an external objective. Identify that contribution before deciding that a lack of overt action makes the scene expendable.", + "inspect": [ + "Describe what is different after the scene", + "Identify a later moment that depends on it", + "Try stating what the reader would lose if it vanished" + ], + "model": "Ask what becomes possible or meaningful because of the scene before deciding whether its events are dramatic enough.", + "searchIntents": [ + "what is the purpose of a scene", + "scene does not advance the plot", + "how to tell if a scene is needed", + "quiet scenes in a novel", + "what should each scene contribute", + "my scene feels pointless" + ], + "related": [ + "d36", + "d34" + ], + "distinction": "The contribution of an individual scene is unclear; repeated contributions across several scenes are a different question." + }, + { + "solution": "d06", + "area": "plots", + "title": "Keeping track of setups and payoffs", + "description": "Trace setups to their payoffs and check what remains of a promise after scenes, clues or endings change during revision.", + "recognition": "A revelation feels unprepared, or an early detail seems to promise something the ending never addresses. You may remember intending a connection that the draft no longer contains.", + "cause": "Setups and payoffs are often written far apart. Revision can remove the preparation while preserving the consequence, or keep a suggestive detail after its planned resolution changes.\n\nA repeated object can create an expectation even without a planned twist. Review the emphasis the draft gives it, rather than assuming readers can distinguish your important details from discarded plans.", + "inspect": [ + "Pair important expectations with their later consequences", + "Check what preparation survives before each payoff", + "Separate deliberate open questions from abandoned promises" + ], + "model": "Think in pairs of expectation and response. A response can transform an expectation without neatly resolving it.", + "searchIntents": [ + "tracking setups and payoffs in a novel", + "forgotten foreshadowing in my book", + "payoff feels unearned", + "plot promises without resolution", + "how to track Chekhov's gun", + "setups removed during revision" + ], + "related": [ + "d25", + "d26" + ], + "distinction": "Preparation and response have lost their connection; the timing of an otherwise prepared reveal may need a different review." + }, + { + "solution": "d07", + "area": "plots", + "title": "When a story feels like a sequence of unrelated events", + "description": "Inspect cause and effect when a novel feels like unrelated events, distinguishing purposeful episodic structure from missing consequences.", + "recognition": "Plenty happens, but each episode seems to reset the situation. Reordering several scenes would make little difference to the decisions that follow.", + "cause": "Events can share a protagonist without forming a chain of consequences. Episodic structures may deliberately work this way; a cumulative plot needs earlier actions to change later options.\n\nTry connecting two major turns with a sentence explaining how the first changes the second. If the connection is only that one happens afterwards, inspect the choices between them.", + "inspect": [ + "Trace what each major decision makes harder or easier", + "Find consequences that disappear between scenes", + "Test whether an episode changes the next meaningful choice" + ], + "model": "Follow the changing range of possible actions, rather than counting incidents as evidence of progress.", + "searchIntents": [ + "my story is just a series of events", + "plot lacks cause and effect", + "things happen but story goes nowhere", + "how to connect scenes causally", + "episodic novel feels disconnected", + "making events build into a plot" + ], + "related": [ + "d03", + "d43" + ], + "distinction": "The causal links between events are weak, rather than a connected sequence simply changing too little." + }, + { + "solution": "d08", + "area": "people", + "title": "Keeping track of a large cast of characters", + "description": "Manage a large fictional cast by making roles, introductions and later appearances easier to retrieve and distinguish.", + "recognition": "Returning to the manuscript means checking names, roles and previous appearances before you can write. Minor figures become difficult to distinguish from people who will matter again.", + "cause": "A growing cast creates retrieval work as well as creative work. The difficulty may come from scattered records or similar introductions, not from an intrinsically excessive headcount.\n\nA character introduced once and recalled much later creates a different memory demand from someone present throughout. Review those introductions in context before deciding that the cast is simply too large.", + "inspect": [ + "Record each person's role and first appearance", + "Find characters introduced together with similar functions", + "Check which names the reader must retain for later" + ], + "model": "A cast is easier to manage when you can retrieve the relevant person and context without rehearsing everybody.", + "searchIntents": [ + "too many characters in my novel", + "how to keep track of characters while writing", + "organising a large cast", + "remembering minor characters in a book", + "introducing too many names", + "managing an ensemble novel" + ], + "related": [ + "d09", + "d15" + ], + "distinction": "The cast as a whole is difficult to retrieve and distinguish; overlap between two specific roles is more focused." + }, + { + "solution": "d09", + "area": "people", + "title": "When two characters seem to do the same job", + "description": "Compare characters whose narrative functions overlap before deciding whether to distinguish, develop or combine their roles.", + "recognition": "Two people repeatedly supply the same advice, information or obstacle. You find yourself wondering which one a scene actually needs.", + "cause": "Characters can resemble each other intentionally. The useful question is whether their differences create different pressures or choices, rather than whether their profiles contain different facts.\n\nTwo advisers may both offer help, yet one makes safety attractive while the other makes risk possible. Those opposing effects can matter more than differences in occupation or appearance.", + "inspect": [ + "Compare what each character changes in shared scenes", + "List decisions that require one particular person", + "Check whether exchanging their dialogue changes its meaning" + ], + "model": "Distinguish function from identity: similar people can do different story work, and different biographies can conceal the same function.", + "searchIntents": [ + "two characters do the same job", + "should I combine characters in my novel", + "redundant characters in a story", + "characters feel interchangeable", + "distinguishing character roles", + "how to tell if a character is necessary" + ], + "related": [ + "d08", + "d36" + ], + "distinction": "Two characters have overlapping narrative functions, rather than the cast simply being large." + }, + { + "solution": "d10", + "area": "people", + "title": "When an important character disappears from the story", + "description": "Review an important character's long absence, the effects that remain active, and the demands their return places on the reader.", + "recognition": "A character returns after a long stretch and their relevance feels as if it needs rebuilding. You may have assumed they remained present because you knew what they were doing off the page.", + "cause": "Scene moves and expanding sequences can lengthen an absence without changing that person's intended importance. A long disappearance may also be deliberate, especially when the return itself matters.\n\nA missing antagonist can remain central through the consequences of earlier actions. Conversely, several brief name-checks may do little to preserve a supporting character's relevance to the next decision.", + "inspect": [ + "Measure the gap between meaningful appearances", + "Check reminders and continuing consequences during it", + "Identify what the return asks the reader to remember" + ], + "model": "Absence can be active if the character's effects remain present. Appearance counts alone cannot tell you whether that happens.", + "searchIntents": [ + "character disappears halfway through book", + "important character missing for chapters", + "how long can a character be absent", + "bringing back a forgotten character", + "tracking character appearances", + "reader forgets a supporting character" + ], + "related": [ + "d11", + "d02" + ], + "distinction": "One character's stretch of absence needs attention, rather than the overall proportions of the cast." + }, + { + "solution": "d11", + "area": "people", + "title": "Balancing character presence across a novel", + "description": "Inspect how character presence is distributed across a novel without assuming an ensemble needs equal space for every person.", + "recognition": "Some people occupy far more of the manuscript than you intended, while others who matter to the ending have barely appeared. There may be no single obvious disappearance.", + "cause": "Drafting can favour the easiest viewpoint or most immediately engaging relationship. The resulting distribution may be effective, but it is worth comparing with the roles you want the cast to play.\n\nCompare who is present with who actually influences a scene. Repeated background appearances do not necessarily prepare a character to carry the decisive emotional work at the ending.", + "inspect": [ + "Compare presence across the beginning, middle and ending", + "Separate scene counts from consequential participation", + "Check who carries decisive moments versus background appearances" + ], + "model": "Presence is about the kind of work a character does as well as the amount of space they occupy.", + "searchIntents": [ + "balancing character screen time in a novel", + "character presence is unbalanced", + "supporting characters get too little space", + "ensemble cast balance", + "one character dominates my book", + "tracking how often characters appear" + ], + "related": [ + "d10", + "d12" + ], + "distinction": "The distribution of attention across characters is the concern, rather than one person's isolated absence." + }, + { + "solution": "d12", + "area": "people", + "title": "Making sense of viewpoint balance", + "description": "Review viewpoint patterns, long switches and each narrator's unique access without imposing equal chapter counts.", + "recognition": "One narrator carries long sections while another appears mainly to supply information. You may be unsure whether the pattern feels purposeful or simply reflects the order in which you drafted.", + "cause": "Different viewpoints do not need equal space. Problems can arise when access to a perspective changes without a clear narrative reason, or when its promised role is not developed.\n\nA short viewpoint strand can still have a clear purpose if it offers an experience unavailable elsewhere. A longer strand can feel unnecessary if it repeatedly supplies what another narrator already provides.", + "inspect": [ + "Map which viewpoint carries each major turn", + "Check long switches and returns for reorientation", + "Compare each perspective's unique access and dramatic work" + ], + "model": "Treat viewpoint as a pattern of access to the story, not a rota that must give every narrator an equal turn.", + "searchIntents": [ + "balancing multiple POV characters", + "uneven viewpoint chapters", + "one narrator has too many chapters", + "how often to switch POV", + "tracking point of view in a novel", + "do POV characters need equal space" + ], + "related": [ + "d11", + "d23" + ], + "distinction": "The pattern of narrative perspectives is at issue; different information held by those perspectives is a separate layer." + }, + { + "solution": "d13", + "area": "people", + "title": "Keeping established character details consistent", + "description": "Reconcile character descriptions and established facts while allowing intentional change, unreliable accounts and differences of perspective.", + "recognition": "A later description seems to disagree with an earlier one. You are searching scattered notes to decide which version of a character's history or appearance you meant to keep.", + "cause": "Drafts accumulate provisional details. An intentional change, an unreliable description and an accidental contradiction can look alike until you compare their sources and story positions.\n\nCompare the sources of two conflicting descriptions. A character's mistaken recollection may be intentional; two neutral statements meant as reliable reference may require a different editorial decision.", + "inspect": [ + "Locate both statements and who supplies them", + "Check whether the detail changes within the story", + "Mark which version is established and which remains provisional" + ], + "model": "A reference record is an agreed starting point, not a ban on change or on characters describing one another differently.", + "searchIntents": [ + "character details inconsistent in my novel", + "keeping character facts straight", + "character description changes between chapters", + "tracking character backstory", + "continuity errors in character profiles", + "how to maintain a character reference" + ], + "related": [ + "d29", + "d19" + ], + "distinction": "Established non-temporal facts need reconciliation; age arithmetic and conflicting interpretations require different checks." + }, + { + "solution": "d14", + "area": "world", + "title": "Knowing where characters are between scenes", + "description": "Track last confirmed character locations and distinguish uncertain whereabouts from a journey that is demonstrably impossible.", + "recognition": "You remember the conversation but not where each participant went afterwards. Later scenes depend on positions that have become difficult to reconstruct.", + "cause": "An author may know an off-page movement without recording it clearly. That is different from a journey being physically impossible: first establish the last reliable position.\n\nDo not fill every off-page interval merely to make the record complete. First ask whether a later scene requires a precise location or whether the uncertainty can remain harmless.", + "inspect": [ + "Find the last explicit location for each person", + "Identify entries that are inference rather than confirmation", + "Check entrances, exits and off-page intervals" + ], + "model": "Track certainty along with position. An unknown whereabouts is a gap in the record, not evidence of impossible travel.", + "searchIntents": [ + "how to track character locations", + "losing track of where characters are", + "character whereabouts between scenes", + "tracking off page movement", + "where was this character last seen", + "organising character movement in a novel" + ], + "related": [ + "d38", + "d31" + ], + "distinction": "The last reliable position is uncertain; a known journey that cannot fit is a different problem." + }, + { + "solution": "d15", + "area": "relationships", + "title": "Managing a complicated web of relationships", + "description": "Make a complex fictional relationship network easier to inspect by separating connection types, story positions and changes.", + "recognition": "You can explain a pair of characters, but keeping the whole social network in mind is becoming exhausting. A change in one connection may make several other scenes harder to write.", + "cause": "Connections multiply faster than the cast itself. Family ties, alliances, intimacy and authority can overlap without being contradictory, provided you can locate the relevant relationship and story position.\n\nA pair might be relatives, colleagues and rivals at once. Recording those connections separately can explain apparently inconsistent behaviour without forcing the relationship into a single label.", + "inspect": [ + "List the kinds of connection between each important pair", + "Check which connections change and which stay stable", + "Compare the network before and after major turning points" + ], + "model": "A relationship map is a way to retrieve context, not a requirement that every connection receive equal attention.", + "searchIntents": [ + "tracking character relationships in a novel", + "complicated relationship map", + "organising family ties in fiction", + "keeping track of alliances", + "large cast relationship web", + "how to plan relationships between characters" + ], + "related": [ + "d16", + "d20" + ], + "distinction": "The network is hard to hold in memory, rather than one pair's current state being unclear." + }, + { + "solution": "d16", + "area": "relationships", + "title": "Working out where a relationship has reached", + "description": "Establish a relationship's current state from its turning points and each participant's understanding at a particular story position.", + "recognition": "You hesitate over whether two people should trust each other, be estranged or behave as though something remains unresolved at this point in the story.", + "cause": "A remembered turning point may not match the draft's current order. State can also differ between the two participants, so a single label may hide uncertainty rather than settle it.\n\nA private reconciliation may change how two people behave together before the wider cast knows about it. Keep their own state separate from what witnesses believe has happened.", + "inspect": [ + "Find the last scene that changed the relationship", + "Compare each person's understanding afterwards", + "Check which later behaviour depends on that change" + ], + "model": "Describe the relationship at a particular point and from a particular side before judging whether a scene fits it.", + "searchIntents": [ + "tracking relationship stages in fiction", + "where has a character relationship reached", + "relationship continuity between scenes", + "characters act closer than they should", + "tracking trust changes", + "relationship status unclear in my novel" + ], + "related": [ + "d18", + "d19" + ], + "distinction": "The relationship's present state is uncertain; lack of development over an interval is a different concern." + }, + { + "solution": "d17", + "area": "relationships", + "title": "When a relationship changes faster than expected", + "description": "Inspect the experiences supporting a fast relationship transition without imposing a universal pace on trust, intimacy or alliance.", + "recognition": "A friendship, romance or alliance makes a large turn, but the scenes leading to it do not seem to carry the change. You may know the intended reason without seeing it on the page.", + "cause": "The event that changes a relationship can be brief. What matters is whether the surrounding experience makes that change intelligible for these people, rather than whether enough chapters have passed.\n\nAn abrupt alliance might be convincing under immediate pressure but fragile afterwards. Look at the consequences the book gives that speed, not just the size of the change itself.", + "inspect": [ + "Compare the state immediately before and after the turn", + "Find the decisions that make the turn plausible", + "Check whether intermediate encounters were removed or moved" + ], + "model": "Look for the experience that supports a change, not a minimum number of scenes or a universal speed for intimacy.", + "searchIntents": [ + "relationship develops too fast in my novel", + "romance feels rushed", + "friendship change feels unearned", + "characters trust each other too quickly", + "pacing an alliance in fiction", + "missing relationship development scenes" + ], + "related": [ + "d18", + "d16" + ], + "distinction": "A particular transition lacks visible support, rather than a relationship staying unchanged for too long." + }, + { + "solution": "d18", + "area": "relationships", + "title": "When a relationship seems to stop developing", + "description": "Examine repeated relationship encounters for intended development, while distinguishing stagnation from deliberate slowness or stability.", + "recognition": "The same disagreement or degree of closeness returns through several encounters. If you want the relationship to develop, it can feel as though its scenes keep restarting.", + "cause": "Stability, restraint and very slow change can be deliberate. Stagnation is worth inspecting when encounters intended to matter leave the relationship in effectively the same position.\n\nA recurring argument can develop if its stakes or participants' expectations change. Compare those differences before treating every return to the same subject as repetition without purpose.", + "inspect": [ + "Compare what each encounter changes in trust or expectation", + "Find consequences that survive into the next meeting", + "Check whether repeated conflict develops a new cost" + ], + "model": "Movement can be subtle: a changed expectation may matter more than a new relationship label.", + "searchIntents": [ + "relationship subplot goes nowhere", + "romance stops developing", + "characters repeat the same argument", + "slow relationship or stalled relationship", + "how to track relationship progression", + "friendship arc feels static" + ], + "related": [ + "d17", + "d16" + ], + "distinction": "The development across several encounters is flat relative to intention; a slow relationship is not automatically a fault." + }, + { + "solution": "d19", + "area": "relationships", + "title": "When characters understand the same relationship differently", + "description": "Track different interpretations of the same relationship without mistaking intentional asymmetry for an accidental inconsistency.", + "recognition": "One person treats a connection as secure while the other sees it as temporary, hostile or unequal. Writing their shared scenes becomes confusing if you use one description for both.", + "cause": "People can interpret the same event differently. The inconsistency may be in your notes rather than the novel, especially when private expectations are not visible to the other participant.\n\nOne person may interpret a favour as proof of loyalty while the other regards it as repayment of a debt. Their later choices can remain consistent with those different interpretations.", + "inspect": [ + "Record what each side believes at the same story point", + "Compare actions with those beliefs", + "Mark when one person learns how the other sees the connection" + ], + "model": "Separate shared events from private interpretations. Asymmetry can supply the tension rather than undermine consistency.", + "searchIntents": [ + "characters see relationship differently", + "one sided relationship in fiction", + "tracking asymmetric character relationships", + "unreliable relationship perspectives", + "characters misunderstand each other", + "different expectations in a romance subplot" + ], + "related": [ + "d16", + "d23" + ], + "distinction": "The two sides hold different interpretations; do not flatten that into one supposedly correct state." + }, + { + "solution": "d20", + "area": "relationships", + "title": "Following the consequences of a relationship turning point", + "description": "Follow a betrayal, confession or alliance through a wider relationship network, including delayed and private consequences.", + "recognition": "A betrayal, confession or alliance changes more than one pair of people. You keep discovering later scenes that still behave as though the event had not happened.", + "cause": "A social event can affect witnesses, dependants and rivals as well as its participants. Some consequences are private or delayed; not everyone should react at the same moment.\n\nSomeone excluded from the event may continue acting on the old situation quite plausibly. The relevant check is when news reaches them and what they understand it to mean.", + "inspect": [ + "Map who is directly affected and who hears later", + "Trace altered loyalties into subsequent decisions", + "Check scenes that still assume the old network" + ], + "model": "Follow the spread of consequences through the network, keeping the event separate from news of the event.", + "searchIntents": [ + "betrayal affects too many relationships", + "tracking consequences of an alliance", + "character relationships after a major event", + "social fallout in a novel", + "keeping relationship changes consistent", + "one event changes the whole cast" + ], + "related": [ + "d15", + "d48" + ], + "distinction": "A specific social turning point has network effects, rather than every kind of revision dependency being the issue." + }, + { + "solution": "d21", + "area": "knowledge", + "title": "When a character knows something too early", + "description": "Check whether a character has access to information before using it, separating knowledge from suspicion, inference and bluff.", + "recognition": "A character acts on a detail before the manuscript appears to give them access to it. The explanation may exist in your planning notes, but their scene does not yet support it.", + "cause": "The author knows the whole story; a character has a smaller, changing set of information. Reordering scenes can accidentally move a use ahead of its source.\n\nA character can arrive at the correct answer for an unreliable reason. Decide whether the scene presents that as a guess or as knowledge that the character has actually acquired.", + "inspect": [ + "Find the first action that depends on the information", + "Identify the earliest plausible learning opportunity", + "Separate knowledge from suspicion, inference and bluff" + ], + "model": "Compare access with use. A correct guess is not the same as confirmed knowledge, and may need different treatment.", + "searchIntents": [ + "character knows something they have not learned", + "character knowledge continuity error", + "information revealed to character too early", + "tracking who knows what", + "author knowledge leaks into dialogue", + "character acts on future information" + ], + "related": [ + "d22", + "d24" + ], + "distinction": "There is a possible timing contradiction between acquiring information and using it, rather than an unlocated source alone." + }, + { + "solution": "d22", + "area": "knowledge", + "title": "Remembering how a character learned something", + "description": "Locate the source of a character's knowledge before deciding whether an apparent gap is a genuine continuity error.", + "recognition": "You believe the character knows a fact but cannot locate the conversation, discovery or inference that supplied it. Checking dialogue repeatedly is slowing revision.", + "cause": "A source may be implied, scattered or removed during an earlier edit. Until you locate it, uncertainty about provenance should not be treated as proof that the knowledge is impossible.\n\nA source scene may establish only part of a fact. Record the extent of what was learned, rather than letting a partial discovery silently become complete understanding later.", + "inspect": [ + "Trace the fact back to its first recorded use", + "Look for a source scene or credible inference", + "Check whether a deleted passage carried the explanation" + ], + "model": "Keep a source beside a knowledge claim. An unknown source is a question to investigate before declaring a contradiction.", + "searchIntents": [ + "how did my character learn this", + "tracking sources of character knowledge", + "cannot remember when character found out", + "who told this character", + "recording discoveries in a novel", + "lost explanation for character knowledge" + ], + "related": [ + "d21", + "d25" + ], + "distinction": "The source of a knowledge claim is missing from your working record; its timing may still be entirely plausible." + }, + { + "solution": "d23", + "area": "knowledge", + "title": "Keeping different viewpoints' knowledge separate", + "description": "Keep viewpoint, character and reader knowledge separate when different people hold different parts of a story.", + "recognition": "A scene works from one perspective but gives another narrator information they do not share. You may be carrying the combined picture instead of each person's partial one.", + "cause": "Multiple viewpoints create overlapping information sets. Reader knowledge, narrator knowledge and character knowledge can differ deliberately, particularly around suspense and dramatic irony.\n\nA reader may recognise the significance of a conversation that its participants misunderstand. Preserve that distinction instead of making dialogue explain information solely because the reader already possesses it.", + "inspect": [ + "Compare what each viewpoint can know at the same moment", + "Mark reader-only information", + "Check dialogue that silently assumes a shared discovery" + ], + "model": "Think in overlapping windows onto the story, not one master list that every narrator can access.", + "searchIntents": [ + "tracking knowledge across multiple POVs", + "different characters know different things", + "multi POV information management", + "reader knows more than character", + "dramatic irony continuity", + "keeping narrator knowledge separate" + ], + "related": [ + "d12", + "d21" + ], + "distinction": "Information differs between perspectives, rather than the distribution of viewpoint chapters being the concern." + }, + { + "solution": "d24", + "area": "knowledge", + "title": "Putting discoveries and revelations in a workable order", + "description": "Trace the prerequisites and consequences of discoveries when clues and revelations arrive in an unworkable sequence.", + "recognition": "A discovery assumes an earlier clue that now arrives later, or a revelation answers a question the draft has not yet raised. Reordered scenes can leave the information sequence tangled.", + "cause": "Reading order and learning order have dependencies of their own. A later-written explanation can move safely only if its prerequisites and consequences move with it.\n\nA clue can appear before its meaning becomes understandable. That is different from a decision requiring an interpretation that neither the character nor the reader has yet been able to make.", + "inspect": [ + "Identify what each revelation requires the reader to understand", + "Trace which later decisions depend on it", + "Compare the chain before and after scene moves" + ], + "model": "Map prerequisites and consequences around each discovery before choosing where to place it.", + "searchIntents": [ + "revelations in the wrong order", + "clues revealed out of sequence", + "organising discoveries in a mystery", + "reordering information in a novel", + "reveal depends on a later clue", + "plot information sequence does not work" + ], + "related": [ + "d26", + "d30" + ], + "distinction": "Dependencies between pieces of information are out of sequence; early versus late dramatic effect is a different judgement." + }, + { + "solution": "d25", + "area": "knowledge", + "title": "Keeping track of clues and discoveries", + "description": "Organise clues, observers, interpretations and unresolved leads so a mystery's evidence remains traceable through revision.", + "recognition": "You remember the solution but not which clues have appeared, who noticed them or which leads remain unresolved. A reread becomes an attempt to rebuild your investigation notes.", + "cause": "Clues can function as objects, observations, interpretations and later corrections. Tracking only the final answer loses the changing meaning of the evidence along the way.\n\nThe same clue may support an early mistaken theory and a later explanation. Retaining both interpretations helps you inspect the investigation without judging the early scene by the final answer alone.", + "inspect": [ + "Record each clue's first appearance and observers", + "Link interpretations to the evidence available then", + "Mark leads that are resolved, transformed or deliberately left open" + ], + "model": "Track the history of the evidence, not just whether it ultimately points to the answer.", + "searchIntents": [ + "how to track clues in a mystery", + "organising discoveries in a novel", + "keeping track of red herrings", + "clue tracking for writers", + "forgotten evidence in a plot", + "who has found which clues" + ], + "related": [ + "d06", + "d22" + ], + "distinction": "The body of evidence and its changing interpretations are hard to manage, rather than one fact's source being the only uncertainty." + }, + { + "solution": "d26", + "area": "knowledge", + "title": "Deciding whether a reveal comes too early or too late", + "description": "Consider reveal timing through the questions and consequences it creates, rather than a fixed point in the manuscript.", + "recognition": "The explanation is prepared and understandable, but its position may drain anticipation or prolong uncertainty beyond the effect you want. The issue is how the reading experience changes around it.", + "cause": "A reveal changes the questions available to the reader. Delaying it can sustain curiosity, but may also postpone the consequences that make the next part of the story interesting.\n\nAn early answer can create a stronger new uncertainty; a late answer can leave too little room for its consequences. Compare what the reveal enables as well as what it resolves.", + "inspect": [ + "Compare the live questions before and after the reveal", + "Check what delay adds beyond withholding an answer", + "Try the effect of moving its consequences as well as its explanation" + ], + "model": "Choose reveal timing by the experience it creates, not by a fixed percentage of the manuscript.", + "searchIntents": [ + "when should I reveal the secret", + "plot twist comes too early", + "reveal comes too late in novel", + "pacing a mystery revelation", + "how long to withhold information", + "reader gets answer before the climax" + ], + "related": [ + "d24", + "d06" + ], + "distinction": "The dramatic timing of a supported reveal is uncertain; missing preparation or broken information dependencies need other checks." + }, + { + "solution": "d27", + "area": "time", + "title": "When the dates in a fictional timeline contradict each other", + "description": "Compare dates and relative time references in story-world chronology, keeping nonlinear reading order separate from contradiction.", + "recognition": "Two scenes each seem clear until you put their dates together. An event may precede its cause, or different references may place the same occasion on incompatible days.", + "cause": "Local time references can survive after the wider schedule changes. Nonlinear narration is not itself a contradiction: compare when events happen before judging the order in which they are told.\n\nIf a scene says an event happened yesterday, check which date that statement is anchored to. Moving the scene can change the claim even when no explicit date appears in its prose.", + "inspect": [ + "Place the disputed events on one chronological sequence", + "Compare explicit dates with relative time references", + "Check which statement is intended to be reliable" + ], + "model": "Separate event time from presentation order, then test whether the event-time claims can coexist.", + "searchIntents": [ + "timeline in my novel does not make sense", + "dates contradict in my story", + "fictional chronology errors", + "checking a novel timeline", + "events happen before their cause", + "inconsistent dates between chapters" + ], + "related": [ + "d28", + "d30" + ], + "distinction": "The time claims conflict with one another; a consistent schedule can still allow too little time for an activity." + }, + { + "solution": "d28", + "area": "time", + "title": "Checking whether enough time passes between events", + "description": "Check whether travel, recovery and other activities fit the elapsed interval between scenes, even when the stated dates agree.", + "recognition": "The dates may agree, yet a journey, recovery or sequence of tasks seems squeezed into an interval that cannot support it. The problem is the available span, not necessarily the calendar labels.", + "cause": "Durations are easy to imply loosely while drafting. Later edits can shorten a gap without changing everything the characters are expected to accomplish inside it.\n\nA day containing several individually plausible activities may still be overfilled once travel and waiting are included. Inspect the combined interval rather than validating each activity in isolation.", + "inspect": [ + "Identify the start and end of the disputed interval", + "List activities that must fit within it", + "Distinguish elapsed time from time spent on the page" + ], + "model": "Treat an interval as a budget of time, allowing uncertainty where the manuscript does not make an exact claim.", + "searchIntents": [ + "not enough time between scenes", + "elapsed time in my novel does not work", + "journey takes too little time", + "tracking duration in fiction", + "too much happens in one day", + "checking travel and recovery time" + ], + "related": [ + "d27", + "d38" + ], + "distinction": "An activity does not fit its allotted interval, even if all stated dates are mutually consistent." + }, + { + "solution": "d29", + "area": "time", + "title": "When a character's age disagrees with the dates", + "description": "Check fictional ages against birth dates, story dates and reference scenes, especially when characters continue across books.", + "recognition": "A birthday, remembered childhood event or later-book age does not fit the calendar you have established. Both individual statements may have seemed harmless when written separately.", + "cause": "Ages often mix exact dates, rounded descriptions and elapsed years. The comparison needs a reference date; an age recorded without one can drift as the fictional calendar advances.\n\nTwo age claims can both be correct if a birthday falls between them. Establish the relevant story positions before changing either statement to make the numbers look identical.", + "inspect": [ + "Anchor the age claim to a particular scene date", + "Compare birth dates and intervening birthdays", + "Check whether remembered ages are precise or approximate" + ], + "model": "An age is a time-dependent fact. Keep the reference point beside the number rather than treating it as permanent.", + "searchIntents": [ + "character age does not match timeline", + "calculating ages in a novel", + "inconsistent birthdays in fiction", + "character too young for backstory", + "tracking ages across a series", + "birth dates and story dates conflict" + ], + "related": [ + "d13", + "d27" + ], + "distinction": "A time-dependent character fact needs arithmetic against a reference date, rather than a general profile discrepancy." + }, + { + "solution": "d30", + "area": "time", + "title": "Managing reading order and chronological order", + "description": "Maintain both manuscript order and event chronology when planning flashbacks, parallel timelines or other nonlinear structures.", + "recognition": "You know when events happened but keep losing track of where readers encounter them. Flashbacks or parallel sequences make one linear outline do two incompatible jobs.", + "cause": "A nonlinear book has at least two useful sequences: events in the story world and information as presented to the reader. Their difference can be the design, not an error to remove.\n\nA flashback can be clear in calendar terms but confusing as an information transition. Check both the event's place in history and the reason the reader encounters it at this point.", + "inspect": [ + "Maintain a chronological reference beside manuscript order", + "Mark transitions that need reorientation", + "Check what each return assumes the reader already understands" + ], + "model": "Keep two maps with different purposes. Chronology checks possibility; reading order shapes experience.", + "searchIntents": [ + "writing a nonlinear timeline", + "story order versus chronological order", + "organising flashbacks in a novel", + "tracking narrative order", + "parallel timelines in fiction", + "how to outline a non chronological book" + ], + "related": [ + "d27", + "d24" + ], + "distinction": "The two orders differ intentionally or structurally; difference alone is not a contradictory timeline." + }, + { + "solution": "d31", + "area": "time", + "title": "Keeping simultaneous events straight", + "description": "Align simultaneous fictional events and inspect their implications for shared people, places, resources and communication.", + "recognition": "Several people are active during the same interval and you cannot easily tell what each could witness, interrupt or respond to. Separate chapter sequences hide their overlap.", + "cause": "Parallel action is often drafted one strand at a time. Local sequences can be sound while the shared schedule remains unclear, especially when information or travel connects them.\n\nTwo scenes can overlap without showing their events minute by minute. What needs checking is whether a shared participant, message or resource can connect them in the way the draft requires.", + "inspect": [ + "Align the start and end of parallel activities", + "Check who can communicate during the overlap", + "Identify actions that require the same person or resource simultaneously" + ], + "model": "Compare overlapping spans, not just a list of timestamps. The overlap often determines which consequences are possible.", + "searchIntents": [ + "tracking simultaneous events in a novel", + "parallel action timeline", + "characters in two places at once", + "coordinating events across viewpoints", + "overlapping scenes in fiction", + "what happens at the same time in my plot" + ], + "related": [ + "d14", + "d28" + ], + "distinction": "Overlapping activities need coordination across people and places, rather than a single interval being too short." + }, + { + "solution": "d32", + "area": "time", + "title": "Fitting fictional events around fixed real dates", + "description": "Plan fictional intervals around reliable real-world date anchors while keeping uncertainty in research visible.", + "recognition": "Your invented sequence has to work around a documented event, festival, journey or deadline whose date cannot simply move with the draft.", + "cause": "Fixed anchors reduce the freedom elsewhere in the schedule. Research notes may also mix confirmed dates with provisional assumptions, making every entry seem equally immovable.\n\nIf an external date is provisional, label it as such before rebuilding the whole fictional schedule around it. Source confidence and creative flexibility belong in the same working view.", + "inspect": [ + "Mark which anchors are genuinely fixed", + "Trace the intervals required between them", + "Keep sources and uncertainty beside researched dates" + ], + "model": "Build around the reliable anchors while leaving the invented material as flexible as the intended story allows.", + "searchIntents": [ + "historical novel timeline planning", + "fiction around real historical dates", + "matching a story to a calendar", + "fixed dates in a fictional timeline", + "research dates conflict with plot", + "planning events around a real deadline" + ], + "related": [ + "d27", + "d28" + ], + "distinction": "External date anchors constrain the invented sequence; distinguish researched certainty from your own movable choices." + }, + { + "solution": "d33", + "area": "structure", + "title": "Seeing the structure when there are too many scenes", + "description": "Build a usable chapter-and-scene overview before deciding that a large manuscript needs cuts or a new order.", + "recognition": "You can work on individual scenes but cannot readily see the arrangement of the whole manuscript. Finding the passage you need may take longer than deciding what to change.", + "cause": "A growing manuscript outstrips the detail view you use to draft it. This is an overview problem before it is evidence that scenes are unnecessary or badly ordered.\n\nA one-line summary can help compare many scenes, but an overlong summary recreates the original overload. Keep the overview focused on the decision you are trying to make.", + "inspect": [ + "Group scenes by chapter or sequence", + "Compare short summaries at a consistent level of detail", + "Mark sections whose purpose is obscured by the volume of material" + ], + "model": "Change the scale of the view before changing the story. An overview can reveal choices that prose-level rereading hides.", + "searchIntents": [ + "too many scenes to organise", + "how to see novel structure", + "organising a long manuscript", + "scene overview for a novel", + "lost in my own draft", + "mapping chapters and scenes" + ], + "related": [ + "d34", + "d36" + ], + "distinction": "The arrangement is hard to see at all; uncertainty about one scene's position is a more local problem." + }, + { + "solution": "d34", + "area": "structure", + "title": "Deciding where a scene belongs", + "description": "Find a workable position for a scene by comparing its prerequisites, consequences and transitions into neighbouring material.", + "recognition": "The scene has a purpose, but several possible positions seem plausible. Moving it changes what readers know, what characters can do and how the surrounding sequence flows.", + "cause": "Placement depends on more than subject matter. A scene can connect thematically with one passage while requiring information or consequences supplied somewhere else.\n\nA scene may fit early in terms of chronology but work later as a revelation. Check which kind of order you are choosing before treating one possible placement as inevitable.", + "inspect": [ + "List the scene's prerequisites", + "Identify the first later moment that needs its consequences", + "Compare the transition into and out of each candidate position" + ], + "model": "Look for a workable window between what the scene requires and what requires the scene.", + "searchIntents": [ + "where should this scene go", + "moving a scene in a novel", + "finding the right scene order", + "scene placement in a manuscript", + "reordering chapters without breaking plot", + "how to position a flashback scene" + ], + "related": [ + "d33", + "d05" + ], + "distinction": "A scene's position is uncertain even though its contribution may be clear." + }, + { + "solution": "d35", + "area": "structure", + "title": "When chapter structure feels uneven", + "description": "Inspect chapter boundaries and the work inside each chapter, allowing intentional variation in length and rhythm.", + "recognition": "Some chapters contain several turns while others stop before anything seems to settle. You may be unsure whether the differences create rhythm or accidental fragmentation.", + "cause": "Chapters can vary deliberately in length and scope. The useful comparison concerns the experience of each boundary: what closes, what opens and what carries the reader onwards.\n\nA very short chapter can create emphasis or a pause. Its value depends on the surrounding experience, rather than whether it matches the average length of the other chapters.", + "inspect": [ + "Compare the work done inside chapters of different lengths", + "Check the question left by each ending", + "Look for breaks that interrupt an otherwise continuous unit" + ], + "model": "Treat chapter boundaries as part of the reading rhythm, not a requirement to divide the manuscript into equal portions.", + "searchIntents": [ + "chapters feel unbalanced", + "some chapters too long others short", + "where to end a chapter", + "uneven chapter structure", + "chapter lengths in a novel", + "organising scenes into chapters" + ], + "related": [ + "d34", + "d44" + ], + "distinction": "The grouping and boundaries of chapters need inspection; overall reading speed can vary for other reasons." + }, + { + "solution": "d36", + "area": "structure", + "title": "When several scenes repeat the same work", + "description": "Compare similar scenes for new consequences, changed stakes and purposeful variation before deciding whether repetition is redundant.", + "recognition": "The reader receives another version of information, conflict or reassurance they already have. Each scene may have a purpose individually, yet the sequence seems to stand still.", + "cause": "Scenes often accumulate while you search for the best way to express a turn. Repetition can create emphasis or variation, but can also preserve several draft solutions to the same need.\n\nTwo scenes can discuss the same problem while doing different work if a decision changes between them. Conversely, different settings can conceal several scenes that merely restate the same position.", + "inspect": [ + "Compare the state before and after each similar scene", + "Identify what is genuinely new in the repetition", + "Test which consequences survive if one instance is removed" + ], + "model": "Judge repetition by what develops between instances, not by whether their subject matter happens to match.", + "searchIntents": [ + "repetitive scenes in my novel", + "scenes doing the same job", + "how to find redundant scenes", + "repeating information in fiction", + "should I cut a similar scene", + "novel scenes feel repetitive" + ], + "related": [ + "d05", + "d43" + ], + "distinction": "Several scenes make overlapping contributions; the purpose of each may be clear while their combined effect is repetitive." + }, + { + "solution": "d37", + "area": "revision", + "title": "Trying structural changes without losing the current version", + "description": "Test a proposed structural change against a preserved baseline so uncertainty about the idea does not become fear of losing the draft.", + "recognition": "You have an idea for a different order but hesitate because you may not be able to recover the arrangement you already understand. Experimenting feels more expensive than thinking about it.", + "cause": "A proposal and an established draft need different levels of commitment. If every experiment overwrites the working order, uncertainty about the change becomes uncertainty about recovery too.\n\nChoose a small experiment with a clear question, such as moving a discovery before a confrontation. That makes the result easier to evaluate than an unnamed rearrangement of many unrelated scenes.", + "inspect": [ + "State the question the experiment should answer", + "Preserve a recognisable baseline", + "Compare the effects of the proposed move before committing to it" + ], + "model": "An experiment is a question you can inspect, not a promise to adopt the alternative.", + "searchIntents": [ + "afraid to rearrange my novel", + "trying a new scene order safely", + "experimenting with novel structure", + "keeping original draft while reordering", + "testing chapter changes", + "how to restructure without losing my place" + ], + "related": [ + "d49", + "d34" + ], + "distinction": "The barrier is safely trying a proposed change, rather than deciding between several already-developed alternatives." + }, + { + "solution": "d38", + "area": "world", + "title": "Checking whether character movement is possible", + "description": "Check character travel against established positions, available routes and elapsed time, distinguishing missing transitions from impossibility.", + "recognition": "You know the departure and arrival, but the path between them does not seem to fit. A person may travel too quickly, cross an unavailable route or appear without a plausible arrival.", + "cause": "Movement depends on time, route, access and starting position together. A missing transition in the record is different from a journey that remains impossible after those facts are known.\n\nA later arrival might require access to a route the character has not yet obtained. The relevant constraint may be opportunity or permission rather than distance alone.", + "inspect": [ + "Confirm the last reliable departure and next arrival", + "Compare the route and travel conditions", + "Check what else occupies the same interval" + ], + "model": "Treat movement as a connection between established states, then ask what that connection requires.", + "searchIntents": [ + "character travel does not make sense", + "impossible movement in a novel", + "tracking journeys between scenes", + "character appears somewhere too quickly", + "travel continuity in fiction", + "checking routes and elapsed time" + ], + "related": [ + "d14", + "d28" + ], + "distinction": "A known movement must be possible given its route and interval; uncertain whereabouts should be resolved first." + }, + { + "solution": "d39", + "area": "world", + "title": "When a fictional place changes unintentionally", + "description": "Reconcile setting descriptions and stable physical features while allowing differences of viewpoint, weather and change over time.", + "recognition": "A room, street or building no longer seems to match an earlier description. You may be relying on several mental versions of the setting while writing different scenes.", + "cause": "Descriptions can change with viewpoint, weather and renovation, but the underlying layout or established features may also drift between drafts. Compare what is actually claimed before treating variation as a contradiction.\n\nA building can feel unfamiliar to a returning character without having changed its layout. Decide whether the discrepancy concerns experience, description or a physical fact that other scenes depend on.", + "inspect": [ + "Locate descriptions that appear incompatible", + "Separate physical features from impressions", + "Check which scenes depend on the disputed layout" + ], + "model": "Use an agreed reference for stable features while leaving room for the place to be experienced differently.", + "searchIntents": [ + "location details change in my novel", + "inconsistent setting descriptions", + "tracking fictional places", + "room layout continuity in fiction", + "keeping a story location consistent", + "setting changes between chapters" + ], + "related": [ + "d38", + "d42" + ], + "distinction": "The established place itself appears inconsistent, rather than a journey through it being implausible." + }, + { + "solution": "d40", + "area": "world", + "title": "Losing track of an important object", + "description": "Trace an important object's last reliable location or holder and mark the gaps between its recorded appearances.", + "recognition": "The object reappears and you cannot immediately say where it was left or who last had it. You may remember its purpose better than its route through the manuscript.", + "cause": "Possession, location and state are different records. An object can stay in the same place while changing hands, or remain with one person while travelling across several scenes.\n\nAn object mentioned in a conversation is not necessarily present in the room. Keep references to the item distinct from evidence about where it physically is.", + "inspect": [ + "Find the last confirmed holder or location", + "Trace intervening handovers and moves", + "Mark gaps where its position is inferred rather than recorded" + ], + "model": "Keep a chain of custody or position, with uncertainty visible, instead of treating the latest mention as a complete history.", + "searchIntents": [ + "where is an object in my story", + "tracking important objects in a novel", + "lost track of a clue", + "object location continuity", + "following an item between scenes", + "who last had this object" + ], + "related": [ + "d41", + "d42" + ], + "distinction": "The object's last reliable position or holder is uncertain, rather than a known history contradicting itself." + }, + { + "solution": "d41", + "area": "world", + "title": "When the wrong character has an object", + "description": "Check possession and handovers when a character produces an item they have not been shown acquiring.", + "recognition": "A character uses or produces an item, but the last established holder was somebody else. The scene may need a handover, an opportunity to acquire it or a different interpretation of ownership.", + "cause": "Knowing that an object exists does not give a character access to it. Revision can preserve the use while removing the transfer that once made it possible.\n\nAn exchange need not always be shown directly, but the surrounding circumstances must allow it. Identify the opportunity before deciding whether an extra handover scene would add anything useful.", + "inspect": [ + "Find the last confirmed holder before the use", + "Check exchanges and access opportunities between them", + "Distinguish possession from ownership or knowledge of its location" + ], + "model": "Follow access to the object as carefully as its physical position.", + "searchIntents": [ + "wrong character has an object", + "missing handover in a novel", + "object possession continuity", + "character uses a weapon they do not have", + "tracking who holds a clue", + "how did character get this item" + ], + "related": [ + "d40", + "d21" + ], + "distinction": "A particular person's access to an object is unsupported, rather than its general whereabouts being unknown." + }, + { + "solution": "d42", + "area": "world", + "title": "When an object's recorded history contradicts itself", + "description": "Follow recorded object states through story time and check later uses against changes such as loss, opening or destruction.", + "recognition": "An item is intact after being destroyed, unopened after its contents were read, or described in incompatible states. The issue may only become apparent when distant scenes are compared.", + "cause": "An object has a history as well as a location. Changes to the sequence can separate a state-changing event from the later scenes that rely on it.\n\nA report that an object was destroyed can be mistaken. Compare the reliability of that report with later physical evidence before deciding that the item itself has changed inconsistently.", + "inspect": [ + "Arrange explicit state changes in story time", + "Check later uses against the latest supported state", + "Separate uncertain reports from physical changes" + ], + "model": "Treat each state change as something later scenes inherit until another supported change occurs.", + "searchIntents": [ + "object continuity errors in a novel", + "destroyed object reappears", + "tracking the state of story objects", + "clue history contradicts itself", + "item changes between scenes", + "keeping an object timeline consistent" + ], + "related": [ + "d40", + "d39" + ], + "distinction": "The recorded sequence of object states conflicts; a missing location alone is not the same problem." + }, + { + "solution": "d43", + "area": "revision", + "title": "When a story feels busy but stops progressing", + "description": "Inspect lasting changes in situation, knowledge and choices when a story contains activity but little intended progression.", + "recognition": "The draft contains activity and conversation, yet the situation at the end of a stretch resembles the situation at its beginning. You may want development that the sequence is not delivering.", + "cause": "Progress can involve knowledge, commitment, relationships or options rather than overt action. Quiet passages can move a story, while eventful ones can repeatedly restore the starting position.\n\nA pause can deepen the meaning of a choice without changing external circumstances. Look for that contribution before equating reflective writing with a story that has stopped developing.", + "inspect": [ + "Compare the situation at the ends of the stretch", + "Track decisions or discoveries that remain consequential", + "Look for actions whose effects are immediately cancelled" + ], + "model": "Ask what has changed and stayed changed, rather than how fast the passage reads.", + "searchIntents": [ + "my story stops moving", + "novel has no progression", + "busy plot but nothing changes", + "story feels static in the middle", + "how to tell if a story is developing", + "scenes happen without progress" + ], + "related": [ + "d44", + "d45" + ], + "distinction": "The amount of lasting change is too small for your intention; speed and pressure are separate dimensions." + }, + { + "solution": "d44", + "area": "revision", + "title": "When parts of a novel rush and others drag", + "description": "Compare rushing and dragging passages through reading rhythm, scene density and the amount of development being processed.", + "recognition": "You move through one passage quickly but feel held in another much longer than its work seems to require. The contrast may disrupt the rhythm you want across the book.", + "cause": "Reading pace depends on scene length, density, explanation, pauses and the kinds of change being processed. Deliberate variation gives a book rhythm; uniform speed is not the aim.\n\nA fast passage may summarise events while a slow one explores a single decision. The contrast becomes a concern when it undermines the attention or emphasis you intend.", + "inspect": [ + "Compare passages doing similar amounts of story work", + "Locate stretches of repeated explanation or compressed turning points", + "Check transitions between fast and reflective sequences" + ], + "model": "Think of pace as the reader's experience of time and attention, not simply the quantity of events.", + "searchIntents": [ + "pacing is uneven in my novel", + "story rushes then drags", + "middle of novel feels slow", + "how to check novel pacing", + "scenes move too quickly", + "balancing action and quieter passages" + ], + "related": [ + "d43", + "d45" + ], + "distinction": "The experience of speed varies awkwardly; that can happen even when progression and tension are working." + }, + { + "solution": "d45", + "area": "revision", + "title": "When tension rises and falls in the wrong places", + "description": "Review the shape of uncertainty and pressure across scenes, separately from pace, action and reveal timing.", + "recognition": "The draft becomes easy to put down where you want uncertainty to remain active, or stays at high pressure so long that important peaks lose distinction.", + "cause": "Tension comes from unresolved possibilities and their significance. Action may raise it, but a quiet conversation can carry more pressure than a chase if the outcome matters more.\n\nA low-pressure passage can prepare the reader to notice the next rise. Judge its place in the sequence rather than assuming that the strongest version of a story maintains maximum tension.", + "inspect": [ + "Track the question or risk sustaining each sequence", + "Compare pressure before and after major disclosures", + "Inspect recovery passages and repeated peaks for their intended effect" + ], + "model": "Draw the shape of pressure separately from the speed of events. Neither has to climb continuously.", + "searchIntents": [ + "tension is uneven in my novel", + "story loses tension in the middle", + "too much constant tension", + "tracking suspense across scenes", + "where should tension peak", + "quiet scenes with tension" + ], + "related": [ + "d44", + "d26" + ], + "distinction": "The pattern of uncertainty and pressure needs inspection, rather than reading speed or activity alone." + }, + { + "solution": "d46", + "area": "people", + "title": "When a character's development goes flat", + "description": "Trace a character's responses and choices over time, distinguishing intended stability from development that the draft does not support.", + "recognition": "The character encounters new situations but responds from much the same position for a long stretch. If you intended development, their later choices may feel insufficiently connected to experience.", + "cause": "Some characters are deliberately stable, and some changes are withheld until their meaning becomes clear. The concern is whether the recorded experiences support the development you actually intend.\n\nA character may become more committed to an existing belief rather than abandon it. Compare the cost and context of that commitment before deciding that no development has occurred.", + "inspect": [ + "Compare responses to similar pressures at different points", + "Trace experiences that alter belief or commitment", + "Check whether later choices retain consequences of earlier learning" + ], + "model": "Look for a changing relationship between experience and choice, not a requirement that every protagonist become a different person.", + "searchIntents": [ + "character arc stops developing", + "static character arc in a novel", + "protagonist does not change", + "how to track character growth", + "character development goes flat", + "deliberately unchanging character or weak arc" + ], + "related": [ + "d47", + "d18" + ], + "distinction": "One person's responses and choices show too little intended development across time; stability can still be purposeful." + }, + { + "solution": "d47", + "area": "revision", + "title": "When too much development is left for the ending", + "description": "Inspect the earlier experiences supporting late changes in belief, loyalty or understanding when an ending feels development-heavy.", + "recognition": "Late chapters must carry several shifts in belief, loyalty or understanding at once. The destination may be clear while the earlier manuscript offers too little experience to support it.", + "cause": "An ending can rightly concentrate consequences. It feels compressed when necessary development has been postponed, especially if revision strengthened the final turn without revisiting its preparation.\n\nThe ending may reveal a change that has been happening quietly for chapters. Check for those earlier traces before moving the final decision or adding explanatory scenes near the climax.", + "inspect": [ + "List the changes the ending asks the reader to accept", + "Locate earlier experiences supporting each one", + "Separate a late revelation of change from change that only happens late" + ], + "model": "Distinguish the moment change becomes visible from the experiences that make it possible.", + "searchIntents": [ + "too much happens at the end of my novel", + "character development rushed in ending", + "back loaded character arc", + "ending has too many changes", + "preparing a character transformation", + "climax feels emotionally unearned" + ], + "related": [ + "d46", + "d17" + ], + "distinction": "Necessary development is concentrated late, rather than being flat throughout or one relationship transition being rushed." + }, + { + "solution": "d48", + "area": "revision", + "title": "Following the consequences of a manuscript change", + "description": "Trace manuscript dependencies around an edit, including the earlier preparation and later consequences affected by the chosen change.", + "recognition": "A small revision seems to unsettle facts, timing or motivations elsewhere. You hesitate to edit because you cannot see the full extent of the dependencies.", + "cause": "A manuscript contains many kinds of dependency. Moving a discovery, removing a scene or changing a detail can affect passages that no longer sit nearby on the page.\n\nChanging the source of one discovery may alter what several later conversations can assume. Reviewing that specific chain is usually more informative than restarting an undirected search through the whole book.", + "inspect": [ + "Name exactly what the change alters", + "Trace later passages that rely on the old version", + "Check earlier preparation that may now promise the wrong outcome" + ], + "model": "Review the dependency chain around a change instead of treating every later surprise as a separate failure.", + "searchIntents": [ + "every revision breaks something else", + "tracking consequences of novel edits", + "continuity after changing a scene", + "how to revise a complicated manuscript", + "scene changes affect later chapters", + "managing dependencies in fiction" + ], + "related": [ + "d49", + "d20" + ], + "distinction": "The task is tracing consequences of a chosen edit, rather than comparing competing versions before choosing one." + }, + { + "solution": "d49", + "area": "revision", + "title": "Comparing different versions of the same story", + "description": "Keep competing story arrangements distinct and compare the same turning points before choosing which version to adopt.", + "recognition": "You have more than one plausible arrangement and begin to lose track of which scenes belong to which proposal. A tentative idea can slip into your understanding of the established draft.", + "cause": "Alternatives answer different questions. Without clear boundaries, a scene may be evaluated against consequences that only exist in another version.\n\nGive each alternative a name that describes its purpose, such as delaying a reveal. It becomes easier to compare effects when you can tell the proposal from a vague collection of recent edits.", + "inspect": [ + "Name the question each version tests", + "Compare the same turning point across alternatives", + "Keep the established arrangement distinct until you choose to adopt a proposal" + ], + "model": "Treat each version as a separate hypothesis about the story, not an unreliable memory of the latest draft.", + "searchIntents": [ + "comparing different story versions", + "keeping alternative novel structures", + "which draft version is the main one", + "testing alternate scene orders", + "managing competing plot ideas", + "how to compare structural revisions" + ], + "related": [ + "d48", + "d37" + ], + "distinction": "Several alternatives need comparison and separation; tracing a committed edit's consequences is a different job." + }, + { + "solution": "d50", + "area": "projects", + "title": "Keeping established facts consistent across a series", + "description": "Verify established series facts against their source books and story positions, allowing details and states to change between volumes.", + "recognition": "A new book sends you back through earlier volumes to check names, promises, ages or rules. You may remember the intended version more clearly than what was actually established.", + "cause": "Each book adds facts and changes to a shared world. Reliable continuity requires knowing both the statement and the point in the series where it applies.\n\nA fact remembered from an early plan may never have reached the published or established draft. Check the actual source before treating the planning note as something later books must preserve.", + "inspect": [ + "Find the source book and scene for disputed facts", + "Distinguish permanent details from time-dependent states", + "Check whether later books revise, explain or contradict the earlier account" + ], + "model": "Build a reference with provenance and story position, not a timeless list that erases change between books.", + "searchIntents": [ + "tracking continuity across a book series", + "series bible for novelists", + "remembering facts from earlier books", + "cross book continuity errors", + "keeping characters consistent across sequels", + "organising a shared story world" + ], + "related": [ + "d51", + "d29" + ], + "distinction": "Established facts across books are difficult to verify; the progress of one unresolved thread is a separate concern." + }, + { + "solution": "d51", + "area": "projects", + "title": "Following a storyline across several books", + "description": "Follow an unresolved storyline's contributions and continuing questions across volumes without requiring every book to resolve it.", + "recognition": "A question introduced in one volume is still active much later, but you struggle to see its intermediate development. Each book may work locally while the longer line becomes hard to judge.", + "cause": "Long-running threads need not resolve within one book. Their earlier contributions can lose visibility when planning is organised by volume rather than by the thread's continuing question.\n\nA volume can develop a series thread by changing its stakes rather than answering its question. Identify that contribution before treating the lack of resolution as a lack of movement.", + "inspect": [ + "Trace introductions, changes and payoffs across volumes", + "Check what each book contributes to the live question", + "Distinguish intentional long-term uncertainty from a forgotten commitment" + ], + "model": "Follow the life of the question across books, including periods when its consequences remain active without a direct appearance.", + "searchIntents": [ + "plot thread spans several books", + "tracking a series long running subplot", + "unresolved storyline across sequels", + "planning multi book arcs", + "keeping a mystery alive across a series", + "when to resolve a series thread" + ], + "related": [ + "d50", + "d02" + ], + "distinction": "The lifespan and development of one thread crosses books; this is more specific than general series fact checking." + }, + { + "solution": "d52", + "area": "projects", + "title": "When the whole novel becomes too much to hold in mind", + "description": "Reduce the memory burden of a complex novel by separating established facts, open decisions and the context needed for each writing task.", + "recognition": "Writing a new passage requires rebuilding so much context that you lose momentum before making a decision. Notes, scenes, characters and unresolved questions compete for attention.", + "cause": "Complexity may be intrinsic to the book, but the working method may demand too much recall. An external reference can reduce retrieval work without simplifying the creative design.\n\nStart with one repeated retrieval problem, such as locating the source of a fact. Improving that route into the manuscript can restore momentum without requiring a complete reorganisation of everything at once.", + "inspect": [ + "Identify the context you repeatedly reconstruct", + "Separate established facts from open decisions", + "Choose one reliable place to begin each kind of check" + ], + "model": "Offload the need to remember everything while keeping the decisions yours. Complexity and confusion do not have to be the same thing.", + "searchIntents": [ + "my novel is too complicated to manage", + "cannot hold my whole story in my head", + "organising notes for a complex novel", + "overwhelmed by manuscript details", + "keeping track of a big writing project", + "how to regain control of a complicated draft" + ], + "related": [ + "d33", + "d50" + ], + "distinction": "The burden spans several kinds of information, rather than one scene arrangement or cross-book fact being the sole obstacle." + } + ] +} diff --git a/PlotLine/Controllers/SitemapController.cs b/PlotLine/Controllers/SitemapController.cs index 60d132a0..db15f90d 100644 --- a/PlotLine/Controllers/SitemapController.cs +++ b/PlotLine/Controllers/SitemapController.cs @@ -8,7 +8,7 @@ using PlotLine.Services; namespace PlotLine.Controllers; [AllowAnonymous] -public sealed class SitemapController(IHelpService help, IConfiguration configuration, PlotLine.Data.IWritingSolverRepository solver) : Controller +public sealed class SitemapController(IHelpService help, IConfiguration configuration, PlotLine.Data.IWritingSolverRepository solver, WritingProblemEditorial? editorial = null) : Controller { [HttpGet("/sitemap.xml")] public async Task Index() @@ -29,6 +29,11 @@ public sealed class SitemapController(IHelpService help, IConfiguration configur if (configuration.GetValue("WritingSolver:EnableIndexing", true)) { urls.Add(new("/writing-problems", "monthly", "0.8")); + if(editorial is not null) + { + urls.Add(new("/writing-problems/browse", "monthly", "0.7")); + urls.AddRange(editorial.Catalog.Areas.Select(a=>new SitemapUrl("/writing-problems/browse/"+a.Id,"monthly","0.6"))); + } urls.AddRange(graph.Solutions.Where(p => p.Active && p.Index).Select(p => new SitemapUrl($"/writing-problems/{p.Slug}", "monthly", "0.7"))); urls.AddRange(graph.Features.Where(p => p.Active && p.Index).Select(p => new SitemapUrl($"/features/{p.Slug}", "monthly", "0.7"))); } diff --git a/PlotLine/Controllers/WritingProblemsController.cs b/PlotLine/Controllers/WritingProblemsController.cs index a68d828d..d182eda2 100644 --- a/PlotLine/Controllers/WritingProblemsController.cs +++ b/PlotLine/Controllers/WritingProblemsController.cs @@ -9,7 +9,7 @@ using PlotLine.Services; namespace PlotLine.Controllers; [AllowAnonymous] -public sealed class WritingProblemsController(IWritingSolverRepository repository, IDataProtectionProvider protection, IConfiguration configuration, WritingSolverResultContext resultContext) : Controller +public sealed class WritingProblemsController(IWritingSolverRepository repository, IDataProtectionProvider protection, IConfiguration configuration, WritingSolverResultContext resultContext, WritingProblemEditorial? editorial = null) : Controller { private readonly ITimeLimitedDataProtector protector = protection.CreateProtector("WritingSolver.history.v1").ToTimeLimitedDataProtector(); private sealed record History(string Version, List Answers); @@ -65,6 +65,17 @@ public sealed class WritingProblemsController(IWritingSolverRepository repositor resultContext.Save(HttpContext, graph, outcome, solution.Slug); return RedirectToAction(nameof(Solution), new { slug = solution.Slug }); } + [HttpGet("/writing-problems/browse")] + [HttpGet("/writing-problems/browse/{problemArea}")] + public async Task Browse(string? problemArea=null) + { + if(editorial is null)return NotFound(); + var group=problemArea is null?null:editorial.Catalog.Areas.FirstOrDefault(a=>a.Id==problemArea); + if(problemArea is not null && group is null)return NotFound(); + var path="/writing-problems/browse"+(group is null?"":"/"+group.Id); + SetSeo(group is null?"Browse writing problems":group.Title+" writing problems",group?.Description??"Explore writing problems by area, with practical ways to recognise and inspect them.",path,true); + return View("Browse",new WritingProblemBrowse(await repository.GetAsync(),editorial.Catalog,group)); + } [HttpGet("/writing-problems/{slug}")] public async Task Solution(string slug) => await Page(slug,false); [HttpGet("/features/{slug}")] @@ -74,7 +85,8 @@ public sealed class WritingProblemsController(IWritingSolverRepository repositor var graph = await repository.GetAsync(); SolverPage? page = feature ? graph.Features.FirstOrDefault(p => p.Active && p.Slug == slug) : graph.Solutions.FirstOrDefault(p => p.Active && p.Slug == slug); if (page is null) return NotFound(); - SetSeo(page.PageTitle,page.Description,$"/{(feature ? "features" : "writing-problems")}/{page.Slug}",page.Index,page.SocialImage); + var article=feature?null:editorial?.Find(page.Id); + SetSeo(article?.Title??page.PageTitle,article?.Description??page.Description,$"/{(feature ? "features" : "writing-problems")}/{page.Slug}",page.Index,page.SocialImage); SolverJourney? journey = null; if (!feature) { diff --git a/PlotLine/Models/WritingSolver/WritingProblemEditorial.cs b/PlotLine/Models/WritingSolver/WritingProblemEditorial.cs new file mode 100644 index 00000000..40665e76 --- /dev/null +++ b/PlotLine/Models/WritingSolver/WritingProblemEditorial.cs @@ -0,0 +1,29 @@ +namespace PlotLine.Models.WritingSolver; + +public sealed class WritingProblemCatalog +{ + public int Version { get; set; } + public List Areas { get; set; } = []; + public List Pages { get; set; } = []; +} +public sealed class WritingProblemArea +{ + public string Id { get; set; } = ""; + public string Title { get; set; } = ""; + public string Description { get; set; } = ""; +} +public sealed class WritingProblemArticle +{ + public string Solution { get; set; } = ""; + public string Area { get; set; } = ""; + public string Title { get; set; } = ""; + public string Description { get; set; } = ""; + public string Recognition { get; set; } = ""; + public string Cause { get; set; } = ""; + public List Inspect { get; set; } = []; + public string Model { get; set; } = ""; + public string Distinction { get; set; } = ""; + public List SearchIntents { get; set; } = []; + public List Related { get; set; } = []; +} +public sealed record WritingProblemBrowse(SolverGraph Graph, WritingProblemCatalog Catalog, WritingProblemArea? Area); diff --git a/PlotLine/Program.cs b/PlotLine/Program.cs index c16e0dc1..5109bec2 100644 --- a/PlotLine/Program.cs +++ b/PlotLine/Program.cs @@ -116,6 +116,7 @@ public class Program builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddSingleton(); + builder.Services.AddSingleton(services => new WritingProblemEditorial(Path.Combine(services.GetRequiredService().ContentRootPath,"Content/WritingSolver/Editorial/pages-v1.json"))); builder.Services.AddSingleton(services => new WritingSolverResults(Path.Combine(services.GetRequiredService().ContentRootPath,"Content/WritingSolver/Presentation/results-v1.json"))); builder.Services.AddScoped(); builder.Services.AddScoped(); diff --git a/PlotLine/Services/WritingProblemEditorial.cs b/PlotLine/Services/WritingProblemEditorial.cs new file mode 100644 index 00000000..7cf81db5 --- /dev/null +++ b/PlotLine/Services/WritingProblemEditorial.cs @@ -0,0 +1,22 @@ +using System.Text.Json; +using PlotLine.Data; +using PlotLine.Models.WritingSolver; +namespace PlotLine.Services; + +// Permanent editorial content only. Never supplies solver weights, choices or routes. +public sealed class WritingProblemEditorial +{ + public WritingProblemCatalog Catalog { get; } + public WritingProblemEditorial(string path) + { + Catalog=JsonSerializer.Deserialize(File.ReadAllText(path),WritingSolverRepository.JsonOptions)??throw new InvalidDataException("Empty writing problem editorial catalogue."); + if(Catalog.Version!=1 || Catalog.Pages.Select(p=>p.Solution).Distinct().Count()!=Catalog.Pages.Count + || Catalog.Areas.Select(a=>a.Id).Distinct().Count()!=Catalog.Areas.Count)throw new InvalidDataException("Invalid editorial catalogue identity."); + foreach(var page in Catalog.Pages) + if(!Catalog.Areas.Any(a=>a.Id==page.Area) || new[]{page.Title,page.Description,page.Recognition,page.Cause,page.Model,page.Distinction}.Any(string.IsNullOrWhiteSpace) + || page.Inspect.Count<3 || page.SearchIntents.Count is <5 or >10 + || page.Related.Count>3 || page.Related.Any(id=>id==page.Solution || !Catalog.Pages.Any(p=>p.Solution==id))) + throw new InvalidDataException("Incomplete writing problem article."); + } + public WritingProblemArticle? Find(string solution)=>Catalog.Pages.FirstOrDefault(p=>p.Solution==solution); +} diff --git a/PlotLine/Views/WritingProblems/Browse.cshtml b/PlotLine/Views/WritingProblems/Browse.cshtml new file mode 100644 index 00000000..72320be4 --- /dev/null +++ b/PlotLine/Views/WritingProblems/Browse.cshtml @@ -0,0 +1,26 @@ +@using PlotLine.Models.WritingSolver +@model WritingProblemBrowse +@{ Layout="_PublicLayout"; } +
+ +

@(Model.Area?.Title??"Browse writing problems")

+

@(Model.Area?.Description??"Find a familiar difficulty, understand what may be happening, and choose what to inspect in your manuscript.")

+

Prefer a conversation? Find your way with the Writing Problem Solver →

+ @if(Model.Area is null) + { +
+ @foreach(var area in Model.Catalog.Areas) + {

@area.Title →

@area.Description

} +
+ } + else + { + + } +
diff --git a/PlotLine/Views/WritingProblems/Editorial.cshtml b/PlotLine/Views/WritingProblems/Editorial.cshtml new file mode 100644 index 00000000..e0ce803c --- /dev/null +++ b/PlotLine/Views/WritingProblems/Editorial.cshtml @@ -0,0 +1,6 @@ +@model PlotLine.Models.WritingSolver.WritingProblemArticle +
+

Why this happens

@foreach(var paragraph in Model.Cause.Split("\n\n")) {

@paragraph

}
+

What to look for

    @foreach(var item in Model.Inspect) {
  • @item
  • }
+ +
diff --git a/PlotLine/Views/WritingProblems/Index.cshtml b/PlotLine/Views/WritingProblems/Index.cshtml index 778bdc2d..0815a671 100644 --- a/PlotLine/Views/WritingProblems/Index.cshtml +++ b/PlotLine/Views/WritingProblems/Index.cshtml @@ -78,7 +78,7 @@ Restart } - else {

A few quiet minutes · No sign-up required · Advice you can use straight away

} + else {

Browse writing problems →

A few quiet minutes · No sign-up required · Advice you can use straight away

} @if(Model.Graph.IsDemo) {

Preview journey · This small plot-line demonstration will grow into a curated collection of writing problems.

} diff --git a/PlotLine/Views/WritingProblems/Page.cshtml b/PlotLine/Views/WritingProblems/Page.cshtml index 063a6bd2..5ea55919 100644 --- a/PlotLine/Views/WritingProblems/Page.cshtml +++ b/PlotLine/Views/WritingProblems/Page.cshtml @@ -1,6 +1,7 @@ @using PlotLine.Models.WritingSolver @model SolverPageView @inject PlotLine.Services.WritingSolverResults Results +@inject PlotLine.Services.WritingProblemEditorial Editorial @{ Layout="_PublicLayout"; }
@@ -35,23 +36,24 @@ } var solution=(SolverSolution)Model.Page; - @if(presentation is not null) + var permanent=Editorial.Find(solution.Id); + @if(permanent is not null) { -
More about this writing problem -

@solution.Summary

- @foreach(var paragraph in solution.Content.Split("\n\n")) {

@paragraph

} - @foreach(var link in solution.Features.Where(f=>f.Primary)) - { var feature=Model.Graph.Features.Single(f=>f.Id==link.Feature);

Explore @feature.Title →

} -
- } - @if(solution.Related.Count>0) {

You might also find this useful

} - @foreach(var id in solution.Related) - { - var related=Model.Graph.Solutions.Single(s=>s.Id==id && s.Active); -

@related.PageTitle

+ + @foreach(var link in solution.Features.Where(f=>f.Primary)) + { var feature=Model.Graph.Features.Single(f=>f.Id==link.Feature);

Explore @feature.Title →

} +

Browse this problem area →

} + } - @if(Model.Page.Questions.Count>0) {

Questions this helps answer

    @foreach(var question in Model.Page.Questions) {
  • @question
  • }
} + @if(Model.Page.Questions.Count>0 && (Model.IsFeature || Editorial.Find(Model.Page.Id) is null)) {

Questions this helps answer

    @foreach(var question in Model.Page.Questions) {
  • @question
  • }
} Find a way through your writing problem →
diff --git a/PlotLine/Views/WritingProblems/Result.cshtml b/PlotLine/Views/WritingProblems/Result.cshtml index 5fa44f03..80c65960 100644 --- a/PlotLine/Views/WritingProblems/Result.cshtml +++ b/PlotLine/Views/WritingProblems/Result.cshtml @@ -3,17 +3,25 @@ @model SolverDiagnosticPresentation @inject WritingSolverResults Results @inject IHelpService Help -@{ var tool=Model.Capability; var content=Model.Content; var signedIn=User.Identity?.IsAuthenticated==true; var article=content.ArticleKey is null?null:Help.GetByContextKey(content.ArticleKey); } +@inject WritingProblemEditorial Editorial +@{ var tool=Model.Capability; var content=Model.Content; var signedIn=User.Identity?.IsAuthenticated==true; var permanent=Editorial.Find(Model.Solution.Id); var article=content.ArticleKey is null?null:Help.GetByContextKey(content.ArticleKey); }
-

✓ Here’s a useful way forward

+ @if(Model.Evidence.Count>0) {

✓ Here’s a useful way forward

} + else {

Writing problems

}

@Model.Solution.Title

+ @if(Model.Evidence.Count>0 || permanent is null) + {
@foreach(var evidence in Model.Evidence) {

@evidence

}

@content.Explanation

+ } + @if(permanent is not null) {

@permanent.Recognition

} + @if(Model.Evidence.Count>0 && permanent is not null) {

See where to start in PlotDirector →

}
- @if(!string.IsNullOrWhiteSpace(content.Principle)) + @if(permanent is not null) { } + @if(permanent is null && !string.IsNullOrWhiteSpace(content.Principle)) { }

How PlotDirector can help

diff --git a/PlotLine/wwwroot/css/writing-solver.css b/PlotLine/wwwroot/css/writing-solver.css index cea2a453..b000b81f 100644 --- a/PlotLine/wwwroot/css/writing-solver.css +++ b/PlotLine/wwwroot/css/writing-solver.css @@ -1,5 +1,6 @@ /* Public-only refinement; application theme tokens never participate. */ html[data-site-theme="public"] { + --solver-desk-image:url('/images/public/writing-solver-desk.png'); --paper:#fcf3e5; --paper-deep:#f0e2cf; --ink:#30242b; --muted:#71625c; --line:#dfcdb9; --sage:#e8eadc; --gold:#c7ac67; --gold-dark:#7c733d; --plum:#54223f; .public-header { background:#fcf3e5f5; } @@ -9,7 +10,7 @@ html[data-site-theme="public"] { .writer-hero { background:radial-gradient(ellipse at 85% 50%,#eddfca 0,transparent 60%); } .public-links { gap:22px; } #publicMenu { margin-left:38px; } - .solver-space { background-color:var(--paper); background-image:linear-gradient(90deg,transparent,#fcf3e5ed 22%,#fcf3e5f7 50%,#fcf3e5ed 78%,transparent),url('/images/public/writing-solver-desk.png'); background-position:center top; background-size:cover; padding:48px 24px 32px; min-height:760px; } + .solver-space { background-color:var(--paper); background-image:linear-gradient(90deg,transparent,#fcf3e5ed 22%,#fcf3e5f7 50%,#fcf3e5ed 78%,transparent),var(--solver-desk-image); background-position:center top; background-size:cover; padding:48px 24px 32px; min-height:760px; } .solver-content { width:min(930px,100%); margin:auto; } .solver-space--entry .solver-content { width:min(1000px,100%); text-align:center; } .solver-space h1 { font-size:clamp(2.4rem,4.2vw,4rem); margin:12px 0 22px; line-height:1.08; } @@ -53,8 +54,8 @@ html[data-site-theme="public"] { .solver-library { padding-block:30px 55px; }.solver-library>a { margin:10px 30px 10px 0; } .solver-space--article { background-size:auto 900px; background-repeat:no-repeat; } .solver-selection-error { color:#8b293e; } - @media(max-width:1000px) { .solver-space { background-image:linear-gradient(90deg,#fcf3e5aa,#fcf3e5f5 12%,#fcf3e5f5 88%,#fcf3e5aa),url('/images/public/writing-solver-desk.png'); }.solver-choices--areas { grid-template-columns:repeat(2,minmax(0,1fr)); }.public-links { gap:14px; } #publicMenu { margin-left:20px; } } - @media(max-width:600px) { .solver-space { padding:30px 20px; min-height:800px; background-image:linear-gradient(#fcf3e5e8,#fcf3e5 240px),url('/images/public/writing-solver-desk.png'); background-size:auto 300px; background-repeat:no-repeat; }.solver-choices--areas { grid-template-columns:1fr; gap:10px; }.solver-choices--areas .solver-choice { min-height:90px; padding:15px 35px 15px 16px; }.solver-wide { display:none; }.solver-icon { width:38px; min-width:38px; height:38px; }.solver-choices--areas .solver-choice strong { font-size:1.35rem; }.solver-help { font-size:.95rem; }.solver-controls { justify-content:space-between; gap:12px; }.solver-controls .marketing-btn { padding:13px 22px; font-size:1rem; }.solver-promises span { margin:0 6px; }.solver-features { grid-template-columns:1fr; }.solver-features>div:first-child { grid-column:auto; }.solver-content h1 { overflow-wrap:break-word; }.solver-trail span:not(:first-child) { max-width:100%; } } + @media(max-width:1000px) { .solver-space { background-image:linear-gradient(90deg,#fcf3e5aa,#fcf3e5f5 12%,#fcf3e5f5 88%,#fcf3e5aa),var(--solver-desk-image); }.solver-choices--areas { grid-template-columns:repeat(2,minmax(0,1fr)); }.public-links { gap:14px; } #publicMenu { margin-left:20px; } } + @media(max-width:600px) { .solver-space { padding:30px 20px; min-height:800px; background-image:linear-gradient(#fcf3e5e8,#fcf3e5 240px),var(--solver-desk-image); background-size:auto 300px; background-repeat:no-repeat; }.solver-choices--areas { grid-template-columns:1fr; gap:10px; }.solver-choices--areas .solver-choice { min-height:90px; padding:15px 35px 15px 16px; }.solver-wide { display:none; }.solver-icon { width:38px; min-width:38px; height:38px; }.solver-choices--areas .solver-choice strong { font-size:1.35rem; }.solver-help { font-size:.95rem; }.solver-controls { justify-content:space-between; gap:12px; }.solver-controls .marketing-btn { padding:13px 22px; font-size:1rem; }.solver-promises span { margin:0 6px; }.solver-features { grid-template-columns:1fr; }.solver-features>div:first-child { grid-column:auto; }.solver-content h1 { overflow-wrap:break-word; }.solver-trail span:not(:first-child) { max-width:100%; } } @media(prefers-reduced-motion:reduce) { scroll-behavior:auto; .marketing-btn { transition:none; transform:none; } } } html[data-site-theme="public"] main.marketing-shell > .solver-space { max-width:none; width:100%; } @@ -103,3 +104,19 @@ html[data-site-theme="public"] .solver-workspace-picker select { width:100%; pad html[data-site-theme="public"] .solver-image-link { display:block; border-radius:14px; } html[data-site-theme="public"] .solver-image-link:focus-visible { outline:3px solid var(--plum); outline-offset:4px; } html[data-site-theme="public"] .solver-image-link img { display:block; } +/* Permanent resources share the result canvas, with a narrower editorial measure. */ +html[data-site-theme="public"] .solver-recognition { max-width:780px; font-size:1.13rem; line-height:1.65; margin:18px 0; } +html[data-site-theme="public"] .solver-permanent-copy { max-width:780px; line-height:1.7; margin:24px 0 30px; } +html[data-site-theme="public"] :is(.solver-permanent-copy,.solver-related,.solver-browse-areas,.solver-problem-links) h2 { font-size:1.5rem; line-height:1.25; margin:22px 0 12px; } +html[data-site-theme="public"] .solver-permanent-copy li { margin-block:7px; } +html[data-site-theme="public"] .solver-mental-model { border-left:3px solid var(--gold-dark); padding:2px 20px; margin-top:20px; } +html[data-site-theme="public"] .solver-related { max-width:780px; margin-block:30px; } +html[data-site-theme="public"] :is(.solver-related,.solver-problem-links) ul,html[data-site-theme="public"] .solver-problem-links { list-style:none; padding:0; } +html[data-site-theme="public"] :is(.solver-related,.solver-problem-links) li { padding-block:10px; border-bottom:1px solid var(--line); } +html[data-site-theme="public"] .solver-related li p { margin:6px 0; color:var(--muted); line-height:1.6; } +html[data-site-theme="public"] .solver-browse-areas { max-width:780px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 30px; } +@media(max-width:600px) { html[data-site-theme="public"] .solver-browse-areas { grid-template-columns:1fr; } } + +@supports (background-image: image-set(url("/images/public/writing-solver-desk.avif") type("image/avif"))) { + html[data-site-theme="public"] { --solver-desk-image:image-set(url("/images/public/writing-solver-desk.avif") type("image/avif"),url("/images/public/writing-solver-desk.webp") type("image/webp")); } +} diff --git a/PlotLine/wwwroot/images/public/writing-solver-desk.avif b/PlotLine/wwwroot/images/public/writing-solver-desk.avif new file mode 100644 index 00000000..5b2f50f4 Binary files /dev/null and b/PlotLine/wwwroot/images/public/writing-solver-desk.avif differ diff --git a/PlotLine/wwwroot/images/public/writing-solver-desk.webp b/PlotLine/wwwroot/images/public/writing-solver-desk.webp new file mode 100644 index 00000000..1da66348 Binary files /dev/null and b/PlotLine/wwwroot/images/public/writing-solver-desk.webp differ