sort by bigrams frequency with penalty for more words