import { PhrasesBuilder } from '../utils/phrases-builder' ; import { TrendInfo } from '../../interface' ; template example export function trendStrategy ( variableMap ) { const { measure , trend } = variableMap ; const phrases = new PhrasesBuilder ( ) ; phrases . add ( 'The' ) ; phrases . add ( measure , 'metric_name' ) ; phrases . add ( 'goes' ) ; phrases . add ( trend , 'trend_desc' ) ; phrases . addSymbol ( 'punctuation_stop' ) ; return phrases ; }