Questions tagged [pig-latin]

Standard Pig Latin and similar rule-based word mangling schemes

Filter by
Sorted by
Tagged with
7 votes
1 answer
323 views

piglatin exercise in rust

This is my attempt to make the exercise suggested at the end of this chapter of rust's official tutorial ...
JoulinRouge's user avatar
0 votes
1 answer
170 views

Rust Pig Latin exercise solution

I just finished the chapter about collections from the Rust book, and it recommended trying some exercises provided there, such as a Pig Latin translator. Convert strings to pig latin. The first ...
lorinet3's user avatar
  • 133
2 votes
1 answer
70 views

Pig Latin terminal app in Rust

I've started learning Rust a few days ago. This is the Pig Latin exercise from the Rust Book. The code works as expected. I have commented the logic of the program in the code. My handling of ...
user1984's user avatar
  • 123
1 vote
1 answer
47 views

Rust Pig Latin Translator - Idiomatic suggestions

This is the code I came up with for the Rust pig latin exercise. I am looking for suggestions on how to make it more idiomatic. I think working with iterators instead of chars and Strings would be a ...
Samuel Page's user avatar
2 votes
1 answer
87 views

The Rust Programming Language Pig Latin

This is my implementation of the Pig Latin recommended exercise in The Rust Programming Language book. Any pointers on making this code more idiomatic or run more optimal? ...
CGLike's user avatar
  • 121
7 votes
1 answer
332 views

Pig Latin translator in C

I am learning C, and wrote this pig-latin translator. If no argument is given, it operates on standard input. Otherwise, it operates on the arguments given. Here are some examples: ...
phillbush's user avatar
  • 854
2 votes
2 answers
364 views

Simplified Pig Latin translator in APL

I wrote a simplified pig latin translator in APL and I would like some feedback on it, as I am not sure my implementation is neat enough. The simplified pig latin translation follows the following ...
RGS's user avatar
  • 1,058
2 votes
1 answer
194 views

Go pig Latin translator

I've been recently fooling around with Go(lang) and ended up doing a (very) simple pig Latin parser. I'm pretty sure this is not the best solution out there (no punctuation and only lowercase letters) ...
baduker's user avatar
  • 1,348
16 votes
2 answers
3k views

Translate English to Pig Latin

This is a program for converting English to the pseudo-language Pig Latin. Not the strictest form of Pig Latin but it most likely will accurately output an argument in Pig Latin. I got the idea from a ...
notak's user avatar
  • 605
2 votes
1 answer
388 views

Pig Latin in Rust

I feel like this code can be written in a better way but don't know how. Any help would be really appreciated. ...
Robear Wagih's user avatar
5 votes
2 answers
229 views

Pig Latin Anslatortray

I've created a program that translates any word into the form of igpay atinlay or pig Latin! I got the project idea from here and you can read the rules here. My program outputs the same translation ...
Gabriel Diaz's user avatar
7 votes
2 answers
17k views

Java Pig Latin Translator

Over the last few days I created this Pig Latin Translator just for fun. I would really appreciate it if anybody could give suggestions of how to improve the code and make the program more efficient. ...
Agnik Banerjee's user avatar
3 votes
1 answer
1k views

Pig Latin game resolved with a regex in Java

I recreated the Pig Latin game on Java. The program takes an arbitrary number of command line arguments as words, and prints to the standard output these words translated with following rules: For ...
user avatar
0 votes
1 answer
659 views

Pig Latin Translator in C++

I made this Pig Latin translator in C++ and I was wondering what I could improve and what is good about it. I used the stringstream class to get the individual words. ...
Asher's user avatar
  • 119
2 votes
1 answer
388 views

Pig Latin Script and Runtime

Wrote a basic pig latin script in python where the input is a string and it outputs the pig latin equivalent. I was just wondering what the runtime of this code would be and if there was a way to make ...
Kevin Richards's user avatar
4 votes
2 answers
1k views

Convert string to pig latin in Rust

I'm new to Rust and am working through the exercises found on the bottom of this page. The function below converts a string into pig latin. The requirements are as follows. Convert strings to Pig ...
John Stritenberger's user avatar
7 votes
1 answer
4k views

Pig Latin exercise in Rust

The title says it all. I'm reading "The Rust Programming Language" 2nd ed. right now, and just finished the "Collections" chapter. I know there's a ton of Pig Latin code here, but I think Rust ...
Atmaks's user avatar
  • 173
5 votes
1 answer
2k views

Rövarspråket Language Encoder and Decoder

Used Python 3 for a solution to a Reddit /r/DailyProgrammer challenge. When we Swedes are young, we are taught a SUPER-SECRET language that only kids know, so we can hide secrets from our confused ...
Aaron S.'s user avatar
3 votes
1 answer
407 views

The Odin Project - Project Ruby: Translating from English to Pig Latin

I just finished the pig latin translator for The Odin Project and I would appreciate some honest feedback for my code. The code is intended to be "test-driven learning", and therefore emulates test ...
Adrian DeRose's user avatar
3 votes
0 answers
278 views

Translator that translate from English to Pyglatin or from PygLatin to English

I am almost completely done with this program. Now I just need to figure out how to use tkinter to put this in a GUI but here is what I have thus far. Constructive criticism is always welcome. ...
Michael Howard's user avatar
8 votes
1 answer
2k views

Pig latin translating program

About 2 months ago I started studying python and then 3 days ago sat and began to write a program (found the dumbest & simplest thought I could: a pyglatin translator). I finally got it working ...
Michael Howard's user avatar
3 votes
1 answer
96 views

Converting regular text phrase to Pig Latin in Groovy

Am I using the best conventions or are there better ways? ...
Lakshan Sivananthan's user avatar
2 votes
1 answer
15k views

Pig Latin converter in Python

How is it and can it be optimised? ...
Hannan Rhodes's user avatar
9 votes
2 answers
8k views

Pig Latin Translator in Python

I am a relatively new Python programmer and made a simple Pig Latin to English translator and vice versa. I would just like it if someone reviewed my code and see if anything can be done to make it ...
vkumar's user avatar
  • 307
3 votes
1 answer
153 views

Haskell Pig Latin Translator - v2

Thanks to Gurkenglas for the help with the previous iteration: Haskell - Pig Latin Translator! Given the constraint that the newtypes are required, what ...
Joshua Grosso Reinstate CMs's user avatar
3 votes
1 answer
281 views

Haskell - Pig Latin Translator

What improvements can I make to the following Pig Latin translator? So far, I've been wondering about the FlexibleInstances declaration, but I can't think of how to ...
Joshua Grosso Reinstate CMs's user avatar
3 votes
1 answer
1k views

Learning nested for loops in Python with Pig Latin translator

I've been trying to learn Python for a bit now. I've taken a few courses, but I've found that I've been going about them wrong and had allowed them to "hold my hand" too much. I'm trying to build ...
FrontEnder's user avatar
39 votes
2 answers
2k views

It'th wabbit theathon

I don't know regex. I want to learn regex, but learning regex just for the sake of regex would be quite boring. So I decided to learn Ruby as well (which so far looks a lot like Python, which I'm ...
Mast's user avatar
  • 13.1k
3 votes
1 answer
5k views

Pig Latin Translator in Java

For starters, I'm a student taking AP Computer Science this year, loving it so far. Lots of fun, especially problems like this. I think I'm going to make it a regular practice to post some of my ...
Wolverine1621's user avatar
6 votes
3 answers
23k views

C++ Pig Latin program

I'm just wanting some input on to how others would approach this problem. I am learning and wish to gain insight on others techniques. Be as critical as you need. I want to learn. I feel this code is ...
Ritchie Shatter's user avatar
0 votes
3 answers
171 views

Word transformation function

My code does what it's suppose to do but the code is failing Pylint checks. After pasting my code into Pylint checker, it says that Too many branches (15/12) and its failed me on the Pylint checks. ...
user avatar
7 votes
3 answers
5k views

Word Separator and Pig Latin Program Final Edit

This is an updated version of my previous Java program that asks the user for a sentence and then separates the words and then converts the sentence into Pig Latin. My previous program was working, ...
user21563966's user avatar
7 votes
4 answers
10k views

Separate combined words in a sentence and convert them into Pig Latin

My program is complete and working, but I would like second opinions on it. Here are the instructions for the assignment: The program will accept a string as input in which all of the words are ...
user21563966's user avatar
2 votes
5 answers
741 views

CCC Rövarspråket (Pig Latin) translator

I have a challenge: In Sweden, there is a simple child's game similar to Pig Latin called Rövarspråket (Robbers Language). In the CCC version of Rövarspråket, every consonant is replaced by ...
ʇolɐǝz ǝɥʇ qoq's user avatar
8 votes
4 answers
6k views

Pig Latin in Java

I've done my second application in Java now. I want to know if: This code is efficient This code can be written in a shorter and faster way Any flaws Any misuse or better use of concepts Main Class: ...
Abandoned Account's user avatar
6 votes
2 answers
3k views

Converting the first and last name to pig latin

The following question was taken from Absolute Java 5th ed. by Walter Savitch: Write a program that starts with the string variable first set to your first name and the string variable last set to ...
Oompa Loompa's user avatar
3 votes
1 answer
1k views

Pig Latin Translator in Ruby and Rspec

PigLatin Kata ...
user341493's user avatar
2 votes
3 answers
1k views

Pig Latin Code Kata

I've just complete a Pig Latin translator as a code kata and I was hoping someone would review it for me. Here is the kata: ...
user341493's user avatar
2 votes
2 answers
5k views

Python Pig Latin Translator

This is only my second Python script, so let me have it! If anything seems off in style or implementation, please nit pick away. I want to learn. I know it could've been done in less lines of code ...
asteri's user avatar
  • 4,869
7 votes
1 answer
6k views

Simple Pig Latin Translator

The goal of my assignment is simple: Write a program that converts a given text to "Pig Latin". Pig Latin consists of removing the first letter of each word in a sentence and placing that ...
TheDarkLion's user avatar
7 votes
3 answers
886 views

Pig Latin Translator - follow-up

About a week ago, I put up this code and got some really good help. I've modified it a bit and was seeking if someone would review my second iteration. Original can be found here. Here's the new ...
tshauck's user avatar
  • 347
7 votes
1 answer
2k views

Pig Latin Translator

Could someone review the following code? ...
tshauck's user avatar
  • 347