Generalizing from social media data: a formal theory approach