Skip to main content
Mod Removes Wiki by Martin EnderMod
Post Made Community Wiki by Martin EnderMod
added 242 characters in body
Source Link
Knerd
  • 1.4k
  • 6
  • 5

Phoneword generator

This is

Goal

The goal is to write the shortest phoneword generator.

Input

As input you get for just a sequence of numbers (0-9). Given via stdin.

Output

You should write the first 15 possible results to stdout bonus points if the output only contains real words. The words need to have the exact same length like the input string.

What if there are less than 15 options?

Then you can just make up words.

Phoneword

A phoneword, is a sequence of characters, that is typed with letters in your phone which map to the numbers they display.

How to treat 0 and 1

If the input contains a 0 or a 1, you should treat them as 0 and 1. To make a word with them anyway, you can use leetspeak.

Mapping

For the mapping check this picture:

Phonekeypad

Taken from wikipedia

As example I use codegolf itself: 26334653 translates to CODEGOLF it also gives many more words, here is a list.

Bonus

You can divide the amount of characters by 2, if your code gives only words which are in listed in the Oxford dictionary. For that you are allowed to use a web api to check them.

Phoneword generator

This is

Goal

The goal is to write the shortest phoneword generator.

Input

As input you get for just a sequence of numbers. Given via stdin.

Output

You should write the first 15 possible results to stdout bonus points if the output only contains real words. The words need to have the exact same length like the input string.

Phoneword

A phoneword, is a sequence of characters, that is typed with letters in your phone which map to the numbers they display.

Mapping

For the mapping check this picture:

Phonekeypad

Taken from wikipedia

As example I use codegolf itself: 26334653 translates to CODEGOLF it also gives many more words, here is a list.

Bonus

You can divide the amount of characters by 2, if your code gives only words which are in listed in the Oxford dictionary. For that you are allowed to use a web api to check them.

Phoneword generator

This is

Goal

The goal is to write the shortest phoneword generator.

Input

As input you get for just a sequence of numbers (0-9). Given via stdin.

Output

You should write the first 15 possible results to stdout bonus points if the output only contains real words. The words need to have the exact same length like the input string.

What if there are less than 15 options?

Then you can just make up words.

Phoneword

A phoneword, is a sequence of characters, that is typed with letters in your phone which map to the numbers they display.

How to treat 0 and 1

If the input contains a 0 or a 1, you should treat them as 0 and 1. To make a word with them anyway, you can use leetspeak.

Mapping

For the mapping check this picture:

Phonekeypad

Taken from wikipedia

As example I use codegolf itself: 26334653 translates to CODEGOLF it also gives many more words, here is a list.

Bonus

You can divide the amount of characters by 2, if your code gives only words which are in listed in the Oxford dictionary. For that you are allowed to use a web api to check them.

added 494 characters in body
Source Link
Knerd
  • 1.4k
  • 6
  • 5

Phoneword generator

This is

Goal

The goal is to write the shortest phoneword generator.

Input

As input you get for just a sequence of numbers. Given via stdin.

Output

You should write the first 15 possible results to stdout bonus points if the output only contains real words. The words need to have the exact same length like the input string.

Phoneword

A phoneword, is a wordsequence of characters, that is typed with letters in your phone which map to the numbers they display.

Mapping

For the mapping check this picture:

Phonekeypad

Taken from wikipedia

As example I use codegolf itself: 26334653 translates to CODEGOLF it also gives many more words, here is a list.

Bonus

You can divide the amount of characters by 2, if your code gives only english words which are in listed in the Oxford dictionary. For that you are allowed to use a web api to check wordsthem.

Phoneword generator

This is

Goal

The goal is to write the shortest phoneword generator.

Phoneword

A phoneword, is a word, that is typed with letters in your phone which map to the numbers they display.

As example I use codegolf itself: 26334653 translates to CODEGOLF it also gives many more words, here is a list.

Bonus

You can divide the amount of characters by 2, if your code gives only english words. For that you are allowed to use a web api to check words.

Phoneword generator

This is

Goal

The goal is to write the shortest phoneword generator.

Input

As input you get for just a sequence of numbers. Given via stdin.

Output

You should write the first 15 possible results to stdout bonus points if the output only contains real words. The words need to have the exact same length like the input string.

Phoneword

A phoneword, is a sequence of characters, that is typed with letters in your phone which map to the numbers they display.

Mapping

For the mapping check this picture:

Phonekeypad

Taken from wikipedia

As example I use codegolf itself: 26334653 translates to CODEGOLF it also gives many more words, here is a list.

Bonus

You can divide the amount of characters by 2, if your code gives only words which are in listed in the Oxford dictionary. For that you are allowed to use a web api to check them.

removed the rules again
Source Link
Knerd
  • 1.4k
  • 6
  • 5

Phoneword generator

This is

Goal

The goal is to write the shortest phoneword generator.

Rules

You need to write the shortest code, cause that is the point of codegolf. You are not allowed to use languages, which are specifically for codegolf like golfscript or CJam. I want to give "real world languages" a better chance with this rule.

Phoneword

A phoneword, is a word, that is typed with letters in your phone which map to the numbers they display.

As example I use codegolf itself: 26334653 translates to CODEGOLF it also gives many more words, here is a list.

Bonus

You can divide the amount of characters by 2, if your code gives only english words. For that you are allowed to use a web api to check words.

Phoneword generator

This is

Goal

The goal is to write the shortest phoneword generator.

Rules

You need to write the shortest code, cause that is the point of codegolf. You are not allowed to use languages, which are specifically for codegolf like golfscript or CJam. I want to give "real world languages" a better chance with this rule.

Phoneword

A phoneword, is a word, that is typed with letters in your phone which map to the numbers they display.

As example I use codegolf itself: 26334653 translates to CODEGOLF it also gives many more words, here is a list.

Bonus

You can divide the amount of characters by 2, if your code gives only english words. For that you are allowed to use a web api to check words.

Phoneword generator

This is

Goal

The goal is to write the shortest phoneword generator.

Phoneword

A phoneword, is a word, that is typed with letters in your phone which map to the numbers they display.

As example I use codegolf itself: 26334653 translates to CODEGOLF it also gives many more words, here is a list.

Bonus

You can divide the amount of characters by 2, if your code gives only english words. For that you are allowed to use a web api to check words.

added 257 characters in body
Source Link
Knerd
  • 1.4k
  • 6
  • 5
Loading
The actual tag is code-golf, not codegolf
Source Link
ProgramFOX
  • 8.3k
  • 2
  • 17
  • 32
Loading
Source Link
Knerd
  • 1.4k
  • 6
  • 5
Loading