VoiceConsistency.h header

#include <ew/app/VoiceConsistency.h>

Namespace ew::app

Functions

AiRequest ew::app::buildVoiceConsistencyRequest(const QString &passage, const QString &voiceSample)

Builds an AI request that checks whether passage matches the established voice and style of a manuscript, using voiceSample (prose drawn from elsewhere in the manuscript) as the reference. The model is asked to act as a line editor and report specific voice/style inconsistencies – shifts in tone, tense, person, diction, or sentence rhythm – with brief suggestions, or to confirm the voice is consistent; it is told not to rewrite the whole passage. This backs DESIGN §4.8 "maintain style/voice", and is distinct from the canon-fact consistency check (facts) and the rule-based style engine (mechanical issues).

Pure (assembles the prompt only; the reply is advisory prose, so no parse is needed); the caller fills the model from settings and sends it via an AiProvider. The model name is left empty.