subjectMatcher
Import from: @xbbg/xnews, @xbbg/xnews/parsers
subjectMatcher(
terms): (item) =>boolean
Defined in: src/sources/match.ts (declaration: sources/match.d.ts:18)
Builds a deterministic text matcher used to filter fixed market-news feeds (feeds without native per-subject query support) down to one subject.
querymatches when every whitespace-separated token appears in the item text, case-insensitively, at token boundaries.companyNamematches as a case-insensitive boundary-guarded phrase.tickermatches case-sensitively as a standalone uppercase token, which also covers$RGAandNYSE:RGAstyle mentions.
Parameters
terms
Returns
(item) => boolean
