51 votes

Spoonerise words

Vim, 18 keystrokes /[aeiou]<CR>dbwvnhp0P The crucial trick is that pasting over something in Visual mode actually puts the old contents of the visual ...
orlp's user avatar
  • 39.1k
47 votes
Accepted

Convert singular to plural

Mathematica, 9 bytes Pluralize Yes, there is a built-in for this! Sample output Pluralize["car"] ...
JungHwan Min's user avatar
  • 13.8k
36 votes
Accepted

Distinguish English and Spanish with regular expressions

Any Language, 0.3677 (60.6064%, 1 byte) a No, I'm not joking. The single-character regular expression a successfully identifies ...
Silvio Mayolo's user avatar
35 votes

A Portuguese sequence of integers

Wolfram Language (Mathematica), 42 bytes Of course there is a built-in for this... And as @Charlie mentioned we can golf "Portuguese" to ...
ZaMoC's user avatar
  • 24.8k
33 votes
Accepted

Print your char count in words, in many languages

9 10 12 13 16 18 21 23 languages, 1000 bytes Bash (prints "duizend", Dutch) Zsh (prints "een Dausend", Luxembourgish) Dash (and other true POSIX shells) (prints "nje mije", Albanian) C (prints "et ...
randomdude999's user avatar
31 votes

Automate your first grade counting exercise

Perl 6, 119 113 bytes {my \n=<① ⑳ ㉑ ㉟ ㊱ ㊿>.map:{|map *.uniname.words[2..*].join,$^a..$^b} /\d/??n[^$_]!!1..1+first $_,n,:k} Unicode database FTW! Uses ...
smls's user avatar
  • 4,410
30 votes
Accepted

Dad jokes are fun

V, 13 bytes cEHi<esc>A, <C-r>" V! Try it online! Inspired by tsh's answer This takes advantage of the fact that ...
Candy Gumdrop's user avatar
27 votes

Count to 20 with Words!

Python 2, 145 bytes ...
Lynn's user avatar
  • 68.2k
22 votes

Convert English to a number without built-ins or libraries

C, 160 bytes ...
Bob's user avatar
  • 1,007
22 votes

I before E, except after C

JavaScript (ES6), 338 bytes A regex-based solution. This can probably be optimized some more. Returns 0 (not flipped) or 1 (...
Arnauld's user avatar
  • 191k
21 votes

Spoonerise words

brainfuck, 238 207 bytes ...
undergroundmonorail's user avatar
21 votes

Dad jokes are fun

C (gcc), 59 42 33 bytes -17 bytes thanks to @Conor O'Brien noticing that the import wasn't necessary -9 bytes thanks to @tsh pointing out a shorter, UB way of writing the function ...
Neil A.'s user avatar
  • 2,106
19 votes

Convert singular to plural

Retina, 57 53 56 55 58 57 bytes Thanks to MartinEnder for some golfing suggestions Thanks to BusinessCat for golfing 1 byte ...
user41805's user avatar
  • 13.1k
19 votes
Accepted

Count to 20 with Words!

Jelly,  49 35 31  30 bytes ṫ3,⁸Ṗ,$€ẎK “¤ƈȮⱮ⁴⁷ọḤƁŒ|⁾Ė»ḲÇ€K A niladic link returning a list of characters, or a full program printing that list as a ...
Jonathan Allan's user avatar
19 votes

Dad jokes are fun

V, 13 bytes cEHi<Esc>A, <C-O>p V! Try it online! New to V. Just knew it about 30 minutes ago. Anyway, this language is chosen just because ...
tsh's user avatar
  • 34.4k
18 votes

Spoonerise words

vim, 23 /[aeiou]<cr>"xd0wndb0Pw"xP I wonder if vim is actually competitive in this challenge. Probably not with the golfing languages, but perhaps with ...
Doorknob's user avatar
  • 71.4k
17 votes

A Yoda-speaking challenge, this is

Retina, 162 137 145 134 131 129 Multiple punctuation is now handled correctly. Test case: ...
Rainer P.'s user avatar
  • 2,517
17 votes

Spoonerise words

Python, 68 63 60 bytes import re lambda s:re.sub('([^aeiou]+|.+ )'*3,r'\3\2\1',s,1) Try it online on Ideone. How it works The pattern string is repeated thrice ...
Dennis's user avatar
  • 210k
16 votes

Output the next kana

Retina, 54 53 bytes T`au`ie`y. wa we T`\oeuia`ao T`ko`stn\hmyr\w`.a ^a ka Try it online. Explanation Wooo, showing off even more features from today's 0.7.2 ...
Martin Ender's user avatar
16 votes

How long is a Welsh word?

Retina, 23 bytes i`[cprt]h|dd|ff|ng|ll|. Try it online! Even moar regex.
user48538's user avatar
  • 1,542
16 votes

Convert singular to plural

JavaScript (ES6),  109  97 bytes s=>s[R='replace'](/([^aeiou])y$/,'$1ie')[R](/fe?$/,'ve')[R](/([^aeiou]o|[sxz]|[cs]h)$/,'$1e')+'s' Try it online!
Arnauld's user avatar
  • 191k
15 votes
Accepted

Patch the Paragraph

Python 2 I know that @atlasologist already posted a solution in Python 2, but the way my works is a bit different. This works by going through all holes, from top to bottom, left to right, looking 5 ...
xenia's user avatar
  • 8,112
15 votes

Count to 100 in Danish

JavaScript (ES6), 347 336 326 325 308 bytes ...
ETHproductions's user avatar
15 votes

Write a pluralization function for Russian

Python 2, 36 bytes lambda n:'5521'[n%~9/-3>>n/10%~9/-9] Try it online! Same length arithmetically: ...
xnor's user avatar
  • 144k
15 votes

Count to 20 with Words!

PowerShell, 166 163 bytes ...
AdmBorkBork's user avatar
  • 43.3k
15 votes

Sort spelled-out serial numbers

Husk, 9 8 bytes Ö†€¨tfṡn Try it online! Algorithm "inspired" by recursive's Stax answer (I've just changed the lookup string a bit), go upvote him! The trick ...
Leo's user avatar
  • 12.6k
14 votes

What is the most frequent word?

Jelly, 25 bytes ṣ⁶f€ØB;”-¤Œl©Qµ®ċЀĠṪịµẋE Try it online! or verify all test cases.
Dennis's user avatar
  • 210k
14 votes

Count to 100 in Danish

Fourier, 7028 bytes The bounty will go to Paul Schmitz's answer This was golfed programmatically using issacg's golfing program ...
Beta Decay's user avatar
  • 23.3k
13 votes

Multi-lingual Challenge

6 languages, 169 bytes Expects 0\n or 1\n as input, and prints words in: Python 2 (Dutch ...
Lynn's user avatar
  • 68.2k
13 votes

Automate your first grade counting exercise

Python3, 276 271 269 243 237 235 232 217 bytes Taking a cue from the @smls perl submission... ...
kuupaork's user avatar
  • 231

Only top scored, non community-wiki answers of a minimum length are eligible