Modified ngrams to include trie