A port of Ruby on Rails inflector to Python
