Input: When was anorexia classified as a mental illness?
Output: 

 When was anorexia classified by the medical profession as a recognized condition? 
 late 19th century