Electroencephalography (EEG) is a non-invasive technique used to measure electrical activity in the brain through electrodes placed on the scalp. It provides real-time data about brain function and is particularly valuable in understanding cognitive processes, including language processing, by capturing the brain's electrical responses to various stimuli and tasks.