James Golick implemented this idea in Ruby last year: https://github.com/jamesgolick/friendly
We used Friendly at my previous company wego.com and t worked quite well although I don't know shehar they at still using it. (Friendly doesnt look like it's in activ development)