Text this: Collective dynamics of stock market efficiency