Tag coding with AI