AI Slop Code RIsk Monitor

gunthercox/ChatterBot

ChatterBot is a machine learning, conversational dialog engine for creating chat bots

26.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for gunthercox/ChatterBot, a Python project with 14,519 GitHub stars. SynthScan examined 30,837 lines of code across 162 source files, recording 506 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 26.6 (Elevated 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.

26.6
Adjusted Signal
26.6
Raw Pattern Score
100%
Time Factor
2026-08-25
Last Push
14.5K
Stars
Python
Language
30.8K
Lines of Code
162
Files
506
Pattern Hits
2026-10-12
Scan Date
0.32
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 57.0/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 6.0/100 · LOW

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

Agent Over-Engineering Ratio 65.6/100 · HIGH

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

PR Review Velocity Impact 73.5/100 · HIGH

Which changes need focused human review? 506 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 1HIGH 51MEDIUM 25LOW 429

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 506 distinct pattern matches across 15 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 Identifiers352 hits · 397 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_parsing.py18 def test_captured_pattern_is_on_date(self):CODE
LOW⚡tests/test_parsing.py25 def test_captured_pattern_this_weekday(self):CODE
LOW⚡tests/test_parsing.py35 def test_captured_pattern_last_weekday(self):CODE
LOW⚡tests/test_parsing.py45 def test_captured_pattern_next_weekday(self):CODE
LOW⚡tests/test_parsing.py55 def test_captured_pattern_minutes_from_now(self):CODE
LOW⚡tests/test_parsing.py67 def test_captured_pattern_days_later(self):CODE
LOW⚡tests/test_parsing.py77 def test_captured_pattern_year(self):CODE
LOW⚡tests/test_parsing.py84 def test_captured_pattern_today(self):CODE
LOW⚡tests/test_parsing.py91 def test_captured_pattern_tomorrow(self):CODE
LOW⚡tests/test_parsing.py101 def test_captured_pattern_yesterday(self):CODE
LOW⚡tests/test_parsing.py111 def test_captured_pattern_before_yesterday(self):CODE
LOW⚡tests/test_parsing.py121 def test_captured_pattern_before_today(self):CODE
LOW⚡tests/test_parsing.py131 def test_captured_pattern_before_tomorrow(self):CODE
LOW⚡tests/test_parsing.py165 def test_captured_pattern_first_quarter_of_year(self):CODE
LOW⚡tests/test_parsing.py173 def test_captured_pattern_last_quarter_of_year(self):CODE
LOW⚡tests/test_parsing.py181 def test_captured_pattern_is_next_three_weeks(self):CODE
LOW⚡tests/test_parsing.py191 def test_captured_pattern_is_next_x_weeks_case_insensitive(self):CODE
LOW⚡tests/test_parsing.py201 def test_captured_pattern_is_next_eight_days(self):CODE
LOW⚡tests/test_parsing.py211 def test_captured_pattern_is_next_x_days_case_insensitive(self):CODE
LOW⚡tests/test_parsing.py221 def test_captured_pattern_is_next_ten_years(self):CODE
LOW⚡tests/test_parsing.py231 def test_captured_pattern_is_next_x_years_case_insensitive(self):CODE
LOW⚡tests/test_parsing.py241 def test_captured_pattern_is_next_eleven_months(self):CODE
LOW⚡tests/test_parsing.py377 def test_this_week_day_before_day(self):CODE
LOW⚡tests/test_parsing.py384 def test_this_week_day_after_day(self):CODE
LOW⚡tests/test_parsing.py391 def test_today_at_time_uses_base_date(self):CODE
LOWtests/test_parsing.py150 def test_captured_pattern_two_days(self):CODE
LOWtests/test_parsing.py256 def test_captured_pattern_is_next_x_months_case_insensitive(self):CODE
LOWtests/test_parsing.py271 def test_captured_pattern_is_on_day(self):CODE
LOWtests/test_parsing.py293 def test_captured_pattern_has_am(self):CODE
LOWtests/test_parsing.py325 def test_captured_pattern_has_pm(self):CODE
LOWtests/test_parsing.py465 def test_multiple_datetime_expressions(self):CODE
LOWtests/test_parsing.py485 def test_duration_from_yesterday(self):CODE
LOWtests/test_parsing.py499 def test_duration_from_tomorrow(self):CODE
LOWtests/test_parsing.py527 def test_noon_without_convention(self):CODE
LOW⚡tests/test_adapter_validation.py8 def test_invalid_storage_adapter(self):CODE
LOW⚡tests/test_adapter_validation.py14 def test_valid_storage_adapter(self):CODE
LOW⚡tests/test_adapter_validation.py22 def test_invalid_logic_adapter(self):CODE
LOWtests/test_adapter_validation.py36 def test_valid_adapter_dictionary(self):CODE
LOWtests/test_adapter_validation.py46 def test_invalid_adapter_dictionary(self):CODE
LOW⚡tests/test_benchmarks.py44def get_chatterbot_corpus_trainer(chatbot):CODE
LOW⚡tests/test_benchmarks.py51def get_ubuntu_corpus_trainer(chatbot):CODE
LOW⚡tests/test_benchmarks.py60 def assert_response_duration_is_less_than(self, maximum_duration, strict=False):CODE
LOWtests/test_benchmarks.py96 def test_levenshtein_distance_comparisons(self):CODE
LOWtests/test_benchmarks.py111 def test_spacy_similarity_comparisons(self):CODE
LOWtests/test_benchmarks.py126 def test_get_response_after_chatterbot_corpus_training(self):CODE
LOWtests/test_benchmarks.py136 def test_get_response_after_ubuntu_corpus_training(self):CODE
LOWtests/test_benchmarks.py156 def test_levenshtein_distance_comparisons(self):CODE
LOWtests/test_benchmarks.py171 def test_spacy_similarity_comparisons(self):CODE
LOWtests/test_benchmarks.py186 def test_get_response_after_chatterbot_corpus_training(self):CODE
LOWtests/test_benchmarks.py196 def test_get_response_after_ubuntu_corpus_training(self):CODE
LOWtests/test_search.py22 def test_search_cast_to_list_no_results(self):CODE
LOWtests/test_search.py33 def test_search_additional_parameters(self):CODE
LOWtests/test_search.py66 def test_get_closest_statement(self):CODE
LOWtests/test_search.py85 def test_different_punctuation(self):CODE
LOWtests/test_search.py113 def test_get_closest_statement(self):CODE
LOWtests/test_search.py134 def test_confidence_exact_match(self):CODE
LOWtests/test_search.py143 def test_confidence_half_match(self):CODE
LOWtests/test_search.py184 def test_get_closest_statement(self):CODE
LOWtests/test_search.py203 def test_different_punctuation(self):CODE
LOWtests/test_search.py231 def test_get_closest_statement(self):CODE
292 more matches not shown…
Cross-File Repetition46 hits · 230 pts
SeverityFileLineSnippetContext
HIGHtests/storage/test_redis_adapter.py0instantiate the adapter before any tests in the test case run.STRING
HIGHtests/storage/test_mongo_adapter.py0instantiate the adapter before any tests in the test case run.STRING
HIGHtests/storage/test_sql_adapter.py0instantiate the adapter before any tests in the test case run.STRING
HIGHtests/storage/test_redis_adapter.py0the count method should return a value of 0 when nothing has been saved to the database.STRING
HIGHtests/storage/test_mongo_adapter.py0the count method should return a value of 0 when nothing has been saved to the database.STRING
HIGHtests/storage/test_sql_adapter.py0the count method should return a value of 0 when nothing has been saved to the database.STRING
HIGHtests/django_integration/test_django_adapter.py0the count method should return a value of 0 when nothing has been saved to the database.STRING
HIGHtests/storage/test_redis_adapter.py0the count method should return a value of 1 when one item has been saved to the database.STRING
HIGHtests/storage/test_mongo_adapter.py0the count method should return a value of 1 when one item has been saved to the database.STRING
HIGHtests/storage/test_sql_adapter.py0the count method should return a value of 1 when one item has been saved to the database.STRING
HIGHtests/django_integration/test_django_adapter.py0the count method should return a value of 1 when one item has been saved to the database.STRING
HIGHtests/storage/test_redis_adapter.py0test that a matching statement is returned when it exists in the database.STRING
HIGHtests/storage/test_mongo_adapter.py0test that a matching statement is returned when it exists in the database.STRING
HIGHtests/storage/test_sql_adapter.py0test that a matching statement is returned when it exists in the database.STRING
HIGHtests/django_integration/test_django_adapter.py0test that a matching statement is returned when it exists in the database.STRING
HIGHtests/storage/test_redis_adapter.py0if no parameters are passed to the filter, then all statements should be returned.STRING
HIGHtests/storage/test_mongo_adapter.py0if no parameters are passed to the filter, then all statements should be returned.STRING
HIGHtests/storage/test_sql_adapter.py0if no parameters are passed to the filter, then all statements should be returned.STRING
HIGHtests/django_integration/test_django_adapter.py0if no parameters are passed to the filter, then all statements should be returned.STRING
HIGHtests/storage/test_redis_adapter.py0tests for the create function of the storage adapter.STRING
HIGHtests/storage/test_mongo_adapter.py0tests for the create function of the storage adapter.STRING
HIGHtests/storage/test_sql_adapter.py0tests for the create function of the storage adapter.STRING
HIGHtests/django_integration/test_django_adapter.py0tests for the create function of the storage adapter.STRING
HIGHtests/storage/test_redis_adapter.py0the storage adapter should not update a statement with tags that are duplicates.STRING
HIGHtests/storage/test_mongo_adapter.py0the storage adapter should not update a statement with tags that are duplicates.STRING
HIGHtests/storage/test_sql_adapter.py0the storage adapter should not update a statement with tags that are duplicates.STRING
HIGHtests/django_integration/test_django_adapter.py0the storage adapter should not update a statement with tags that are duplicates.STRING
HIGHtests/storage/test_redis_adapter.py0tests for the update function of the storage adapter.STRING
HIGHtests/storage/test_mongo_adapter.py0tests for the update function of the storage adapter.STRING
HIGHtests/storage/test_sql_adapter.py0tests for the update function of the storage adapter.STRING
HIGHtests/django_integration/test_django_adapter.py0tests for the update function of the storage adapter.STRING
HIGHtests/storage/test_mongo_adapter.py0test that none is returned by the find method when a matching statement is not found.STRING
HIGHtests/storage/test_sql_adapter.py0test that none is returned by the find method when a matching statement is not found.STRING
HIGHtests/django_integration/test_django_adapter.py0test that none is returned by the find method when a matching statement is not found.STRING
HIGHchatterbot/storage/sql_storage.py0removes the statement that matches the input text. removes any responses from statements if the response text matches thSTRING
HIGHchatterbot/storage/redis.py0removes the statement that matches the input text. removes any responses from statements if the response text matches thSTRING
HIGHchatterbot/storage/storage_adapter.py0removes the statement that matches the input text. removes any responses from statements if the response text matches thSTRING
HIGHchatterbot/storage/django_storage.py0removes the statement that matches the input text. removes any responses from statements if the response text matches thSTRING
HIGHchatterbot/storage/sql_storage.py0creates a new statement matching the keyword arguments specified. returns the created statement.STRING
HIGHchatterbot/storage/mongodb.py0creates a new statement matching the keyword arguments specified. returns the created statement.STRING
HIGHchatterbot/storage/redis.py0creates a new statement matching the keyword arguments specified. returns the created statement.STRING
HIGHchatterbot/storage/storage_adapter.py0creates a new statement matching the keyword arguments specified. returns the created statement.STRING
HIGHchatterbot/storage/django_storage.py0creates a new statement matching the keyword arguments specified. returns the created statement.STRING
HIGHchatterbot/storage/sql_storage.py0modifies an entry in the database. creates an entry if one does not exist.STRING
HIGHchatterbot/storage/redis.py0modifies an entry in the database. creates an entry if one does not exist.STRING
HIGHchatterbot/storage/storage_adapter.py0modifies an entry in the database. creates an entry if one does not exist.STRING
Self-Referential Comments22 hits · 67 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_corpus.py147 # Create a file for testingCOMMENT
MEDIUM⚡tests/django_integration/test_secondary_database.py16 # Create a chatbot that explicitly uses the 'default' databaseCOMMENT
MEDIUM⚡tests/django_integration/test_secondary_database.py46 # Create a statementCOMMENT
MEDIUMexamples/openai_example.py18# Create a new instance of a ChatBotCOMMENT
MEDIUMexamples/specific_response_example.py4# Create a new instance of a ChatBotCOMMENT
MEDIUMexamples/ollama_example.py17# Create a new instance of a ChatBotCOMMENT
MEDIUMexamples/memory_sql_example.py7# Create a new instance of a ChatBotCOMMENT
MEDIUMexamples/basic_example.py4# Create a new chat bot named CharlieCOMMENT
MEDIUMexamples/default_response_example.py5# Create a new instance of a ChatBotCOMMENT
MEDIUMexamples/terminal_example.py12# Create a new instance of a ChatBotCOMMENT
MEDIUMexamples/learning_feedback_example.py14# Create a new instance of a ChatBotCOMMENT
MEDIUMexamples/terminal_mongo_example.py7# Create a new ChatBot instanceCOMMENT
MEDIUMchatterbot/trainers.py600 # Create the data directory if it does not already existCOMMENT
MEDIUMchatterbot/tagging.py67 # Create a new empty spacy nlp objectCOMMENT
MEDIUMchatterbot/logic/unit_conversion.py203 # Create a statement and process itSTRING
MEDIUMchatterbot/storage/sql_storage.py34 # Create a file database if the database is not a connection stringCOMMENT
MEDIUMchatterbot/storage/sql_storage.py302 # Create the tag if it doesn't existCOMMENT
MEDIUMchatterbot/storage/sql_storage.py359 # Create the tag if it does not existCOMMENT
MEDIUMchatterbot/storage/sql_storage.py393 # Create a new statement entry if one does not already existCOMMENT
MEDIUMchatterbot/storage/sql_storage.py418 # Create the recordCOMMENT
MEDIUMchatterbot/storage/mongodb.py66 # Create a storage-aware statementCOMMENT
MEDIUMchatterbot/storage/redis.py593 # Create a Document-like object to use with model_to_objectCOMMENT
Unused Imports27 hits · 27 pts
SeverityFileLineSnippetContext
LOWtests/test_examples.py11CODE
LOWtests/test_examples.py14CODE
LOWtests/test_examples.py17CODE
LOWtests/test_examples.py32CODE
LOWtests/test_examples.py35CODE
LOWtests/test_examples.py38CODE
LOWtests/test_examples.py41CODE
LOWtests/test_examples.py64CODE
LOWtests/test_examples.py67CODE
LOWchatterbot/vectorstores.py4CODE
LOWchatterbot/__init__.py4CODE
LOWchatterbot/tagging.py63CODE
LOWchatterbot/tagging.py122CODE
LOWchatterbot/logic/__init__.py1CODE
LOWchatterbot/logic/__init__.py2CODE
LOWchatterbot/logic/__init__.py3CODE
LOWchatterbot/logic/__init__.py4CODE
LOWchatterbot/logic/__init__.py5CODE
LOWchatterbot/logic/__init__.py6CODE
LOWchatterbot/logic/__init__.py7CODE
LOWchatterbot/logic/__init__.py7CODE
LOWchatterbot/logic/__init__.py7CODE
LOWchatterbot/storage/__init__.py1CODE
LOWchatterbot/storage/__init__.py2CODE
LOWchatterbot/storage/__init__.py3CODE
LOWchatterbot/storage/__init__.py4CODE
LOWchatterbot/storage/__init__.py5CODE
Redundant / Tautological Comments15 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/django_integration/__init__.py11# Check if Django is availableCOMMENT
LOWchatterbot/parsing.py671 # Check if query is `2 days before yesterday` or `day before yesterday`STRING
LOWchatterbot/conversation.py97 # Set timezone to UTC if no timezone was providedCOMMENT
LOWchatterbot/chatterbot.py86 # Check if storage adapter has a preferred taggerCOMMENT
LOWchatterbot/chatterbot.py132 # Check if storage adapter has a preferred search algorithmCOMMENT
LOWchatterbot/logic/llm_adapters.py115 # Check if adapter supports tool functionalityCOMMENT
LOWchatterbot/logic/llm_adapters.py512 # Check if model matches any known patternCOMMENT
LOWchatterbot/logic/llm_adapters.py639 # Check if LLM wants to use a toolCOMMENT
LOWchatterbot/logic/llm_adapters.py834 # Check if LLM wants to use a toolCOMMENT
LOWchatterbot/logic/logic_adapter.py125 # Set confidence to zero because a random response is selectedCOMMENT
LOWchatterbot/logic/time_adapter.py58 # Check if the input statement contains a time-related questionCOMMENT
LOWchatterbot/storage/sql_storage.py62 # Set isolation_level to None to execute outside transactionCOMMENT
LOWchatterbot/storage/sql_storage.py92 # Check if the expected index exists on the text field of the statement tableCOMMENT
LOWchatterbot/storage/sql_storage.py103 # Check if the expected index exists on the in_response_to field of the statement tableCOMMENT
LOWchatterbot/storage/sql_storage.py330 # Check if any statements already have a search textCOMMENT
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/storage/test_mongo_adapter.py35except ServerSelectionTimeoutError:CODE
HIGHchatterbot/logic/llm_adapters.py353except json.JSONDecodeError:CODE
HIGHchatterbot/storage/mongodb.py51except OperationFailure:CODE
Excessive Try-Catch Wrapping15 hits · 13 pts
SeverityFileLineSnippetContext
LOWtests/django_integration/__init__.py26 except Exception as e:CODE
LOWchatterbot/vectorstores.py60 except Exception as e:CODE
LOWchatterbot/ext/django_chatterbot/abstract_models.py141 except Exception:CODE
LOWchatterbot/logic/llm_adapters.py168 except Exception as e:CODE
LOWchatterbot/logic/llm_adapters.py276 except Exception as e:CODE
LOWchatterbot/logic/llm_adapters.py542 except Exception as e:CODE
LOWchatterbot/logic/llm_adapters.py583 except Exception as e:CODE
LOWchatterbot/logic/llm_adapters.py607 except Exception as e:CODE
LOWchatterbot/logic/llm_adapters.py689 except Exception as e:CODE
LOWchatterbot/logic/llm_adapters.py780 except Exception as e:CODE
LOWchatterbot/logic/llm_adapters.py804 except Exception as e:CODE
LOWchatterbot/logic/llm_adapters.py883 except Exception as e:CODE
LOWchatterbot/logic/mathematical_evaluation.py118 except Exception as e:CODE
LOWchatterbot/logic/unit_conversion.py162 except Exception as e:STRING
LOWchatterbot/logic/unit_conversion.py212 except Exception as e:STRING
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL…ples/django_example/django_example/static/js/jquery.js4232jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHchatterbot/logic/llm_adapters.py241 Execute a tool by its name with the given parameters. Args: tool_name: Name of the tool toSTRING
HIGHchatterbot/logic/llm_adapters.py418 Process the input statement using the LLM. Args: statement: The input statement to processSTRING
Deep Nesting10 hits · 10 pts
SeverityFileLineSnippetContext
LOWchatterbot/parsing.py587CODE
LOWchatterbot/parsing.py665CODE
LOWchatterbot/chatterbot.py55CODE
LOWchatterbot/chatterbot.py271CODE
LOWchatterbot/trainers.py160CODE
LOWchatterbot/trainers.py294CODE
LOWchatterbot/logic/llm_adapters.py611CODE
LOWchatterbot/logic/unit_conversion.py146CODE
LOWchatterbot/logic/mcp_tools.py100CODE
LOWchatterbot/storage/redis.py101CODE
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py121# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32COMMENT
LOW…ples/django_example/django_example/static/js/jquery.js941 // Regular expressionsCOMMENT
LOW…ples/django_example/django_example/static/js/jquery.js3401 get: function( owner, key ) {COMMENT
LOW…ples/django_example/django_example/static/js/jquery.js8801jQuery.fn.andSelf = jQuery.fn.addBack;COMMENT
LOW.github/workflows/python-package.yml61 # --------------------------------------------------------------COMMENT
LOWchatterbot/trainers.py701 extract_kwargs = {}COMMENT
LOWchatterbot/logic/best_match.py41 breakCOMMENT
LOWchatterbot/storage/redis.py401 sort_by=orderingCOMMENT
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUM…ples/django_example/django_example/static/js/jquery.js8813 // understands anonymous AMD modules. A named AMD is safest and most robustCOMMENT
LOWchatterbot/logic/llm_adapters.py428 # If no tools are configured, just call LLM directlyCOMMENT
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/python-package.yml61 # --------------------------------------------------------------COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMchatterbot/storage/redis.py139 # Configure embedding modelCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/django_integration/test_settings.py11SECRET_KEY = 'fake-key'CODE