*/ public static function categories() { return array( 'handoff' => array( 'label' => __( 'Dangling chat offer', 'ai-slop-checker' ), 'description' => __( 'The assistant offering to do more work. These never survive real editing — their presence means the reply was pasted in whole.', 'ai-slop-checker' ), ), 'self_ref' => array( 'label' => __( 'Assistant self-reference', 'ai-slop-checker' ), 'description' => __( 'The model talking about itself, its training data, or its knowledge cutoff.', 'ai-slop-checker' ), ), 'preamble' => array( 'label' => __( 'Prompt echo / preamble', 'ai-slop-checker' ), 'description' => __( 'Opening acknowledgements and "here is the article you asked for" framing.', 'ai-slop-checker' ), ), 'scaffold' => array( 'label' => __( 'Unfilled scaffolding', 'ai-slop-checker' ), 'description' => __( 'Placeholders, word counts, and meta-notes the model emitted for the requester, not the reader.', 'ai-slop-checker' ), ), 'brief' => array( 'label' => __( 'Published planning notes', 'ai-slop-checker' ), 'description' => __( 'Content-brief material — topic lists, next steps, coverage plans — that was written for whoever builds the page and should never have reached the reader.', 'ai-slop-checker' ), ), 'formatting' => array( 'label' => __( 'Raw markdown leakage', 'ai-slop-checker' ), 'description' => __( 'Markdown syntax that was never converted to HTML, a sign of a straight copy-paste.', 'ai-slop-checker' ), ), 'listicle' => array( 'label' => __( 'Emoji-led formatting', 'ai-slop-checker' ), 'description' => __( 'Emoji used as bullets or section markers. Common in generated listicles, but also a deliberate house style for plenty of writers — weak on its own, whatever the count.', 'ai-slop-checker' ), ), 'thin' => array( 'label' => __( 'Thin list structure', 'ai-slop-checker' ), 'description' => __( 'The page is mostly short bullet lists with little connecting prose. A recognisable shape from older models, which answered by listing rather than explaining.', 'ai-slop-checker' ), ), 'staleness' => array( 'label' => __( 'Knowledge-cutoff language', 'ai-slop-checker' ), 'description' => __( 'Claims pinned to a training cutoff, or "current" facts that are now years old.', 'ai-slop-checker' ), ), 'style' => array( 'label' => __( 'AI house style', 'ai-slop-checker' ), 'description' => __( 'Stock phrasing common in generated prose. Weak on its own; meaningful in bulk.', 'ai-slop-checker' ), ), ); } /** * Categories that constitute proof rather than suspicion. * * Text matching any of these can only have come from a chat reply or an * editorial brief, so a single hit settles the question on its own. The * remaining categories describe style, which never proves anything alone. * * @return array */ public static function hard_categories() { /** * Filter which categories count as hard evidence. * * @param array $categories Category slugs. */ return apply_filters( 'aisc_hard_categories', array( 'handoff', 'self_ref', 'preamble', 'scaffold', 'brief' ) ); } /** * The full pattern catalogue. * * @return array */ public static function all() { $patterns = array_merge( self::handoff(), self::self_ref(), self::preamble(), self::scaffold(), self::brief(), self::formatting(), self::staleness(), self::style() ); /** * Filter the pattern catalogue. * * @param array $patterns Pattern definitions. */ return apply_filters( 'aisc_patterns', $patterns ); } /** * Dangling offers to continue the conversation. The strongest signal there is. * * @return array */ private static function handoff() { return array( array( 'id' => 'would_you_like_me', 'category' => 'handoff', 'weight' => 30, 'regex' => '/\b(would|do)\s+you\s+(like|want)\s+me\s+to\b/iu', 'note' => __( 'The assistant is offering to do more work for the requester.', 'ai-slop-checker' ), ), array( 'id' => 'would_you_like_a', 'category' => 'handoff', 'weight' => 28, // Deliberately narrow: it must be offering a *deliverable*. Bare // "would you like a ..." is ordinary body copy addressed to the // reader ("Would you like a refund?") and must not match. 'regex' => '/\b(would|do)\s+you\s+(like|want)\s+(a|an|another|the)\s+(short(er|ened)?|long(er)?|revised|rewritten|updated|different|expanded|condensed|full|complete|detailed|simpler|more\s+\w+)?\s*(version|draft|rewrite|revision|variation|outline|summary|breakdown|copy|example|table|list|template|snippet|excerpt|paragraph|intro|conclusion)\b/iu', 'note' => __( 'Chat-style offer of another deliverable, addressed to whoever ran the prompt.', 'ai-slop-checker' ), ), array( 'id' => 'let_me_know_if', 'category' => 'handoff', 'weight' => 26, 'regex' => '/\blet\s+me\s+know\s+if\s+you(\'d|\s+would|\s+want|\s+need|\'re)\b/iu', 'note' => __( 'Closing line from a chat reply.', 'ai-slop-checker' ), ), array( 'id' => 'shall_i', 'category' => 'handoff', 'weight' => 22, 'regex' => '/\bshall\s+i\s+(also\s+)?(go|continue|proceed|write|draft|expand|add|create|generate|produce)\b/iu', 'note' => __( 'Assistant asking permission to continue.', 'ai-slop-checker' ), ), array( 'id' => 'i_can_also_if', 'category' => 'handoff', 'weight' => 20, 'regex' => '/\bi\s+can\s+(also\s+)?[a-z\s]{1,40}\s+if\s+you(\'d|\s+would|\s+want|\'re\s+interested)\b/iu', 'note' => __( 'Conditional offer of further output.', 'ai-slop-checker' ), ), array( 'id' => 'happy_to', 'category' => 'handoff', 'weight' => 16, 'regex' => '/\b(i\'m|i\s+am)\s+happy\s+to\s+[a-z\s]{1,30}\s+if\b/iu', 'note' => __( 'Offer of follow-up work.', 'ai-slop-checker' ), ), array( 'id' => 'just_say_the_word', 'category' => 'handoff', 'weight' => 24, 'regex' => '/\bjust\s+(say\s+the\s+word|let\s+me\s+know)\b/iu', 'note' => __( 'Chat sign-off.', 'ai-slop-checker' ), ), array( 'id' => 'more_prompts', 'category' => 'handoff', 'weight' => 30, 'regex' => '/\b(here\s+(are|\'s)\s+)?\d+\s+(more|additional|further|extra)\s+(prompts?|ideas?|examples?|variations?|options?|suggestions?|versions?)\b/iu', 'note' => __( 'The "3 more prompts" tail that gets pasted in with the answer.', 'ai-slop-checker' ), ), array( 'id' => 'want_me_to_continue', 'category' => 'handoff', 'weight' => 30, 'regex' => '/\b(want|need)\s+me\s+to\s+(continue|keep\s+going|expand|elaborate|rewrite|revise|shorten|lengthen)\b/iu', 'note' => __( 'Direct offer to continue generating.', 'ai-slop-checker' ), ), array( 'id' => 'hope_this_helps', 'category' => 'handoff', 'weight' => 18, 'regex' => '/\b(i\s+hope\s+(this|that)\s+helps|hope\s+this\s+helps)\b/iu', 'note' => __( 'Conversational sign-off.', 'ai-slop-checker' ), ), array( 'id' => 'feel_free_to_ask', 'category' => 'handoff', 'weight' => 20, 'regex' => '/\bfeel\s+free\s+to\s+(ask|reach\s+out|let\s+me\s+know)\b/iu', 'note' => __( 'Conversational sign-off addressed to the prompter.', 'ai-slop-checker' ), ), array( 'id' => 'anything_else', 'category' => 'handoff', 'weight' => 22, 'regex' => '/\b(is\s+there\s+)?anything\s+else\s+(you(\'d|\s+would)\s+like|i\s+can\s+help)\b/iu', 'note' => __( 'Chat closing question.', 'ai-slop-checker' ), ), array( 'id' => 'any_changes', 'category' => 'handoff', 'weight' => 28, 'regex' => '/\b(let\s+me\s+know|feel\s+free\s+to\s+ask)\s+if\s+you\s+(need|want|have|require)\s+(any|further|additional|more)?\s*(changes|adjustments|edits|revisions|questions|tweaks|assistance)\b/iu', 'note' => __( 'Revision offer aimed at the requester.', 'ai-slop-checker' ), ), array( 'id' => 'feel_free_to_customize', 'category' => 'handoff', 'weight' => 26, 'regex' => '/\bfeel\s+free\s+to\s+(customize|customise|tailor|tweak|adapt|adjust|modify)\s+(this|it|the\s+above)\b/iu', 'note' => __( 'Handover instruction to the person who ran the prompt.', 'ai-slop-checker' ), ), array( 'id' => 'hope_this_serves', 'category' => 'handoff', 'weight' => 24, 'regex' => '/\bi\s+hope\s+(this|the\s+above)\s+(article|draft|guide|overview|post|piece|summary|version)\s+(serves|helps|meets|suits|works)\b/iu', 'note' => __( 'Sign-off referring to the deliverable.', 'ai-slop-checker' ), ), array( 'id' => 'how_does_this_look', 'category' => 'handoff', 'weight' => 26, 'regex' => '/\b(how\s+does\s+(this|that)\s+(look|sound)|does\s+(this|that)\s+work\s+for\s+you|let\s+me\s+know\s+(your\s+thoughts|what\s+you\s+think|which\s+(one|version|direction)))\b/iu', 'note' => __( 'Asking the requester for feedback.', 'ai-slop-checker' ), ), array( 'id' => 'ive_kept_it', 'category' => 'handoff', 'weight' => 24, 'regex' => '/\bi(\'ve|\s+have)\s+(kept|written|aimed|come\s+in)\s+(it\s+)?(this\s+)?(to\s+|at\s+|under\s+|around\s+)?[\w\s]{0,15}\d[\d,]*\s*(words|characters)\b/iu', 'note' => __( 'Length report addressed to the requester.', 'ai-slop-checker' ), ), ); } /** * The model referring to itself. * * @return array */ private static function self_ref() { return array( array( 'id' => 'as_an_ai', 'category' => 'self_ref', 'weight' => 35, 'regex' => '/\bas\s+an?\s+(ai|artificial\s+intelligence|language)\s*(language\s*)?(model|assistant)?\b/iu', 'note' => __( 'Explicit assistant disclaimer left in the body.', 'ai-slop-checker' ), ), array( 'id' => 'i_am_an_ai', 'category' => 'self_ref', 'weight' => 35, 'regex' => '/\b(i\'m|i\s+am)\s+an?\s+(ai|language\s+model|chatbot|assistant\s+trained)\b/iu', 'note' => __( 'Assistant identifying itself.', 'ai-slop-checker' ), ), array( 'id' => 'no_realtime_access', 'category' => 'self_ref', 'weight' => 32, 'regex' => '/\bi\s+(don\'t|do\s+not|cannot|can\'t)\s+have\s+(access\s+to\s+)?(real[\s-]?time|live|current|up[\s-]to[\s-]date|browsing)\b/iu', 'note' => __( 'Capability disclaimer.', 'ai-slop-checker' ), ), array( 'id' => 'my_training_data', 'category' => 'self_ref', 'weight' => 30, 'regex' => '/\bmy\s+(training\s+data|knowledge\s+base|last\s+(update|training))\b/iu', 'note' => __( 'Reference to the model\'s own training.', 'ai-slop-checker' ), ), array( 'id' => 'cannot_browse', 'category' => 'self_ref', 'weight' => 28, 'regex' => '/\bi\s+(can\'t|cannot|am\s+unable\s+to)\s+(browse|access\s+the\s+internet|search\s+the\s+web)\b/iu', 'note' => __( 'Capability disclaimer.', 'ai-slop-checker' ), ), ); } /** * Opening acknowledgements and delivery framing. * * @return array */ private static function preamble() { return array( array( 'id' => 'certainly_heres', 'category' => 'preamble', 'weight' => 28, 'regex' => '/(^|[\r\n>])\s*(certainly|sure|absolutely|of\s+course|got\s+it)[!,.]\s*(here|below|i\'ll|i\s+will)\b/iu', 'note' => __( 'Assistant acknowledgement opening the reply.', 'ai-slop-checker' ), ), array( 'id' => 'great_question', 'category' => 'preamble', 'weight' => 26, 'regex' => '/\b(great|excellent|good|that\'s\s+a\s+great)\s+question[!.]/iu', 'note' => __( 'Reply addressed to the prompter.', 'ai-slop-checker' ), ), array( 'id' => 'heres_the_article', 'category' => 'preamble', 'weight' => 30, 'regex' => '/\bhere(\'s|\s+is)\s+(a|an|the|your)\s+(draft|revised|rewritten|updated|complete|full|polished|final)?\s*(version\s+of\s+)?(article|blog\s+post|post|piece|write[\s-]?up|essay|copy|text|outline)\b/iu', 'note' => __( 'Delivery framing that belongs in a chat window.', 'ai-slop-checker' ), ), array( 'id' => 'below_is', 'category' => 'preamble', 'weight' => 18, 'regex' => '/(^|[\r\n])\s*below\s+is\s+(a|an|the)\s+[a-z\s]{0,30}(article|post|draft|version|outline|summary)\b/iu', 'note' => __( 'Delivery framing.', 'ai-slop-checker' ), ), array( 'id' => 'as_requested', 'category' => 'preamble', 'weight' => 26, 'regex' => '/\b(as\s+(you\s+)?requested|per\s+your\s+request|as\s+per\s+your\s+instructions)\b/iu', 'note' => __( 'Addressed to whoever wrote the prompt.', 'ai-slop-checker' ), ), array( 'id' => 'ive_written', 'category' => 'preamble', 'weight' => 24, 'regex' => '/\bi(\'ve|\s+have)\s+(written|drafted|created|generated|prepared|put\s+together)\s+(a|an|the|this)\b/iu', 'note' => __( 'Assistant describing its own deliverable.', 'ai-slop-checker' ), ), // Formulaic article openers live in the style category on purpose. // They are a house-style tell, not evidence of a pasted chat reply, // and the verdict logic treats preamble hits as the latter. array( 'id' => 'comprehensive_guide', 'category' => 'style', 'weight' => 8, 'regex' => '/\bin\s+this\s+(comprehensive|detailed|complete|ultimate|in[\s-]depth)\s+(guide|article|post|walkthrough|overview),?\s+(we|you|i)(\'ll|\s+will|\s+shall)?\s*(explore|delve|examine|cover|look|discover|learn|take)\b/iu', 'note' => __( 'Formulaic article opener.', 'ai-slop-checker' ), ), array( 'id' => 'by_the_end', 'category' => 'style', 'weight' => 8, 'regex' => '/\bby\s+the\s+end\s+of\s+this\s+(article|guide|post|piece|section),?\s+you(\'ll|\s+will)\b/iu', 'note' => __( 'Formulaic article opener.', 'ai-slop-checker' ), ), ); } /** * Placeholders and meta-notes. * * @return array */ private static function scaffold() { return array( array( 'id' => 'bracket_placeholder', 'category' => 'scaffold', 'weight' => 26, 'regex' => '/\[\s*(insert|add|your|name|company|brand|topic|keyword|link|url|date|city|product|xx+|placeholder|tbd)[^\]\r\n]{0,60}\]/iu', 'note' => __( 'Unfilled placeholder left in the published text.', 'ai-slop-checker' ), ), array( 'id' => 'word_count_note', 'category' => 'scaffold', 'weight' => 28, 'regex' => '/\b(word\s+count|character\s+count|total\s+words)\s*[:\-–]\s*~?\s*[\d,]+/iu', 'note' => __( 'Word-count report meant for the requester.', 'ai-slop-checker' ), ), array( 'id' => 'note_to_user', 'category' => 'scaffold', 'weight' => 24, 'regex' => '/(^|[\r\n])\s*(note|disclaimer)\s*[:\-–]\s*(this|the\s+above|the\s+following)\s+[a-z\s]{0,40}(generated|written\s+by|created\s+by|ai|assistant)\b/iu', 'note' => __( 'Generation disclaimer aimed at the requester.', 'ai-slop-checker' ), ), array( 'id' => 'seo_meta_block', 'category' => 'scaffold', 'weight' => 26, 'regex' => '/(^|[\r\n])\s*(meta\s+description|seo\s+title|target\s+keywords?|focus\s+keyphrase|slug|tone|word\s+target)\s*[:\-–]/iu', 'note' => __( 'SEO briefing fields pasted in alongside the body copy.', 'ai-slop-checker' ), ), array( 'id' => 'optional_note', 'category' => 'scaffold', 'weight' => 18, 'regex' => '/(^|[\r\n])\s*\(?\s*optional\s*[:\)\-–]/iu', 'note' => __( 'Editorial aside from the draft.', 'ai-slop-checker' ), ), ); } /** * Content-brief material that reached the published page. * * These are deliberately narrow. Sites that write *about* content strategy * discuss topic clusters and search journeys in ordinary prose all the time, * so matching those words mid-sentence would be useless. What gives a brief * away is position: this vocabulary standing alone as a heading, or * introducing a list, rather than appearing inside a sentence. * * @return array */ private static function brief() { return array( array( 'id' => 'brief_heading', 'category' => 'brief', 'weight' => 26, 'regex' => '/(^|[\r\n])\s*#{0,6}\s*\(?\s*(internal\s+expansion|next\s+steps|supporting\s+topics|topics?\s+to\s+cover|content\s+gaps?|expansion\s+ideas|cluster\s+plan|further\s+reading\s+ideas)\s*\(?[^\r\n]{0,30}\)?\s*$/imu', 'note' => __( 'A planning heading left in the published page.', 'ai-slop-checker' ), ), array( 'id' => 'brief_topic_list', 'category' => 'brief', 'weight' => 24, 'regex' => '/\b(supporting|related|adjacent|cluster)\s+topics?\s+(include|to\s+cover|are)\s*[:\-–]/iu', 'note' => __( 'A list of topics to write next, addressed to the site owner.', 'ai-slop-checker' ), ), array( 'id' => 'brief_foundation', 'category' => 'brief', 'weight' => 22, 'regex' => '/\bthis\s+(page|post|article)\s+is\s+the\s+(foundation|basis|hub|pillar)\s+for\b/iu', 'note' => __( 'A note about the page\'s role in a content plan.', 'ai-slop-checker' ), ), array( 'id' => 'brief_maps_to_stage', 'category' => 'brief', 'weight' => 20, 'regex' => '/\b(each\s+one|these|they)\s+maps?\s+to\s+a?\s*(specific\s+)?(stage|step|point)\s+in\s+the\b/iu', 'note' => __( 'Strategy commentary aimed at the planner, not the reader.', 'ai-slop-checker' ), ), array( // "internal linking structure" is ordinary SEO prose, so the // bare phrase cannot match. What marks a brief is the phrase // standing as a heading or introducing a list. 'id' => 'brief_internal_links', 'category' => 'brief', 'weight' => 22, 'regex' => '/(^|[\r\n])[^\p{L}\r\n]{0,4}\s*internal\s+link(s|ing)?\b[^\r\n]{0,25}$|\binternal\s+link(s|ing)?\s*[:(]|\binternal\s+link(ing)?\s+(opportunities|targets|plan)\b|\blink\s+equity\s+plan\b|\banchor\s+text\s+suggestions?\b/imu', 'note' => __( 'Internal-linking notes from a content brief.', 'ai-slop-checker' ), ), // Parenthetical asides addressed to whoever is building the page. // Deliberately restricted to instructions about the content itself — // a recipe saying "(add salt to taste)" must not match. array( 'id' => 'note_keep_remove', 'category' => 'brief', 'weight' => 30, 'regex' => '/\(\s*(keep|leave)\s+(these|this|them|it)\s+(in|here|for\s+now)\s*\)|\(\s*(remove|delete|strip|cut)\s+[^)]{0,20}before\s+(publish|publishing|going\s+live|launch)[^)]{0,10}\)/iu', 'note' => __( 'A note to the person building the page, left in the published text.', 'ai-slop-checker' ), ), array( // "for" is what turns this into an instruction. A bare // "(schema markup)" is a gloss explaining a term — ordinary // writing on any SEO site — and must stay clean. 'id' => 'note_for_schema', 'category' => 'brief', 'weight' => 28, 'regex' => '/\(\s*(for\s+(schema|seo|aeo|geo|internal\s+link(ing|s)?|the\s+faq|indexing)|seo\s+only|schema\s+only)\s*\)/iu', 'note' => __( 'Implementation instruction meant for the developer.', 'ai-slop-checker' ), ), array( 'id' => 'note_optional_section', 'category' => 'brief', 'weight' => 26, 'regex' => '/(^|[\r\n])[^\p{L}\r\n]{0,4}\s*optional\s+(faq|section|block|content|paragraph|cta|schema)\b/iu', 'note' => __( 'An optional section offered to the page builder, not the reader.', 'ai-slop-checker' ), ), array( 'id' => 'note_see_path', 'category' => 'brief', 'weight' => 26, 'regex' => '/\(\s*see:?\s*\/[a-z0-9\-\/]{4,}\s*\)/iu', 'note' => __( 'A raw internal path left where a real link should be.', 'ai-slop-checker' ), ), array( 'id' => 'note_tbd', 'category' => 'brief', 'weight' => 26, 'regex' => '/(^|[\s\(\[])(TBD|TK+|TODO|FIXME|XXX)([\s\)\].,:;]|$)/u', 'note' => __( 'An unfinished marker left in the copy.', 'ai-slop-checker' ), ), array( // "for this page" is self-referential: it can only be addressed // to whoever is building the page, never to a reader. That is // what separates it from an ordinary "Tips for choosing a // supplier" heading, which stays clean. 'id' => 'tips_for_this_page', 'category' => 'brief', 'weight' => 30, 'regex' => '/(^|[\r\n])[^\p{L}\r\n]{0,4}\s*(technical|design|content|seo|build|layout|styling)?\s*(tips|notes|instructions|reminders|to-?dos?|guidance)\s+for\s+(this|the)\s+(page|post|article|section)\b/iu', 'note' => __( 'Build instructions for this specific page, left in the published copy.', 'ai-slop-checker' ), ), array( 'id' => 'link_placeholder', 'category' => 'brief', 'weight' => 28, 'regex' => '/\[[^\]\r\n]{0,40}\b(here|read\s+more|learn\s+more|click\s+here|link\s+text|anchor)\b[^\]\r\n]{0,20}\]/iu', 'note' => __( 'Bracketed anchor text standing in for a real link.', 'ai-slop-checker' ), ), array( 'id' => 'add_a_link_note', 'category' => 'brief', 'weight' => 26, 'regex' => '/\b(add|insert|place)\s+a\s+link\s*[:\-–]/iu', 'note' => __( 'An instruction to add a link, rather than a link.', 'ai-slop-checker' ), ), ); } /** * Markdown that never got converted. * * @return array */ private static function formatting() { return array( array( 'id' => 'raw_bold', 'category' => 'formatting', 'weight' => 14, 'regex' => '/\*\*[^\*\r\n]{2,80}\*\*/u', 'note' => __( 'Literal **bold** markdown rendered as asterisks.', 'ai-slop-checker' ), ), array( 'id' => 'raw_heading', 'category' => 'formatting', 'weight' => 16, 'regex' => '/(^|[\r\n])\s*#{1,6}\s+\S/u', 'note' => __( 'Literal markdown heading in the post body.', 'ai-slop-checker' ), ), array( 'id' => 'horizontal_rule', 'category' => 'formatting', 'weight' => 10, 'regex' => '/(^|[\r\n])\s*(---|\*\*\*|___)\s*([\r\n]|$)/u', 'note' => __( 'Markdown horizontal rule separating chat sections.', 'ai-slop-checker' ), ), array( 'id' => 'tldr', 'category' => 'formatting', 'weight' => 12, 'regex' => '/\bTL;?DR\b\s*[:\-–]/iu', 'note' => __( 'Chat-style summary header.', 'ai-slop-checker' ), ), array( // Soft rather than proof: sites that write about SEO legitimately // show URL structures on their own line. 'id' => 'bare_path_line', 'category' => 'formatting', 'weight' => 12, 'regex' => '/(^|[\r\n])\s*\/[a-z0-9\-]+(\/[a-z0-9\-]+)*\/?\s*($|[\r\n])/iu', 'note' => __( 'A bare URL path on its own line, where a real link was probably intended.', 'ai-slop-checker' ), ), array( // \K drops the leading newline and indentation from the reported // match, and the lookahead keeps the following character out of // it, so the finding reads as the emoji itself rather than // something like "👉 L". 'id' => 'emoji_bullets', 'category' => 'listicle', 'weight' => 10, 'regex' => '/(^|[\r\n])[ \t]*\K(\x{2705}|\x{1F680}|\x{1F525}|\x{2728}|\x{1F4A1}|\x{1F44D}|\x{26A1}|\x{1F3AF}|\x{1F4CC}|\x{1F449}|\x{1F538}|\x{1F539}|\x{1F9E0}|\x{1F4A5}|\x{2696}|\x{1F50D}|\x{1F9ED}|\x{1F517}|\x{1F527}|\x{1F4CD}|\x{2757}|\x{1F53A})\x{FE0F}?(?=[ \t]*\*{0,2}\S)/u', 'note' => __( 'Emoji-led bullet or heading, a common generated-listicle pattern.', 'ai-slop-checker' ), ), ); } /** * Knowledge-cutoff phrasing. * * @return array */ private static function staleness() { return array( // A model disclaiming its own cutoff is strong evidence. An article // *about* AI discussing cutoffs is just its subject matter, so the // self-referential form and the topical form are scored separately. array( 'id' => 'knowledge_cutoff_self', 'category' => 'staleness', 'weight' => 34, 'regex' => '/\b(as\s+of\s+my\s+(last\s+)?(knowledge|training|update)|my\s+(knowledge|training)\s+cut[\s-]?off|i\s+(have|had)\s+a\s+(knowledge|training)\s+cut[\s-]?off|(beyond|past|after)\s+my\s+(knowledge|training)\s+cut[\s-]?off)\b/iu', 'note' => __( 'The model disclaiming its own knowledge cutoff.', 'ai-slop-checker' ), ), array( // Low weight on purpose: publications that cover AI mention // cutoffs constantly and must not be penalised for it. 'id' => 'knowledge_cutoff_topic', 'category' => 'staleness', 'weight' => 8, 'regex' => '/\b(knowledge|training)\s+cut[\s-]?off\b/iu', 'note' => __( 'A knowledge cutoff is mentioned. Check whether any claim depends on it.', 'ai-slop-checker' ), ), array( 'id' => 'as_of_year', 'category' => 'staleness', 'weight' => 12, 'regex' => '/\bas\s+of\s+(early\s+|mid[\s-]|late\s+)?(january|february|march|april|may|june|july|august|september|october|november|december)?\s*(19|20)\d{2}\b/iu', 'note' => __( 'Time-pinned statement. Verify the date is still current.', 'ai-slop-checker' ), ), array( 'id' => 'currently_latest', 'category' => 'staleness', 'weight' => 14, 'regex' => '/\b(currently|at\s+present|right\s+now|today),?\s+the\s+(latest|newest|current|most\s+recent|best)\b/iu', 'note' => __( 'A "current state of the world" claim that ages badly.', 'ai-slop-checker' ), ), array( 'id' => 'latest_version_is', 'category' => 'staleness', 'weight' => 14, 'regex' => '/\b(latest|newest|most\s+recent|current)\s+(version|release|model|iteration|update)\s+(is|was|being)\b/iu', 'note' => __( 'Version claim likely superseded since drafting.', 'ai-slop-checker' ), ), ); } /** * Stock generated-prose phrasing. Individually meaningless, collectively telling. * * @return array */ private static function style() { $phrases = array( 'in\s+today\'s\s+(fast[\s-]paced|digital|modern|ever[\s-]changing)\s+world', 'in\s+the\s+(ever[\s-]evolving|rapidly\s+changing|fast[\s-]paced)\s+(landscape|world|realm|field)\s+of', 'delve\s+(deeper\s+)?into', 'it\'s\s+(important|worth|crucial|essential)\s+to\s+note\s+that', 'navigating\s+the\s+(complexities|challenges|landscape|world)', 'unlock\s+the\s+(power|potential|secrets)', 'a\s+testament\s+to', 'rich\s+tapestry', 'game[\s-]changer', 'when\s+it\s+comes\s+to', 'plays\s+a\s+(crucial|vital|pivotal|key)\s+role', 'the\s+world\s+of', 'let\'s\s+dive\s+(in|into)', 'in\s+conclusion,', 'buckle\s+up', 'look\s+no\s+further', 'harness\s+the\s+power\s+of', 'at\s+the\s+end\s+of\s+the\s+day,', 'more\s+than\s+just\s+a', 'not\s+just\s+[a-z\s]{2,25},?\s+(but|it\'s)\s+', 'seamlessly\s+integrat', 'robust\s+(solution|framework|ecosystem)', 'cutting[\s-]edge', 'stands?\s+as\s+a\s+(beacon|testament|shining)', 'underscore[sd]?\s+the\s+importance', 'foster(ing)?\s+a\s+(sense\s+of|culture\s+of)', 'embark\s+on\s+a\s+journey', 'paradigm\s+shift', 'meticulous(ly)?', 'realm\s+of', 'treasure\s+trove', 'multifaceted', 'labyrinth', 'nestled\s+(in|between|among|within)', 'bustling', 'myriad\s+of', 'a\s+plethora\s+of', 'pivotal\s+(role|moment|point)', 'streamlin(e|ing)\s+(your|the)', 'holistic\s+approach', 'synergy', 'captivating', 'intricate\s+(details|workings|dance)', 'in\s+an\s+era\s+where', 'say\s+goodbye\s+to', 'revolutioniz(e|ing)\s+the\s+way', 'empower(s|ing)?\s+(you|users|businesses|teams)\s+to', 'ever[\s-]growing', 'one\s+thing\s+is\s+clear', 'the\s+bottom\s+line\s+is', 'whether\s+you(\'re|\s+are)\s+a\s+[a-z\s]{2,20}\s+or\s+a\b', 'shed(ding)?\s+light\s+on', 'pave\s+the\s+way\s+for', 'double[\s-]edged\s+sword', 'no\s+stone\s+unturned', 'time\s+will\s+tell', 'crucial\s+to\s+understand', 'dive\s+deep(er)?\s+into', 'take\s+your\s+[a-z\s]{2,20}\s+to\s+the\s+next\s+level', ); $out = array(); foreach ( $phrases as $i => $phrase ) { $out[] = array( 'id' => 'style_' . $i, 'category' => 'style', 'weight' => 4, 'regex' => '/\b' . $phrase . '/iu', 'note' => __( 'Stock phrasing frequently produced by chat models.', 'ai-slop-checker' ), ); } // Sentence-shape formulas. More distinctive than any single buzzword — // human writers rarely stack these constructions — so they carry more weight. $formulas = array( array( 'id' => 'formula_no_no_just', 'regex' => '/\bno\s+[\w-]+[.,]\s+no\s+[\w-]+[.,]\s+(just|only)\s+[\w-]+/iu', 'note' => __( 'The "No fluff. No theory. Just results." construction.', 'ai-slop-checker' ), ), array( // Covers both the contraction ("isn't just") and the expanded // form ("is not just"), and accepts a full stop as the pivot // because the second half is often its own sentence. 'id' => 'formula_not_just_but', 'regex' => '/\b(is|are|was|were|do|does)(n\'t|\s+not)\s+just\s+[\w\s\-]{2,45}\s*[,.;:—–-]\s*(it\'s|it\s+is|they\'re|they\s+are|that\'s|but)\b/iu', 'note' => __( 'The "it isn\'t just X, it\'s Y" construction.', 'ai-slop-checker' ), ), array( 'id' => 'formula_isnt_about', 'regex' => '/\b(is|are)(n\'t|\s+not)\s+about\s+[\w\s\-]{2,40}\s*[,.;]\s*(it\'s|it\s+is|they\'re)\s+about\b/iu', 'note' => __( 'The "it isn\'t about X, it\'s about Y" construction.', 'ai-slop-checker' ), ), array( 'id' => 'formula_think_less_more', 'regex' => '/\bthink\s+(less|more)\s+[\w\s]{2,25},\s*(more|less)\b/iu', 'note' => __( 'The "think less X, more Y" construction.', 'ai-slop-checker' ), ), ); foreach ( $formulas as $formula ) { $out[] = array( 'id' => $formula['id'], 'category' => 'style', 'weight' => 10, 'regex' => $formula['regex'], 'note' => $formula['note'], ); } return $out; } }