Documentation
¶
Overview ¶
Package editorial checks the words of an issue: subject, preheader, length, links, images, tone and the brief's own phrases. The server runs it on every issue before sending (a floor no newsletter goes below); a newsletter project runs it with its concept, so each issue is also held to its brief. Rules report, they never rewrite.
Index ¶
Constants ¶
View Source
const ( DefaultMaxSubject = 60 MaxPreheader = 90 // characters a preview line shows (lfr:E126) HardMaxSubject = 90 DefaultMaxWords = 3000 )
Defaults when there is no brief.
View Source
const ( SubjectMissing = "subject.missing" SubjectLength = "subject.length" SubjectCaps = "subject.caps" SubjectEmoji = "subject.emoji" SubjectPunctuation = "subject.punctuation" SubjectDeceptive = "subject.deceptive" PreheaderMissing = "preheader.missing" PreheaderLength = "preheader.length" PreheaderRepeat = "preheader.repeat" LengthWords = "length.words" LinksText = "links.text" LinksCount = "links.count" ImagesAlt = "images.alt" ImagesOnly = "images.only" Personalization = "copy.tokens" CopyAvoid = "copy.avoid" CopyUse = "copy.use" CopySpammy = "copy.spammy" CopyShouting = "copy.shouting" StructureHeadings = "structure.headings" StructureReply = "structure.reply" )
Rule IDs.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.