@model PlotLine.Services.Context.ContextNamePanel @{var lib=Model.Library!;var f=lib.Filter;var scope=f.UsedScope=="Book"?lib.Books.FirstOrDefault(b=>b.BookID==f.BookID)?.BookDisplayTitle??"selected book":f.UsedScope=="Library"?"accessible projects":"this project";}

@lib.TotalRows.ToString("N0") candidates · Usage in @scope · Page @f.Page of @lib.TotalPages

@if(!lib.Results.Any()){

No matching library names. Try broader criteria or the established-name lookup.

}
@foreach(var row in lib.Results){
@row.DisplayName@(row.UsedCount>0?$"Already used ({row.UsedCount})":"Unused in scope")

@row.NameType @if(row.IsWordAmbiguous){· Ambiguous word} · @row.LocaleDisplayName

Profile, related forms and usage
Gender prior
Female @row.FemaleWeight?.ToString("0.###") · Male @row.MaleWeight?.ToString("0.###")
Era profile
@(row.BirthYearFrom.HasValue?$"{row.BirthYearFrom}–{row.BirthYearTo}":"No era profile")
Commonness / confidence
@row.UsageWeight?.ToString("0.###") / @row.Confidence?.ToString("0.###")
Reference source
@(row.SourceType??"Not recorded")
Related forms
@(string.IsNullOrWhiteSpace(row.RelatedForms)?"None recorded":row.RelatedForms)
Recorded use
@(string.IsNullOrWhiteSpace(row.UsedSummary)?"No use recorded in this scope":row.UsedSummary)
}