Check to see if a given word matches a template.