What about making this a hash?

    TRANSLATIONS = {
      "class" => "self.class",
      ...
    }

And then:

    to = TRANSLATIONS[to] || to