The nGram function tokenizes a given document based on the length specified by the Grams argument. It also provides additional control of tokenization by allowing the user to specify punctuation delimiters with the Punctuation argument.
These examples show the use of the Total and Overlapping arguments: