add helper for generating a text snippet