@inject Microsoft.AspNetCore.Authorization.IAuthorizationService Authorization @using PlotLine.Models.Investigations @using PlotLine.Services.Investigations @model InvestigationPage @{ ViewData["Title"]="Writer · Explore";ViewData["ProjectSection"]="Writer"; var row=Model.Investigation;var state=Model.Evaluation;var question=Model.Catalogue.Questions.SingleOrDefault(q=>q.Id==(string?)ViewData["Question"]);var previous=row?.Answers.LastOrDefault(a=>a.Question==question?.Id); }

Writer · Explore

Work through a story concern

You don't need to know the answer yet. We can work through it one question at a time.

Development preview · This small test catalogue exercises the mechanism. Its suggestions are not production writing guidance. It uses your answers, without AI or manuscript analysis.

@if(row==null){

What's troubling you about your story?

Choose a starting concern @foreach(var concern in Model.Catalogue.Concerns){}
}else if(question!=null){

@row.Answers.Count questions answered · There is no fixed number needed for a useful next step.

@question.Text

@if(question.Help!=""){

@question.Help

}
Your answer@foreach(var option in question.Options){}
@if(question.AllowExplanation){}
@if(row.Answers.LastOrDefault(a=>a.Question!=question.Id) is {} back){Back to an earlier answer}
}else{ var conclusion=InvestigationConclusion.From(Model.Catalogue,state!);

@conclusion.Title

@conclusion.Message

@if(conclusion.Areas.Length>0){

Areas your answers touched on:

    @foreach(var area in conclusion.Areas){
  • @area
  • }
} @if(state!.Recommendations.Count>0){

Tools open in another tab. Your investigation stays here so you can return to it.

} @if(row.Answers.Count>=Model.Catalogue.MaxAnswers&&state.Recommendations.Count==0){

We've reached the question limit for this test. You can still change earlier answers or save and return later.

} @foreach(var id in state.Recommendations){var h=Model.Catalogue.Hypotheses.Single(h=>h.Id==id);

@h.Summary

@h.Reason

@h.Uncertainty

Answers that informed this suggestion:

    @foreach(var evidence in state.Evidence.Where(e=>e.Hypothesis==id&&e.Raw>0&&!e.Uncertain).DistinctBy(e=>e.Question).Take(3)){var q=Model.Catalogue.Questions.Single(q=>q.Id==evidence.Question);
  • @q.Text — @q.Options.Single(o=>o.Id==evidence.Option).Text
  • }
@foreach(var cap in Model.Catalogue.Capabilities.Where(d=>h.Capabilities.Contains(d.Id)&&state.AvailableCapabilities.Contains(d.Id))){

@cap.Description

}
} @if(row.Accepted){

Your response is saved. Return to this investigation whenever you need it.

}
@if(state.Recommendations.Count>0){} @if(row.Answers.Count0){}
}

Return to Explore · Start another investigation

@section Scripts{}