AdverbRule.h header
#include <ew/app/AdverbRule.h>
Namespace ew::app
AdverbRule class
class ew::app::AdverbRule
Flags "-ly" adverbs, which often mark a weak verb that could carry the meaning on its own ("ran quickly" -> "raced"). A stop-list excludes the many "-ly" words that are not adverbs of this kind (family, friendly, only, ...) and the filler adverbs already reported as crutch words. The fix is a rewrite, so no replacement is offered.
Members
ew::app::AdverbRule::AdverbRule()
Constructs the rule with its "-ly" stop-word set.
QString ew::app::AdverbRule::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::AdverbRule::category() const override
The category of issue this rule reports.
std::vector< StyleDiagnostic > ew::app::AdverbRule::analyze(QStringView text) const override
Returns every issue this rule finds in text, with offsets measured into text.