-4
0
The Challenge
Convert a phrase of two words to reverse style: candy bar -> bar le candy
.
Specifications
- There will be one word (only
a-zA-Z0-9
+-
), a space (), and then another word.
- For equal length, score is used to determine winner.
Test cases:
candy bar -> bar le candy
code golf -> golf le code
programming puzzles -> puzzles le programming
4Seems a bit too simple. – orlp – 2016-04-11T23:18:22.743
@orlp I want to see how short it can be in long languages, like Java or languages with bad string parsing. – NoOneIsHere – 2016-04-11T23:29:07.807
I haven't studied French for over 30 years, but surely the
le
belongs before the noun, not after? – Neil – 2016-04-11T23:45:56.4231@Neil This isn't supposed to be actual French. It is just reversing the adjective and noun, with a 'le' in between. – NoOneIsHere – 2016-04-11T23:46:54.603
10surely it would be
(LE) bar DE candy
for it to bear any resemblance to actual french. I find the idea that this resembles french to be quite grating. – Level River St – 2016-04-12T00:03:50.277@LevelRiverSt It is 'French style' not 'French'. It is just reversing the adjective and noun, with a 'le' in between. – NoOneIsHere – 2016-04-12T00:12:12.057
9Next-o you-o will-o be telling-o me-o that this is Spanish-o style. It's not French style. It's the style of a meme written by someone who knows nothing about French. If you put
bar DE candy
it would at least have some degree of authenticity. – Level River St – 2016-04-12T00:17:09.1171Downvoting because of how trivial it is. – Downgoat – 2016-04-12T03:39:21.920
1@Downgoat Have you downvoted "Hello, World"? – NoOneIsHere – 2016-04-12T04:17:35.067
4
@NoOneIsHere Hello, World! has a different purpose, it's a pretty good reference of codegolfed source about one of the most common exercise there is. Also, if you really want to point out to this challenge, look at how the specs are specified for something so trivial, it is actually a question of great quality.
– Katenkyo – 2016-04-12T06:37:18.1872
Everybody arguing about French, chat here.
– NoOneIsHere – 2016-04-12T15:02:35.390The specification talks about adjectives, but there isn't a single adjective in any of the test cases. What on Earth is the challenge? – Peter Taylor – 2016-04-12T17:31:05.747
@PeterTaylor convert a two word phrase (e.g.
code golf
) into it'sself reversed, with a ' le ' inbetween (socode golf
->golf le code
). – NoOneIsHere – 2016-04-12T18:12:54.0678To Closevoters: How is this unclear? It's trivial, sure, but that's not what close votes are for. That's what downvotes are for. – James – 2016-04-12T20:41:52.993
1@DrGreenEggsandHamDJ I agree, I think the example is perfectly clear. The close votes started around the time of Peter's comment, and I think they are about the fact that this has very little to do with real french (though the title claims it does.) Technically Peter is right, the first word in the examples are not adjectives. But they are nouns functioning as adjectives. – Level River St – 2016-04-12T21:58:17.853
@cat wizzwizz4 added an edit to the queue and I accepted it. – NoOneIsHere – 2016-04-16T01:22:04.967
@NoOneIsHere Better! :D – cat – 2016-04-16T01:22:50.180
I VTR'd because this is sufficiently different than the newer question. – OldBunny2800 – 2017-05-24T20:50:43.647