dwarf_score_from_ngrams