Text this: A theory of measuring natural selection and genetic monitoring