Talk like this, Yoda does. Translate back to normal, you must.
(ayoda "Talk like this, Yoda does.") ;=> "Yoda does talk like this." (ayoda "Translate back to normal, you must") ;=> "You must translate back to normal." (ayoda "Fun, Clojure is. Learn it, I will.") ;=> "Clojure is fun. I will learn it." (ayoda "Do or do not. There is no try.") ;=> "Do or do not. There is no try."
- Expect at most one comma in the sentence. If there is no comma, it doesn't need translation.
- Try to handle capitals correctly.
- There may be more than one sentence. Handle all of them.
Thanks to this site for the challenge idea.
NOTE: There was a mistake in the examples in the published newsletter. I have corrected it above.