Sha256: d07e939f19ba58ec1825bc43b8a92efe72923509d5a457b2474a23654209f6c8

Contents?: true

Size: 568 Bytes

Versions: 69

Compression:

Stored size: 568 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

69 entries across 69 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/elixir/exercises/pig-latin/pig_latin.exs
trackler-2.2.1.118 tracks/elixir/exercises/pig-latin/pig_latin.exs
trackler-2.2.1.117 tracks/elixir/exercises/pig-latin/pig_latin.exs
trackler-2.2.1.116 tracks/elixir/exercises/pig-latin/pig_latin.exs
trackler-2.2.1.115 tracks/elixir/exercises/pig-latin/pig_latin.exs
trackler-2.2.1.114 tracks/elixir/exercises/pig-latin/pig_latin.exs
trackler-2.2.1.113 tracks/elixir/exercises/pig-latin/pig_latin.exs
trackler-2.2.1.111 tracks/elixir/exercises/pig-latin/pig_latin.exs
trackler-2.2.1.110 tracks/elixir/exercises/pig-latin/pig_latin.exs