Although determining a generic implementation of `score_ngram` and `_contingency` will take a bit of time.