/** * 财税行业意向信号词典(finance_tax 领域包 v0.2) * * 5 大类信号(招标 / 招聘 / 融资 / 经营变更 / 风险),每条命中加权到 lead score。 * * 设计: * - 词条用关键词字面匹配(substring,不 regex),简单稳定。 * - 单条 weight 0-25;total_weight cap 100。 * - 高权重 = 强意向(直接采购财税服务);低权重 = 弱信号(潜在)。 * - hint 字段是"财税解读" —— 销售看到 hint 知道为什么这条信号有效。 * * 这是绿火相对通用拓客 SaaS 的核心护城河:行业 know-how 编码到词典里。 * 通用拓客平台只能识别"招聘会计",绿火能识别"招聘会计 → 内部财务升级 * → 可能外包代账"。 */ export type SignalCategory = 'tender' | 'recruit' | 'finance' | 'change' | 'risk'; export interface SignalEntry { /** 关键词字面(substring 匹配),中文为主。 */ term: string; category: SignalCategory; /** 0-25。25 = 直接采购财税服务,最高优先级。 */ weight: number; /** 财税解读:销售看到这条信号知道下一步切入什么。 */ hint: string; } export declare const FINANCE_TAX_SIGNALS: SignalEntry[]; export interface SignalMatch { category: SignalCategory; /** 命中的词典 term。 */ term: string; /** 0-25。 */ weight: number; /** 该词条的财税解读。 */ hint: string; /** raw_texts 数组下标。 */ raw_text_idx: number; /** 命中处的上下文片段(前后 30 字符)。 */ snippet: string; } export declare function matchSignals(rawTexts: string[], categories?: SignalCategory[]): SignalMatch[]; /** 把一组 matches 聚合成 total_weight + 推断意向等级。 */ export declare function summarizeSignals(matches: SignalMatch[]): { total_weight: number; inferred_intent: '高' | '中' | '低' | '无'; by_category: Record; }; //# sourceMappingURL=signal_dictionary.d.ts.map