Text this: Sex, social institutions, and social structure