Shouldn't we memoize this? Also, if @representor["semantics"] is nil, this blows up. Should have spec coverage for that case I would think as well. Also, might consider using #each_with_object here. @ecampbell-mdsol, have you benchmarked #each_with_object vs. casting to a Hash like this?