Semantic array detection