A team of Japanese scientists have built a device that can predict words before they are spoken by analyzing brainwaves.