import { assetNewsKeywords } from './constants/asset-news-keywords'
import { toAssetKey } from './to-asset-key'

// True iff the asset has an entry in `assetNewsKeywords`. The news pipeline
// uses this as its "tracked by Markets" gate — Hyperliquid lists hundreds
// of perps (memecoins, microcaps) that have no keyword coverage and would
// false-tag articles via direct-symbol matching against English words.
export const hasNewsKeywords = ({
  dex,
  symbol,
}: {
  readonly dex?: string | undefined
  readonly symbol: string
}): boolean => assetNewsKeywords[toAssetKey({ dex, symbol })] !== undefined
