Swacblooms🦋

Making the Moves
Menu
  • Home
  • Motivation
  • Education
  • Programming
  • About
  • Contact
  • Privacy Policy
Home
Programming
The Pig Latin Challenge
Programming

The Pig Latin Challenge

Samson Amaugo March 27, 2019

Translate the provided string to pig latin.

Pig Latin takes the first consonant (or consonant cluster) of an English word, moves it to the end of the word and suffixes an “ay”.

If a word begins with a promifen vowel you just add “way” to the end.

Input strings are guaranteed to be English words in all lowercase.

It should suit the following tests

  • translatePigLatin("california")should return “aliforniacay“.
  • translatePigLatin("paragraphs")should return “aragraphspay“.
  • translatePigLatin("glove")should return “oveglay“.
  • translatePigLatin("algorithm")should return “algorithmway“.
  • translatePigLatin("eight")should return “eightway“.
  • Should handle words where the first vowel comes in the end of the word.Should handle words without vowels.

Your function block should be in this format and should be edited to solve some issue

Submit the link to your code in the comment section. You can use any online editor of your choice.

Prev Article
Next Article

Related Articles

C#: Logging array values to the Console
In this my video I described some tips on how …

C#: Logging Array Values to the Console

Hello, in this post I would be talking about GraphQL. …

GraphQL Basic Overview

About The Author

Samson Amaugo

I am Samson Amaugo. I am a full-stack developer and I specialize in DotNet and the MERN stack.

Search Site

Recent Posts

  • Cloudflare Tunnel to Postgres, plus Swarm’s static IP problem
  • The Topological Sort
  • Building a Perceptron in .NET
  • Part 4 — Assertions: Verifying What You See
  • Part 3 — Actions and Auto-Waiting: Putting Locators to Work

Categories

  • EDUCATION
  • Motivation
  • Programming
  • Uncategorized

Get more stuff

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

we respect your privacy and take protecting it seriously

RSS feed: Swacblooms Swacblooms

Swacblooms🦋

Making the Moves
Copyright © 2026 Swacblooms🦋
Swacblooms - Making the Moves