Inflector::variable does this.