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 on brainwave patterns and is particularly useful in studying cognitive processes, including language processing, by capturing the timing and sequence of brain activity during specific tasks.