Skip to main content

Module github_text

Module github_text 

Source
Expand description

Posting gate shared by GitHub titles, descriptions and comments.

Structs§

LanguageDecision
A model’s verdict on whether a title and a body’s prose are English.

Enums§

Violation
Categories only: diagnostics must never repeat the offending secret.

Constants§

NEUTRAL_BODY
Fixed fallback for a rejected description or comment.
NEUTRAL_TITLE
Fixed fallback for a rejected title.

Functions§

check
Pure checker. Language exemptions never exempt sensitive data.
check_with
check with an optional decision from judge_language.
judge_language
Ask [roles] language_judge whether title and body’s prose are English.
parse_decision
Read the judge’s reply: one JSON object with required bools, optionally in a code fence, else the last non-empty line (a wrapper may log before it).
prepare
Scrub local identity and pattern matches, then replace failing prose. Every intervention is recorded without copying the offending material.
prepare_with
prepare with the decision judge_language reached for this very text.