ManuscriptStatistics.h header

#include <ew/app/ManuscriptStatistics.h>

Namespace ew::app

ManuscriptStatistics struct

struct ew::app::ManuscriptStatistics

Aggregate word and character statistics over all Document objects in a project, computed for the analytics panel. An empty project (no documents) reports all zeros.

Members

int ew::app::ManuscriptStatistics::documentCount = 0

The number of Document objects.

int ew::app::ManuscriptStatistics::totalWords = 0

The total words across all document bodies.

int ew::app::ManuscriptStatistics::totalCharacters = 0

The total characters across all document bodies.

int ew::app::ManuscriptStatistics::longestDocumentWords = 0

The word count of the longest document (0 if there are none).

int ew::app::ManuscriptStatistics::shortestDocumentWords = 0

The word count of the shortest document (0 if there are none).

int ew::app::ManuscriptStatistics::averageDocumentWords = 0

The mean words per document, rounded down (0 if there are none).

int ew::app::ManuscriptStatistics::dialogueWords = 0

Words inside quotation marks (a rough dialogue measure).

int ew::app::ManuscriptStatistics::narrationWords = 0

Words outside quotation marks (narration and everything else).

Functions

ManuscriptStatistics ew::app::manuscriptStatistics(const ew::core::Project &project)

Computes the manuscript statistics for project.