WordinessRule.h header

#include <ew/app/WordinessRule.h>

Namespace ew::app

WordinessRule class

class ew::app::WordinessRule

Flags wordy phrases that have a shorter, plainer equivalent ("in order to" -> "to", "due to the fact that" -> "because") and offers the concise form as the suggested fix, preserving the original phrase's leading capitalization.

Members

ew::app::WordinessRule::WordinessRule()

Constructs the rule with its phrase table and alternation pre-compiled.

QString ew::app::WordinessRule::id() const override

A stable identifier for this rule (e.g. "repeated-word"), used to enable or disable it in a profile and to refer to it in tests.

StyleCategory ew::app::WordinessRule::category() const override

The category of issue this rule reports.

std::vector< StyleDiagnostic > ew::app::WordinessRule::analyze(QStringView text) const override

Returns every issue this rule finds in text, with offsets measured into text.