Questions tagged [pig-latin]

Standard Pig Latin and similar rule-based word mangling schemes

Filter by
Sorted by
Tagged with
7
votes
1answer
33 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: ...
2
votes
2answers
99 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 ...
2
votes
1answer
71 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) ...
16
votes
2answers
2k 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 ...
2
votes
1answer
191 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
180 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 ...
7
votes
2answers
9k 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. ...
3
votes
1answer
761 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
444 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
337 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 ...
3
votes
2answers
630 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
2k 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
1k 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
306 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
241 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
82 views

Converting regular text phrase to Pig Latin in Groovy

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

Pig Latin converter in Python

How is it and can it be optimised? ...
9
votes
2answers
7k 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
128 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
215 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
510 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 ...
38
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 ...
6
votes
3answers
19k 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
149 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
4k 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
531 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
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 ...
3
votes
1answer
1k views

Pig Latin Translator in Ruby and Rspec

PigLatin Kata ...
2
votes
3answers
994 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 ...
7
votes
3answers
832 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
2k views

Pig Latin Translator

Could someone review the following code? ...