'use strict';
const pos = require('../../sentence/pos/parts_of_speech.js');
const easy_contractions = {
'i\'d': ['i', 'would'],
'she\'d': ['she', 'would'],
'he\'d': ['he', 'would'],
'they\'d': ['they', 'would'],
'we\'d': ['we', 'would'],
'i\'ll': ['i', 'will'],
'she\'ll': ['she', 'will'],
'he\'ll': ['he', 'will'],
'they\'ll': ['they', 'will'],
'we\'ll': ['we', 'will'],
'i\'ve': ['i', 'have'],
'they\'ve': ['they', 'have'],
'we\'ve': ['we', 'have'],
'should\'ve': ['should', 'have'],
'would\'ve': ['would', 'have'],
'could\'ve': ['could', 'have'],
'must\'ve': ['must', 'have'],
'i\'m': ['i', 'am'],
'we\'re': ['we', 'are'],
'they\'re': ['they', 'are'],
'cannot': ['can', 'not']
};
let ambiguous = {
'he\'s': 'he',
'she\'s': 'she',
'it\'s': 'it',
'who\'s': 'who',
'what\'s': 'what',
'where\'s': 'where',
'when\'s': 'when',
'why\'s': 'why',
'how\'s': 'how'
};
let opposite_map = Object.keys(ambiguous).reduce(function(h, k) {
h[ambiguous[k]] = k;
return h;
}, {});