Text this: Economic theory of social institutions