AI Slop Code RIsk Monitor

deanmalmgren/textract

extract text from any document. no muss. no fuss.

8.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for deanmalmgren/textract, a HTML project with 4,727 GitHub stars. SynthScan examined 14,281 lines of code across 147 source files, recording 90 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 8.2 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

8.2
Adjusted Signal
8.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
4.7K
Stars
HTML
Language
14.3K
Lines of Code
147
Files
90
Pattern Hits
2026-10-12
Scan Date
0.04
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 20.2/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 61 finding(s).

Hallucinated Dependency & Supply Chain Risk 5.1/100 · LOW

Are imports declared and package/API names verified? 15 finding(s).

Agent Over-Engineering Ratio 25.7/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 61 finding(s).

PR Review Velocity Impact 34.8/100 · MEDIUM

Which changes need focused human review? 90 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 6MEDIUM 1LOW 83

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 90 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers47 hits · 47 pts
SeverityFileLineSnippetContext
LOWtests/test_special_filenames.py49 def test_unbalanced_parentheses(self):CODE
LOWtests/test_special_filenames.py54 def test_shell_injection_chars(self):CODE
LOWtests/test_special_filenames.py70 def test_combined_special_chars(self):CODE
LOWtests/test_txt.py15 def test_extensionless_filenames(self):CODE
LOWtests/test_pdf.py94 def test_standardized_text_cli(self):CODE
LOWtests/test_pdf.py110 def test_standardized_text_python(self):CODE
LOWtests/test_pdf.py146 def test_unknown_method_raises(self):CODE
LOWtests/test_pdf.py151 def test_pdftotext_fallback_to_pdfminer(self):CODE
LOWtests/test_pdf.py162 def test_pdftotext_preserves_non_latin_text(self):CODE
LOWtests/test_pdf.py176 def test_pdftotext_ignores_input_encoding(self):CODE
LOWtests/test_platform_limitations.py12 def test_docs_mention_every_limitation(self):CODE
LOWtests/test_exceptions.py25 def test_unsupported_extension_cli(self):CODE
LOWtests/test_exceptions.py38 def test_unsupported_extension_python(self):CODE
LOWtests/test_exceptions.py47 def test_missing_filename_cli(self):CODE
LOWtests/test_exceptions.py58 def test_missing_filename_python(self):CODE
LOWtests/test_exceptions.py74 def test_missing_module_python(self):CODE
LOWtests/test_exceptions.py98 def test_shell_parser_run_passes_startupinfo_on_windows(self):CODE
LOWtests/test_html.py24 def test_explicit_input_encoding(self):CODE
LOWtests/test_html.py29 def test_invalid_input_encoding(self):CODE
LOWtests/test_xlsx.py10 def test_standardized_text_python(self):CODE
LOWtests/test_eml.py9 def test_explicit_input_encoding(self):CODE
LOWtests/test_eml.py14 def test_invalid_input_encoding(self):CODE
LOWtests/test_source_input.py103 def test_process_bytes_matches_filename(self):CODE
LOWtests/test_source_input.py110 def test_process_stream_matches_filename(self):CODE
LOWtests/test_source_input.py127 def test_missing_extension_raises(self):CODE
LOWtests/test_source_input.py131 def test_csv_streams_without_buffering_full_input(self):CODE
LOWtests/test_source_input.py144 def test_csv_crlf_quoted_newlines_match_across_paths(self):CODE
LOWtests/test_source_input.py156 def test_process_stream_leaves_caller_stream_open(self):CODE
LOWtests/test_source_input.py165 def test_csv_streams_from_stdin_pipe(self):CODE
LOWtests/test_source_input.py210 def test_streaming_uses_less_memory_than_buffering(self):CODE
LOWtests/test_json.py16 def test_character_sets_python(self):CODE
LOWtests/test_json.py34 def test_explicit_input_encoding(self):CODE
LOWtests/test_json.py39 def test_invalid_input_encoding(self):CODE
LOWtests/base.py67def _files_equal_ignore_blank_lines(file1: str, file2: str) -> bool:CODE
LOWtests/base.py101def _generate_file_diff_message(file1: str, file2: str) -> str:CODE
LOWtests/base.py112def _generate_bytes_diff_message(actual: bytes, expected: bytes, label: str) -> str:CODE
LOWtests/base.py198 def standardized_text_filename(self):CODE
LOWtests/base.py216 def test_standardized_text_cli(self):CODE
LOWtests/base.py228 def test_standardized_text_python(self):CODE
LOWtests/base.py299 def assert_input_encoding_respected(self, filename_root, encoding):CODE
LOWtests/base.py314 def assert_invalid_input_encoding_raises(self, filename_root, wrong_encoding):CODE
LOWtests/test_csv.py9 def test_explicit_input_encoding(self):CODE
LOWtests/test_csv.py14 def test_invalid_input_encoding(self):CODE
LOWtests/test_epub.py10def _ignore_xml_as_html_warning(test_method):CODE
LOWtests/test_epub.py32 def test_standardized_text_python(self):CODE
LOWtextract/parsers/__init__.py151def _get_available_extensions():CODE
LOWtextract/parsers/audio.py28def _pocketsphinx_signature_invalid() -> bool:CODE
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHtests/test_html.py0a valid-but-wrong input_encoding must raise a friendly error instead of leaking a raw unicodedecodeerror.STRING
HIGHtests/test_eml.py0a valid-but-wrong input_encoding must raise a friendly error instead of leaking a raw unicodedecodeerror.STRING
HIGHtests/test_json.py0a valid-but-wrong input_encoding must raise a friendly error instead of leaking a raw unicodedecodeerror.STRING
HIGHtests/test_csv.py0a valid-but-wrong input_encoding must raise a friendly error instead of leaking a raw unicodedecodeerror.STRING
Unused Imports14 hits · 14 pts
SeverityFileLineSnippetContext
LOWtextract/__init__.py1CODE
LOWtextract/__init__.py2CODE
LOWtextract/__init__.py2CODE
LOWtextract/__init__.py2CODE
LOWtextract/__init__.py3CODE
LOWtextract/exceptions.py3CODE
LOWtextract/parsers/jpg_parser.py1CODE
LOWtextract/parsers/mp3_parser.py1CODE
LOWtextract/parsers/wav_parser.py1CODE
LOWtextract/parsers/png_parser.py1CODE
LOWtextract/parsers/tiff_parser.py1CODE
LOWtextract/parsers/utils.py5CODE
LOWtextract/parsers/ogg_parser.py1CODE
LOWtextract/parsers/doc_parser.py1CODE
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHtests/base.py325except exceptions.InvalidInputEncoding:CODE
HIGHtextract/parsers/audio.py46except ImportError:CODE
Modern Structural Boilerplate8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtextract/__init__.py7__all__ = [CODE
LOWtextract/parsers/jpg_parser.py3__all__ = ["Parser"]CODE
LOWtextract/parsers/mp3_parser.py3__all__ = ["Parser"]CODE
LOWtextract/parsers/wav_parser.py3__all__ = ["Parser"]CODE
LOWtextract/parsers/png_parser.py3__all__ = ["Parser"]CODE
LOWtextract/parsers/tiff_parser.py3__all__ = ["Parser"]CODE
LOWtextract/parsers/gif_parser.py54__all__ = ["Parser"]CODE
LOWtextract/parsers/ogg_parser.py3__all__ = ["Parser"]CODE
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtextract/parsers/xlsx_parser.py9CODE
LOWtextract/parsers/html_parser.py84CODE
LOWtextract/parsers/html_parser.py118CODE
LOWtextract/parsers/odt_parser.py30CODE
LOWtextract/parsers/xls_parser.py9CODE
LOWtextract/parsers/utils.py98CODE
LOWtextract/parsers/audio.py89CODE
LOWtextract/parsers/epub_parser.py40CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtextract/cli.py42# This function is necessary to enable autodocumentation of the scriptCOMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/test_redhat_family_install.sh13# Usage:COMMENT
LOWscripts/docker_smoke_test.sh5# Usage:COMMENT
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/test_redhat_family_install.sh1#!/usr/bin/env bashCOMMENT
LOW.github/actions/setup/action.yml41 uses: actions/cache@v4COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtextract/parsers/gif_parser.py21 # Check if this is an animated GIF (n_frames > 1)COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/epub/raw_text.txt4Welcome here! All the text have ben generate with the Samuel L lorem ipsum.CODE