Tagging texts with tags automatically