Text this: Theory and measurement of economic externalities