Like I say in the comment just above, this whole PR is absolutely not meant to be a complete solution. It's just a tentative proof of concept, studying the idea for a single case (I guess I should have said "unigrams", or "1-grams" instead of "word ngrams"), hence the hardcoding of certain parameters.