User:Kaldari/Interview task (JavaScript)

Write a jQuery plugin to implement a new function called piglatinify. The function should be able to convert the text in an element into Pig Latin without losing any formatting. For example... $('.sentence').piglatinify; ...should convert... The quick brown fox jumps over 193 lazy dogs. ...into... eThay uickqay ownbray oxfay umpsjay overay 193 azylay ogsday. You don't have to worry about keeping the capitalization correct.