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

chatbot
My team and I participated in the Facebook DevC 2020 …

Making a Wikipedia chatbot with WIT.AI

DNA pairing
The DNA strand is missing the pairing element. Take each …

DNA Pairing

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

  • Implementing the MCP Stdio Transport Layer in .NET for VSCode Integration
  • 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

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

  • Implementing the MCP Stdio Transport Layer in .NET for VSCode Integration
  • 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

Swacblooms🦋

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