How to reason without words: inference as categorization