Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
param = 'picture';
else if (param.endsWith('_id'))
param = param.substring(0, param.length-3);
else if (param === 'p_to')
param = 'recipient';
if (match === '$$')
utterance += '\\$';
else
utterance += '\\_\\_\\_\\_ {\\small (' + clean(param) + ')}';
}
}
let sentence = '';
let prevtoken = null;
for (let token of utterance.split(' ')) {
sentence = detokenize(sentence, prevtoken, token);
prevtoken = token;
}
buf += sentence;
buf += '\n\n';
return buf;
}