@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); } @if(Model.Catalogue.Synthetic){

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){ }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{ @if(Model.Catalogue.Editorial!=null){ var result=EditorialConclusion.From(Model.Catalogue,state!);

@result.Title

@result.Explanation

@result.Qualification

@if(result.Findings.Count==0){

A practical next step

@result.Action

} @foreach(var finding in result.Findings){

@finding.Title

@finding.Explanation

A practical next step

@finding.Action

Answers that informed this possibility:

    @foreach(var answer in row.Answers.Where(a=>Model.Catalogue.Questions.Single(q=>q.Id==a.Question).Options.Single(o=>o.Id==a.Option).Contributions.Any(v=>v.Hypothesis==finding.Hypothesis&&v.Weight>0)).Take(3)){ var q=Model.Catalogue.Questions.Single(q=>q.Id==answer.Question);
  • @q.Text — @q.Options.Single(o=>o.Id==answer.Option).Text
  • }
@if(state!.Recommendations.Contains(finding.Hypothesis)){ @foreach(var cap in Model.Catalogue.Capabilities.Where(d=>Model.Catalogue.Hypotheses.Single(h=>h.Id==finding.Hypothesis).Capabilities.Contains(d.Id)&&state.AvailableCapabilities.Contains(d.Id))){

@cap.Description

} }
} @if(result.Findings.Count==0){

Your observations so far:

    @foreach(var a in row.Answers.TakeLast(3)){var q=Model.Catalogue.Questions.Single(q=>q.Id==a.Question);
  • @q.Text — @q.Options.Single(o=>o.Id==a.Option).Text
  • }
} }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){

Opening a tool makes this investigation your active guidance for this book. Your other saved investigations are kept.

} @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){}
} @if(row!=null){
}

Return to Explore · Start another investigation @if(row!=null){}