10-K Item 7A silently duplicates Item 7: page-number-only TOC collides two items on one anchor (Regions Financial)
Issue Type
- [x] Data Quality Issue (incorrect financial values, missing data)
- [ ] XBRL Parsing Issue (statement rendering, concept mapping)
- [ ] Filing Access Issue (download failures, attachment problems)
- [ ] Performance Issue (slow operations, memory problems)
- [ ] Compatibility Issue (platform/dependency conflicts)
- [ ] Documentation Issue (unclear instructions, missing examples)
Environment
EdgarTools Version: 5.43.1 Python Version: 3.13.2 Operating System: Ubuntu 24.04 LTS (kernel 6.8.0-136-generic)
Bug Description
What you expected to happen:
obj['Item 7A'] should return Item 7A's own content — here a short incorporation-by-reference stub ("This information is set forth in the Risk Management section of Item 7 and is incorporated herein by reference.") — not Item 7's 194K-char MD&A body. Two distinct items should never resolve to the identical slice; if the anchors cannot be separated, returning a short stub, None, or a low-confidence warning would all be better than silently duplicating Item 7.
What actually happened:
For REGIONS FINANCIAL CORP's FY2021 10-K, obj['Item 7A'] returns 194,033 chars that open with "Item 7. Management's Discussion and Analysis of Financial Condition and Results of Operations" — the Item 7A lookup resolves to Item 7's content, and obj['Item 7A'] == obj['Item 7'] is literally True.
The TOC pass assigns part_ii_item_7 and part_ii_item_7a the same anchor (both start ..._49, end ..._271), so the two sections are the identical slice. Both appear in the section map at 194,033 chars, confidence 0.95, with no warning — so there is no signal to detect the defect without independently scanning the returned text.
Error message (if any):
None — the item lookup is silent. Both part_ii_item_7 and part_ii_item_7a
report 194,033 chars at confidence 0.95 with empty warnings.
Reproduction
Company/Ticker: REGIONS FINANCIAL CORP (RF), CIK 0001281761 Time Period: FY2021 (period 2021-12-31, filed 2022-02-24) Relevant Forms: 10-K, accession 0001281761-22-000016
Minimal code to reproduce:
import os
import re
os.environ.setdefault("EDGAR_IDENTITY", "you [email protected]")
from edgar import find
f = find("0001281761-22-000016")
obj = f.obj()
print("full text:", len(f.text()))
content = obj['Item 7A'] or ""
print("Item 7A:", len(content), "chars")
print("head:", repr(content[:200]))
print("tail:", repr(content[-200:]))
print("same object as Item 7:", content == (obj['Item 7'] or ""))
# Line-anchored headers of items that should FOLLOW this section. Any hit
# means the extraction overran its end boundary. \s+ between "Item" and the
# number: filer templates often use a non-breaking space ("Item\xa07A.").
for item in ['Item 8', 'Item 9', 'Item 9A', 'Item 9B', 'Item 9C', 'Item 10']:
pat = re.escape(item).replace("\\ ", "\\s+")
m = re.search(rf"(?m)^\s*{pat}\s*[.:–—-]", content)
print(item, "->", m.start() if m else None)
# Section map: name, chars, confidence, detection method, warnings
for name, s in obj.document.sections.items():
txt = s.text() or ""
print(name, len(txt), getattr(s, "confidence", None),
getattr(s, "detection_method", None), getattr(s, "warnings", None))
Observed:
full text: 952,729
obj['Item 7A']: 194,033 chars
head: 'Table of Contents \n\nItem\xa07. Management’s Discussion and Analysis of
Financial Condition and Results of Operations\n\nEXECUTIVE OVERVIEW\n\n...'
tail: '...e and Qualitative Disclosures about Market Risk\n\nThis information is
set forth in the Risk Management section of Item 7 and is incorporated
herein by reference.'
obj['Item 7A'] == obj['Item 7'] -> True
section map (name: chars, confidence, method, warnings):
part_ii_item_6: 19 0.95 toc []
part_ii_item_7: 194,033 0.95 toc []
part_ii_item_7a: 194,033 0.95 toc [] <- identical slice to Item 7
part_ii_item_8: 284,727 0.95 toc []
(all other items normal)
The real Item 7A is the two-line incorporation-by-reference stub visible at the tail of the returned slice.
Additional Context
Root cause (generic TOC parser, page-number-only links)
This filing is not parsed by the Workiva agent path (filing_agent is None), so it goes through the generic TOC parser in edgar/documents/utils/toc_analyzer.py. Its linked TOC carries only page numbers — the "Item N." labels and titles are plain, non-link cells — so each item resolves via _extract_preceding_item_label to the anchor of the page it starts on. Item 7 (MD&A) and Item 7A both begin on page 41, and both page-number links point at that one page anchor (..._49):
from edgar.documents.utils.toc_analyzer import TOCAnalyzer
a = TOCAnalyzer(form='10-K')
m = a.analyze_toc_structure(html) # part_ii_item_7 -> ..._49
# part_ii_item_7a -> ..._49 (collision)
Downstream (toc_section_extractor._analyze_sections) two distinct item keys on one anchor slice to the identical span. Note the shared-anchor handling added for #904 keeps both sections but gives them identical spans with no confidence penalty or warning.
The document body carries each item behind its own heading anchor — a body-header scan resolves part_ii_item_7a to a distinct anchor (..._3742) that sits correctly between Item 7's ..._49 and Item 8's ..._271. That is enough to separate them.
Proposed fix
A fork branch sf1tzp/edgartools@fix-regions-item-7a adds an anchor-collision repair pass at the end of analyze_toc_structure: when two distinct item keys resolve to a single anchor, re-resolve the displaced item from the body-header scan (each item's own heading behind its own anchor), guarded so the new anchor sits after the shared anchor and before the next item in document order (no boundary inversion). The item whose body anchor equals the shared anchor keeps it (MD&A owns the page it starts on); the other is re-pointed. When the body scan cannot separate them, the collision is logged rather than left silent.
Result for RF: Item 7A → its 181-char incorporation-by-reference stub, Item 7 → intact 193,850-char MD&A, no overrun into Item 8+. Verified offline against a committed RF fixture; 89 existing section/TOC tests pass with no regressions (including the #904 Coeur shared-anchor and #891 Nathan's Famous stale-anchor tests).
Impact
Downstream consumers get mislabeled content from elsewhere in the filing, which silently duplicates content across sections and inflates token counts for NLP/RAG pipelines. Because both sections report at confidence 0.95 with no warnings, the defect is invisible without independently scanning the returned text.
A bulk scan of Fortune-500 filings (edgartools 5.43.1) surfaced the same "Item 7A returns the Item 7 MD&A body" shape on SO (10-K ×5) and MCD (10-K) as well. SO is the same root cause (generic-parser page-number anchor collision, Item 7 + 7A → one anchor), but its body item headings aren't matched by the current body-header scan (_is_bold_header / the body item-header pattern), so the proposed fix logs the collision but cannot yet recover it — broadening the body-header scan to those heading styles would extend coverage.
Related prior art
- #904 (fixed in #906, 5.43.1) — the shared-anchor handling referenced above was added there for adjacent one-line stubs (Coeur Mining Item 1B/1C); it keeps both colliding sections but assigns them identical spans, which is what surfaces here as a silent duplicate on a large item.
- #915 / PR #916 — same symptom family (item boundaries wrong) but a different root cause: the Workiva-agent TOC parser's split label/title hrefs. RF goes through the generic parser instead, so #916 does not address it (verified: applying that branch leaves RF's
Item 7A == Item 7unchanged).
This issue will be handled using EdgarTools' systematic issue resolution workflow. A reproduction test will be created to verify the fix.
Released in 5.44.0, now on PyPI.
obj['Item 7A'] on Regions Financial's FY2021 10-K returns its own 181-char incorporation-by-reference stub, and Item 7 stays intact at 193,850 chars with no overrun into Item 8.
Scope limit worth restating so it isn't a surprise: Southern Co and McDonald's produce the same symptom from the same root cause, but their body item headings aren't matched by the current bold-header scan, so the collision is now logged rather than silently returning a neighbour's text — detectable, but not yet repaired. Broadening that scan is tracked separately.