StyleCategory.h header

#include <ew/app/StyleCategory.h>

Namespace ew::app

Enumerations

enum class StyleCategory { Readability, Passive, CrutchWord, Repetition, Wordiness, Adverb, Cliche }

The kind of writing issue a style rule reports. It groups diagnostics and drives how the editor colours them. New categories are additive; each maps to a stable lowercase token used for identification, configuration, and tests.

Functions

std::optional< StyleCategory > ew::app::styleCategoryFromToken(QStringView token)

Parses a style category from its token; std::nullopt if unrecognized.

QString ew::app::toToken(StyleCategory category)

Returns the stable identification token for category (e.g. "passive").