@@ -4,7 +4,7 @@ version: "1.1"
44
55# See also: sharp-edges.yaml for production gotchas
66
7- identity : Report section analyst. Extract items from 10-K, 10-Q, 8-K using report.items or convenience properties.
7+ identity : Report section analyst. Extract items from 10-K, 10-Q, 8-K, 20-F, 40-F using report.items or convenience properties.
88
99patterns :
1010 - name : Get Report Object
@@ -13,6 +13,7 @@ patterns:
1313 tenk = company.get_filings(form="10-K")[0].obj() # TenK object
1414 tenq = company.get_filings(form="10-Q")[0].obj() # TenQ object
1515 eightk = company.get_filings(form="8-K")[0].obj() # EightK object
16+ forty_f = company.get_filings(form="40-F")[0].obj() # FortyF (Canadian MJDS)
1617
1718 - name : 10-K Sections
1819 when : Extract annual report sections
@@ -36,6 +37,41 @@ patterns:
3637 tenq['Item 3'] # Market risk disclosures
3738 tenq.items # List available items
3839
40+ - name : 40-F Sections (Canadian MJDS)
41+ when : Extract sections from Canadian annual reports (Shopify, Royal Bank, etc.)
42+ code : |
43+ forty_f = company.get_filings(form="40-F")[0].obj() # FortyF object
44+
45+ # Convenience properties (NI 51-102 AIF sections)
46+ forty_f.business # Business description from AIF
47+ forty_f.risk_factors # Risk factors
48+ forty_f.corporate_structure # Corporate structure
49+ forty_f.dividends # Dividends
50+ forty_f.capital_structure # Capital structure (if present)
51+ forty_f.directors_and_officers # Directors and officers
52+ forty_f.legal_proceedings # Legal proceedings
53+
54+ # Fuzzy lookup by keyword
55+ forty_f["business"] # Matches "Description Of The Business"
56+ forty_f["dividends"] # Case-insensitive
57+
58+ # Full AIF text for LLM context
59+ forty_f.aif_text # Plain text (100K+ chars)
60+ forty_f.aif_html # Raw HTML
61+
62+ # List detected sections
63+ forty_f.items # ['Corporate Structure', 'Risk Factors', ...]
64+
65+ # Financials (XBRL, same as 10-K)
66+ forty_f.financials # Financials object
67+ forty_f.income_statement # Income statement
68+ forty_f.balance_sheet # Balance sheet
69+ note : |
70+ 40-F uses NI 51-102 AIF section headings, NOT US "Item 1", "Item 2" numbers.
71+ Sections are detected by regex; not all sections appear in every filing.
72+ Properties return None when a section is absent (e.g. capital_structure for SHOP).
73+ Use fuzzy keyword lookup: forty_f["business"] matches any heading containing "business".
74+
3975 - name : 8-K Events
4076 when : Extract current report events
4177 code : |
0 commit comments