Questions tagged [pig-latin]

Standard Pig Latin and similar rule-based word mangling schemes

Filter by
Sorted by
Tagged with
1
vote
1answer
106 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. ...
5
votes
2answers
145 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 ...
4
votes
1answer
4k 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. ...
2
votes
1answer
553 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 ...
0
votes
1answer
310 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. ...
2
votes
1answer
276 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 ...
2
votes
1answer
409 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 ...
5
votes
1answer
938 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 ...
5
votes
1answer
593 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 ...
4
votes
1answer
227 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 ...
3
votes
0answers
216 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. ...
6
votes
1answer
1k 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 hehe (a pyglatin translator)). I finally got it ...
3
votes
1answer
77 views

Converting regular text phrase to Pig Latin in Groovy

Am I using the best conventions or are there better ways? ...
2
votes
1answer
5k views

Pig Latin converter in Python

How is it and can it be optimised? ...
7
votes
2answers
6k 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 ...
3
votes
1answer
113 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 ...
3
votes
1answer
179 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 ...
3
votes
1answer
347 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 ...
36
votes
2answers
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 ...
3
votes
1answer
3k 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 ...
5
votes
3answers
17k 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 ...
0
votes
3answers
146 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. ...
7
votes
3answers
3k 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, ...
7
votes
4answers
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 ...
2
votes
5answers
499 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 ...
8
votes
4answers
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: ...
6
votes
2answers
2k 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 ...
3
votes
1answer
1k views

Pig Latin Translator in Ruby and Rspec

PigLatin Kata ...
2
votes
3answers
950 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: ...
2
votes
2answers
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 ...
7
votes
1answer
4k 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 ...
6
votes
3answers
812 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 ...
7
votes
1answer
1k views

Pig Latin Translator

Could someone review the following code? ...