Two Gram Predicate (TGP) is a search of the inverted index with a term of two characters. For a dataset that established an inverted index, it can find the matching ID in each record in the inverted index.