elixirway v0.1.1 PigLatin

This is the main PigLatin module for translating words.

Summary

Functions

Determines if a word starts with a vowel

Translates the given word to Piglatin

Functions

starts_with_vowel(word)

Determines if a word starts with a vowel.

Returns true if the word starts with a vowel. Otherwise false.

Examples

iex> PigLatin.starts_with_vowel("apple")
true
translate(word)

Translates the given word to Piglatin.

Returns the translated word.

Examples

iex> PigLatin.translate("apple")
"appleway"