To retrain ( a person ) psychologically so that he or she conforms again to society's norms and values, or adapts to a different environment ( for example to normal society after a prolonged term in prison )