Deduce tags from arrays