Dementia - a loss of brain function that occurs with certain diseases; affects thinking, language, judgment, and memory.