Semantic categorization in a linear order problem