OCaml Assignment: Pig Latin
Fall 2000, David Matuszek, Villanova University

Your assignment is to write an OCaml function latinize S to translate an English sentence S (represented as a string) into Pig Latin. For example,

- latinize "when the cats away the mice will play";;
> "enwhay ethay atscay awayhay ethay icemay illway ayplay"

The rules for translating into Pig Latin are:

Simplifying assumptions:

Hints:

Extra credit:

Turn in:

Due dates: July 26 (Final exam date). No late programs, no extensions.