Text this: Patents, invention and economic change