text2ngram now supports append option.
Updated documentation. Extracted two helper functions from text2ngram.