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

Hello, guys 😎, in this article, I will be writing …

Deploying a DotNet API To Railway 🚂

teaching with less practicality
We all have our funny, ridiculous, silly, or inspiring story …

Learning to Code

About The Author

Samson Amaugo

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

3 Comments

  1. Sam

    This is a link to mine
    https://code.sololearn.com/W8zNGh16B9BH

    March 27, 2019
  2. JeClives

    https://code.sololearn.com/cX0bqsM5jHc4/?ref=app

    That’s mine

    March 29, 2019
    • Sammy

      cool bro ..Nice one

      April 11, 2019

Leave a Reply

Cancel reply

Search Site

Recent Posts

  • Running Entity Framework Migrations in an Aspire-Bootstrapped Orleans Project
  • Using XDebug in Laravel Sail (VSCODE)
  • Custom Redis Streams Provider for Orleans
  • Creating a Custom File Storage Provider for Microsoft Orleans
  • Incremental Generators In C#

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 Swacblooms

  • Running Entity Framework Migrations in an Aspire-Bootstrapped Orleans Project
  • Using XDebug in Laravel Sail (VSCODE)
  • Custom Redis Streams Provider for Orleans
  • Creating a Custom File Storage Provider for Microsoft Orleans
  • Incremental Generators In C#
  • Hot Chocolate Data Loader: A Quick Guide
  • Exploring Policy-Based Authorization in Minimal API with .NET 8
  • Using Cloud Firestore in Blazor WebAssembly
  • Serving A VueJs App from DotNet
  • Dynamic Subscriptions in Hot Chocolate 🔥🍫

Swacblooms🦋

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