Handle a new term in a local context defined as a string with tests. Handle a new term in a local context defined as invalid with tests. Lay out the scructure for handling the rest of the cases in the new term definition sub algorithm of the process context algorithm.