[][src]Function oink::sentence_to_pig_latin

pub fn sentence_to_pig_latin(sentence: &str) -> Option<String>

Translates a sentence from English to Pig Latin.

Examples

let translated = oink::sentence_to_pig_latin("Hello, my name is Scott Walker.").unwrap();

assert_eq!("Ellohay, myay amenay isyay Ottscay Alkerway.", &translated);