def process(sentence): ''' Process the sentence ''' keywords = sentence.keywords(include=["VB", "NS"]) pp = sentence.get_part("PP", indexes=True) if pp: keywords += pp paul.trim_word(keywords, "to") paul.log("KEYWORDS:", keywords) temp_key = get_key(keywords) if temp_key[1]: key = temp_key[0] else: return temp_key[0] temp_val = get_val(keywords, key, sentence) if temp_val[1]: val = temp_val[2] confirm = temp_val[0] else: return temp_val[0] return make_change(key, val, confirm)