A really, really basic semantic indexer (Ruby version)