import { PhrasesBuilder } from '../utils/phrases-builder' ; import { MajorityInfo } from '../../interface' ; template example export function majorityStrategy ( variableMap ) { const { dimension , x , measure } = variableMap ; const phrases = new PhrasesBuilder ( ) ; phrases . add ( 'For' ) ; phrases . add ( dimension ) ; phrases . addSymbol ( 'punctuation_comma' ) ; phrases . add ( `${ x }` , 'dim_value' ) ; phrases . add ( 'accounts for the majority of' ) ; phrases . add ( measure ) ; phrases . addSymbol ( 'punctuation_stop' ) ; return phrases ; }