query: How long has psychology been around for?
passage: History of psychology
Psychology was a branch of the domain of philosophy until the 1870s, when it developed as an independent scientific discipline in Germany and the United States. Psychology as a self-conscious field of experimental study began in 1879, in Leipzig Germany, when Wilhelm Wundt founded the first laboratory dedicated exclusively to psychological research in Germany. Wundt was also the first person to refer to himself as a psychologist. Other important early contributors to the field include Hermann Ebbinghaus (a pioneer in the study of memory), William James (the American father of pragmatism), and Ivan Pavlov (who developed the procedures associated with classical conditioning).
passage: Buddhism and psychology
The establishment of Buddhism predates the field of psychology by over two millennia; thus, any assessment of Buddhism in terms of psychology is necessarily a modern invention. One of the first such assessments occurred when British Indologists started translating Buddhist texts from Pali and Sanskrit. The modern growth of Buddhism in the West and particularly the development of Buddhist modernism worldwide has led to the comparing and contrasting of European psychology and psychiatry with Buddhist theory and practice. According to Austrian psychologist Gerald Virtbauer, the contact of Buddhism and European Psychology has generally followed three main approaches:The earliest Buddhist writings are preserved in three-part collections called "Tipitaka" (Pali; Skt. "Tripitaka"). The first part, the Sutta Pitaka contains a series of discourses attributed to the Buddha containing much psychological material.