Implementation of pig latin translator in Sinatra