Text this: Sampling theory of surveys with application