UNPKG

compromise

Version:
12 lines (9 loc) 277 B
//ain't -> are/is not const apostropheT = function (terms, i) { if (terms[i].normal === "ain't" || terms[i].normal === 'aint') { return null //do this in ./two/ } let before = terms[i].normal.replace(/n't/, '') return [before, 'not'] } export default apostropheT