An open-source browser extension for bilingual webpages, instant selection translation, and flexible translation services. 一款开源浏览器翻译插件,提供网页双语阅读、即时划词翻译和灵活的翻译服务配置。
This report presents the forensic synthetic code analysis of FluentRead/FluentRead, a TypeScript project with 7,572 GitHub stars. SynthScan v2.0 examined 101,936 lines of code across 478 source files, recording 402 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 4.1 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 402 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | wxt.config.ts | 19 | function escapeExtensionNoncharacters() { | CODE |
| LOW | tests/translationBroker.test.ts | 174 | function translationCacheIdentities(): CacheIdentity[] { | CODE |
| LOW | tests/translationTruncation.test.ts | 156 | function commitBilingualTranslation(owner: HTMLElement): HTMLElement { | CODE |
| LOW | tests/backgroundConfigStorage.test.ts | 81 | function createStorageWatchHarness() { | CODE |
| LOW | tests/userscriptInitialize.test.ts | 7 | async function ensureUserscriptConfigForTest(): Promise<void> { | CODE |
| LOW | tests/translationDocumentCorpus.test.ts | 25 | function installInlineDisplayStyles(document: Document): void { | CODE |
| LOW | tests/translationDocumentCorpus.test.ts | 43 | function expectExactCandidateOwners( | CODE |
| LOW | tests/architecture/verificationOwnership.test.ts | 118 | function isCoverageExemptSrcModule(path: string): boolean { | CODE |
| LOW | userscript/count.ts | 61 | function parseNonNegativeSafeInteger(value: unknown): number | null { | CODE |
| LOW | userscript/count.ts | 98 | export function createUserscriptCountCoordinator( | CODE |
| LOW | userscript/count.ts | 216 | export function initializeUserscriptCount(legacyCount: unknown): Promise<number> { | CODE |
| LOW | userscript/count.ts | 220 | export function incrementUserscriptConfigCount(delta: unknown, operationId: unknown): Promise<number> { | CODE |
| LOW | userscript/chromeTranslator.ts | 1 | export default async function unsupportedChromeTranslator(): Promise<never> { | CODE |
| LOW | userscript/context.ts | 8 | export function createUserscriptContentContext(): UserscriptContentContext { | CODE |
| LOW | userscript/unsupportedCapabilities.ts | 20 | export function mountVideoSubtitleTranslation(): () => void { | CODE |
| LOW | userscript/platform.ts | 32 | export function createPlatformMessageHandler(openSettings: () => void) { | CODE |
| LOW | userscript/browser.ts | 16 | export function setPlatformMessageHandler(handler: PlatformMessageHandler): void { | CODE |
| LOW | userscript/browser.ts | 21 | export function resetPlatformMessageHandler(): void { | CODE |
| LOW | userscript/credentialContext.ts | 2 | export function isTrustedCredentialStorageContext(): boolean { | CODE |
| LOW | userscript/initialize.ts | 44 | export function isUserscriptServiceSupported(service: unknown): service is string { | CODE |
| LOW | userscript/initialize.ts | 49 | export function normalizeUserscriptConfig(value: unknown): Config { | CODE |
| LOW | userscript/initialize.ts | 79 | function preserveLegacyYiyanCredentials(next: Config, value: unknown): void { | CODE |
| LOW | userscript/initialize.ts | 89 | function allowLegacyOllamaWithoutApiKey(next: Config): void { | CODE |
| LOW | userscript/vite.config.ts | 135 | export function injectUserscriptBrowserImports(code: string, id: string): string | null { | CODE |
| LOW | userscript/vite.config.ts | 151 | function injectUserscriptBrowserShim(): Plugin { | CODE |
| LOW | src/core/translation/dom.ts | 119 | export function isProtectedDescendantElement( | CODE |
| LOW | src/core/translation/dom.ts | 163 | function collectImmediateOpenShadowRoots(root: Node): ShadowRoot[] { | CODE |
| LOW | src/core/translation/serialization.ts | 67 | export function serializeTranslationSlots( | CODE |
| LOW | src/core/translation/serialization.ts | 190 | export function createTranslationSourceSnapshot( | CODE |
| LOW | src/core/translation/serialization.ts | 203 | export function collectLiveTranslationTextSlots( | CODE |
| LOW | src/core/translation/serialization.ts | 212 | export function applyTranslationsToSnapshot( | CODE |
| LOW | src/core/translation/serialization.ts | 230 | export function hasActiveTranslationLineClamp(element: HTMLElement): boolean { | CODE |
| LOW | src/core/translation/serialization.ts | 249 | export function findTranslationTruncationAncestors( | CODE |
| LOW | src/core/translation/serialization.ts | 264 | export function removeTranslationTruncation(node: HTMLElement): void { | CODE |
| LOW | src/core/translation/languages.ts | 34 | export function resolveTranslationLanguages( | CODE |
| LOW | src/core/translation/text.ts | 36 | export function isMeaningfulTranslationText(value: string): boolean { | CODE |
| LOW | src/core/translation/text.ts | 43 | export function isTranslationTextNodeProtected( | CODE |
| LOW | src/core/translation/text.ts | 104 | export function createTranslationTextProtectionCache(): TranslationTextProtectionCache { | CODE |
| LOW | src/core/translation/text.ts | 113 | export function isTranslationTextElementProtected( | CODE |
| LOW | src/core/translation/text.ts | 154 | export function hasMeaningfulTranslationTextInNodes( | CODE |
| LOW | src/core/translation/text.ts | 223 | export function extractTranslationTextFromNodes( | CODE |
| LOW | src/core/translation/engine.ts | 73 | function createResolutionEvaluationContext(): ResolutionEvaluationContext { | CODE |
| LOW | src/core/translation/engine.ts | 131 | export function getTranslationCandidateKey(candidate: TranslationCandidate): Node { | CODE |
| LOW | src/core/translation/engine.ts | 136 | export function selectPreferredTranslationCandidate( | CODE |
| LOW | src/core/translation/prompts.ts | 15 | export function buildPageSummarySystemPrompt(): string { | CODE |
| LOW | src/core/translation/prompts.ts | 50 | function containsContextOnlyCjkFragment(context: string, origin: string, result: string): boolean { | CODE |
| LOW | src/core/translation/prompts.ts | 91 | export function isDefinitePageContextLeak(origin: string, result: string, pageContext: string): boolean { | CODE |
| LOW | src/core/translation/prompts.ts | 109 | export function stripTranslationReasoning(text: string): string { | CODE |
| LOW⚡ | src/core/translation/current.ts | 26 | export function getCurrentTranslationCore(): TranslationCandidateCore { | CODE |
| LOW⚡ | src/core/translation/current.ts | 35 | export function resolveTranslationCandidate(node: Node | null | undefined): TranslationCandidate | null { | CODE |
| LOW⚡ | src/core/translation/current.ts | 39 | export function resolveTranslationCandidateAtPoint(x: number, y: number): TranslationCandidate | null { | CODE |
| LOW | src/core/translation/layout.ts | 151 | export function isTranslationControlElement(element: Element): boolean { | CODE |
| LOW | src/core/config/validation.ts | 41 | export function getMissingCredentialMessage( | CODE |
| LOW | src/core/config/selectionTts.ts | 46 | export function normalizeSelectionTtsVoiceOrder(value: unknown): string[] { | CODE |
| LOW | src/core/config/transfer.ts | 68 | function prepareImportedCredentials(value: unknown, current: unknown): ConfigCredentials { | CODE |
| LOW⚡ | src/core/config/model.ts | 35 | export function normalizeVideoSubtitleFontSize(value: unknown): number { | CODE |
| LOW⚡ | src/core/config/model.ts | 41 | export function normalizeMouseHoverTranslationDelay(value: unknown): number { | CODE |
| LOW⚡ | src/core/config/model.ts | 51 | export function normalizeSelectionTranslatorDelay(value: unknown): number { | CODE |
| LOW | src/core/config/model.ts | 543 | function withoutRetiredRequirementEntries(mapping: Record<string, boolean>): Record<string, boolean> { | CODE |
| LOW | src/core/config/model.ts | 551 | function isSupportedTranslationService(value: unknown): value is string { | CODE |
| 336 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | docs/architecture.md | 338 | // Step 1: 校验输入并创建本次请求的所有权标识。 | COMMENT |
| LOW⚡ | docs/architecture.md | 339 | // Step 2: 读取缓存;命中时直接返回。 | COMMENT |
| LOW⚡ | docs/architecture.md | 340 | // Step 3: 调用 provider,并在仍持有所有权时提交结果。 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/generate-document-binary-examples.py | 20 | def set_run_font(run, name: str, size: float, color: str = "202533", bold: bool = False) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/generate-document-binary-examples.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/ui/components/CustomHotkeyInput.vue | 63 | <span v-if="!isRecording && !currentHotkey" class="placeholder"> | CODE |