Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

[S3] Dead-code and incomplete-plumbing sweep #52

Description

@erinepshovel-code

Six small cleanup items suitable for a single PR:

  1. core/operator/matcher.py::hyphen_compound_emission — imported by operator_extractor.py but never called; hyphen handling is inlined at the call site. Dead import + dead function.

  2. backend/src/edcmbone/parser/turns_rounds.pyimport math present but math is never referenced in the file. Dead import.

  3. core/parsing/tokenizer.py — dead fallback if not toks: toks = text.split() is unreachable: the trailing-gap path always appends at least one token. Dead branch.

  4. canon/loader.py — affix section list is hardcoded: ["inflectional", "derivational_prefixes", "derivational_suffixes"]. A new section added to the JSON is silently ignored. Should iterate affix_dict.keys() instead.

  5. core/behavioral/behavioral_metrics.py — accepts a ucns_store parameter, but behavioral_window.compute_behavioral_windows never passes it. The UCNS marker comparison path is dead in normal pipeline flow. Either wire it up or remove the parameter.

  6. canon/loader.py::CanonLoader() — re-reads and re-parses JSON on every construction. compute_round and compute_transcript create a fresh CanonLoader() when canon=None, causing per-round or per-transcript file reads at scale. Use a module-level singleton or require callers to pass the loader in.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions