Text this: A generalization of input-output analysis :