This particular tutorial doesn’t cover anything that replaces text as-you-type. If you are looking for a way to do as-you-type substitutions, look at the autocomplete docs.
If you just having trouble with constructing template tags, see this article on how tags work with examples. Template tags can be used in the snippets discussed on this page, in auto-complete definitions, and in actions.