ProseGuard
Local Stylometric Inspection · Zero Upload
Back to Desk
Methodology & Technical Notes

ProseGuard: Stylometric AI Detection Methodology & FAQ

ProseGuard is a 100% client-side AI-generated article inspection desk compiled from zero-dependency Rust into a 153 KB WebAssembly binary, operating over HTTPS and localStorage with 0 bytes of manuscript text ever transmitted.

ProseGuard supports 4 genre calibrations across 4 languages (Simplified Chinese, Traditional Chinese, English, and Japanese), combining RLHF syntactic log-odds, cross-sentence surprisal flatness, heading-aware sentence burstiness CV, MATTR-50 / Yule K lexical concentration, 8-hop LZ77 redundancy, and U+200B/U+202F watermark removal with JSON export.

01 · Proxy RLHF Syntactic & Contrastive Log-Odds

ProseGuard evaluates negative parallelisms, participial clause extensions, nominalization density, and rhetorical staccato triplets inside 153 KB WebAssembly memory, running 100% locally with 0 bytes uploaded.

L_RLHF = Σ w_k · count(f_k, x) / N_sent^0.76, P_disc = σ(1.45 · (L_RLHF - 0.78))

02 · Cross-Sentence Surprisal Mean & Flatness Variance

ProseGuard estimates per-sentence function-word glue, empirical specificity, and clause surprisal (bits) in under 10 ms, flagging the low cross-sentence variance typical of RLHF decoding with 0 bytes uploaded.

CV_surp = σ(S_1..S_n) / μ(S_1..S_n), P_flat = clamp(0.52 + 0.46(4.58 - μ) + 2.8(0.12 - CV_surp))

03 · Heading-Filtered Burstiness CV & Paragraph Symmetry

ProseGuard separates Markdown headings from body sentences before computing CV = σ/μ and paragraph variance, preventing section headers from skewing cadence metrics (0 bytes uploaded, 100% deterministic).

CV_prose = σ(L_body) / μ(L_body), Δ_adj = (1 / (N - 1)) · Σ |L_{i+1} - L_i| / μ(L_body)

04 · 8-Hop LZ77 Redundancy & Unicode Watermark Sanitizer

ProseGuard pairs 8192-byte sliding-window LZ77 match ratios and Yule K concentration with scalar scans for U+200B, U+202F, U+2060, and U+FEFF, cleaning hidden artifacts locally with 0 bytes uploaded.

Clean(s) = filter(c ∉ {U+200B, U+200C, U+200D, U+2060, U+FEFF}, normalize_space(s))

Frequently Asked Questions (FAQ)

Does ProseGuard send my unpublished manuscript, paper, or draft to any external server?
ProseGuard transmits 0 bytes of your text over HTTPS. Sentence segmentation, log-odds scoring, compression profiling, and watermark stripping run 100% inside 153 KB WebAssembly memory, storing only your 4 languages UI setting in localStorage.
How does ProseGuard catch modern GPT-4o, Claude, and DeepSeek prose that avoids obvious clichés?
ProseGuard combines 6 orthogonal features in Rust + WebAssembly: contrastive negative-parallelism frames, cross-sentence surprisal flatness, heading-filtered burstiness CV, paragraph uniformity, Yule K lexical concentration, and LZ77 redundancy in under 10 ms with 0 bytes uploaded.
How should I read the four sentence annotation tiers in ProseGuard?
ProseGuard assigns each sentence a 0%–100% estimate: High AI (>=70%) marks strong RLHF constructions or hidden codepoints; Moderate (46%–69%) marks smooth predictable pacing; Varied (25%–45%) marks diverse phrasing; Human Burst (<25%) marks concrete specificity or sharp cadence shifts (0 bytes uploaded).
Where do U+200B zero-width spaces and U+202F narrow no-break spaces come from in ProseGuard scans?
ProseGuard scans every UTF-8 scalar for U+200B, U+202F, U+2060, U+200C/D, and inline U+FEFF markers often introduced by LLM tokenizers or clipboard wrappers, providing a 100% local idempotent cleaner with 0 bytes uploaded.
How does ProseGuard avoid false positives on dense academic abstracts and news dispatches?
ProseGuard includes General, Academic, Press, and Copy domain presets alongside 3 sensitivity levels; selecting Academic shifts the prior and credits high-surprisal empirical measurements so human research prose is scored fairly with 0 bytes uploaded.