Sha256: c58d4b077547740a1e0da674580e9d7bf9e50a8c979da94924ebc915e33b5748
Contents?: true
Size: 569 Bytes
Versions: 195
Compression:
Stored size: 569 Bytes
Contents
defmodule PigLatin do @doc """ Given a `phrase`, translate it a word at a time to Pig Latin. Words beginning with consonants should have the consonant moved to the end of the word, followed by "ay". Words beginning with vowels (aeiou) should have "ay" added to the end of the word. Some groups of letters are treated like consonants, including "ch", "qu", "squ", "th", "thr", and "sch". Some groups are treated like vowels, including "yt" and "xr". """ @spec translate(phrase :: String.t()) :: String.t() def translate(phrase) do end end
Version data entries
195 entries across 195 versions & 1 rubygems