Text this: Inference of a Susceptible–Infectious stochastic model