Text this: Method for determining the lengths of protocol keywords based on maximum likelihood probability