betting_combat.feeds.vocab
vocab.py — every vendor’s words in ours: methods, results, stances, card sections, event kinds, statuses, and what a Kalshi or Polymarket market is about. One place, so a word a vendor adds is one line here and nowhere else.
method_of · stance_of · section_of · event_kind · bout_status_of · event_status_of · country_ofKalshiContract · kalshi_contract a Kalshi market's kind, method, round (its fighter is its ``ufc_competitor``: the catalog resolves it)PolyContract · intl_contract · us_contract a Polymarket market's kind, method, round, line and which fighter sideClasses
KalshiContract
PolyContract
Functions
bout_status_of
bout_status_of(text: str | None, cancelled: bool = False) -> BoutStatuscountry_of
country_of(text: str | None) -> str | NoneOne name per country (UFCStats says ‘USA’, Cito ‘United States’).
event_kind
event_kind(title: str | None, slug: str | None = None) -> EventKindThe card’s kind by its name. The specials (Noche UFC, the White House’s UFC Freedom 250) are main cards: numbered (Sam 2026-11-11); a TUF finale, ‘UFC Live’ and ‘UFC Macao’ were Fight Nights under other names; Road to UFC and the 1990s specials are other.
event_status_of
event_status_of(text: str | None) -> EventStatusintl_contract
intl_contract(market_type: str | None, question: str | None, line: float | None) -> PolyContract | NoneA Polymarket intl market from its sports type and question. Its fighter (method or round of victory, the moneyline’s outcomes) is named in the question or outcome: the feed finds it.
kalshi_contract
kalshi_contract(ticker: str, custom_strike: dict[str, object] | None, subtitle: str | None) -> KalshiContract | NoneWhat a UFC series market is about, from its series, its suffix and its custom strike; None for a series we do not read.
method_of
method_of(text: str | None) -> Method | NoneA result’s method in Cito’s or UFCStats’ words (‘KO/TKO’, ‘U-DEC’, ‘Decision - Split’, “TKO - Doctor’s Stoppage”, ‘CNC’, ‘Overturned’ …); ‘Other’ when unread, None when blank.
section_of
section_of(text: str | None) -> CardSection | Nonestance_of
stance_of(text: str | None) -> Stance | Noneus_contract
us_contract(slug: str) -> PolyContract | NoneA Polymarket US market from its slug: ‘aec-…’ the moneyline (long = fighter 1), and the
‘astatc-…-