def lidston_smoothing(wordcount, doc_length, word_instance, landa):
    """ Increase word count of each word by landa to avoid zero probability, and return the probability. """
    return (wordcount + landa)/(doc_length + word_instance * landa)