byakugan

v1.0.0
io.github.JayOfemi/byakugan Checked 4 days ago Published 5 months ago

Private, on-device AI-text analysis including detection, AI-tell spans, and reuse overlap.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

detect_ai_text Detect AI text

Score how likely a passage reads as AI-written, fully on-device, with a per-signal breakdown and a confidence band. Returns a 0 to 100 likelihood, never a yes/no verdict. The signal is directional and biased against non-native English writers, so treat it as a second opinion and not proof. Get a read here, then call find_ai_tells to locate the spans worth rewriting.

ParameterTypeDescription
text *stringThe text to analyze.

find_ai_tells Find AI tells

Locate the exact character spans that read as AI, covering stock phrasing, long dashes, and formulaic sentence openers. Returns a list of spans with start, end, the matched text, and a note. Use these to rephrase only the flagged parts and leave the rest of the writing intact. Deterministic.

ParameterTypeDescription
text *stringThe text to analyze.

check_reuse Check reuse overlap

Compare the text against reference documents you provide, using word shingles, and return the share of overlap and the verbatim shared passages. This is a local check against the documents passed in. It does not search the web or any plagiarism database. Deterministic.

ParameterTypeDescription
references *arrayOne or more of your own documents to compare against.
text *stringThe text to analyze.

check_grammar Check grammar

Run a rule-based grammar and style check over the text, fully on-device, and return each issue with its character span, a message, the flagged text, and suggested fixes. Use it to tidy grammar and phrasing, before or after rewriting the flagged AI tells. Deterministic.

ParameterTypeDescription
text *stringThe text to analyze.