Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Sandbox

Post History

60%
+1 −0
Sandbox Abbreviate everything [released]

posted 3y ago by General Sebast1an‭  ·  edited 1y ago by trichoplax‭

#9: Post edited by user avatar trichoplax‭ · 2023-07-06T13:32:25Z (over 1 year ago)
Add finalized tag now that the sandbox can be filtered to exclude tags
Abbreviate everything [released]
# Challenge

Make a program that takes input of a string and abbreviate it.

- All letters of an abbreviation are capitalized, so keep that in mind.
- Whitespace, numbers and non-English characters are ignored.
- If the inputted string is a paragraph (2+ sentences), the abbreviation will be split by spaces (` `) where `.`, `?` or `!` are, while commas (`,`) are ignored in this splitting scenario.
- Words that are connected by hyphens (`-`) will result to only one letter.
- The only non-alphabetical characters to remain in the result are colons (`:`) and semicolons (`;`).
- This is <a class="badge is-tag">code-golf</a>, so shortest program in each language wins.

# Test Cases
```none
// Input
# Output

Hello, World!
HW

Can you make me a sandwich?
CYMMAS

hyper-neutrino
H

Too long; didn't read
TL;DR

I studied, don't worry. I will pass.
ISDW IWP

What???!?!
W

Get me 99 bottles of beer, bro!
GMBOBB
```
#8: Post edited by user avatar General Sebast1an‭ · 2021-09-13T11:37:37Z (about 3 years ago)
  • Abbreviate everything [in test (beta)]
  • Abbreviate everything [released]
#7: Post edited by user avatar General Sebast1an‭ · 2021-09-11T03:44:50Z (about 3 years ago)
  • Abbreviate everything
  • Abbreviate everything [in test (beta)]
#6: Post edited by user avatar Moshi‭ · 2021-08-29T02:17:37Z (about 3 years ago)
Grammatical fixes
Abbreviate everything
  • # Challenge
  • Make a program that takes input of a string and abbreviate it.
  • - All letters of an abbreviation are capitalized, so keep that in mind.
  • - Whitespace, numbers and non-English characters are ignored.
  • - If the inputted string is a paragraph (2+ sentences), the abbreviation will be split by spaces (` `) depending where `.`, `?` or `!` is, while commas (`,`) are ignored in this splitting scenario.
  • - Words that are connected by hyphens (`-`) will result to only one word.
  • - The only non-alphabetical characters to remain in the result are colons (`:`) and semicolons (`;`).
  • - This is <a class="badge is-tag">code-golf</a>, so shortest program in each language wins.
  • # Test Cases
  • ```none
  • // Input
  • # Output
  • Hello, World!
  • HW
  • Can you make me a sandwich?
  • CYMMAS
  • hyper-neutrino
  • H
  • Too long; didn't read
  • TL;DR
  • I studied, don't worry. I will pass.
  • ISDW IWP
  • What???!?!
  • W
  • Get me 99 bottles of beer, bro!
  • GMBOBB
  • ```
  • # Challenge
  • Make a program that takes input of a string and abbreviate it.
  • - All letters of an abbreviation are capitalized, so keep that in mind.
  • - Whitespace, numbers and non-English characters are ignored.
  • - If the inputted string is a paragraph (2+ sentences), the abbreviation will be split by spaces (` `) where `.`, `?` or `!` are, while commas (`,`) are ignored in this splitting scenario.
  • - Words that are connected by hyphens (`-`) will result to only one letter.
  • - The only non-alphabetical characters to remain in the result are colons (`:`) and semicolons (`;`).
  • - This is <a class="badge is-tag">code-golf</a>, so shortest program in each language wins.
  • # Test Cases
  • ```none
  • // Input
  • # Output
  • Hello, World!
  • HW
  • Can you make me a sandwich?
  • CYMMAS
  • hyper-neutrino
  • H
  • Too long; didn't read
  • TL;DR
  • I studied, don't worry. I will pass.
  • ISDW IWP
  • What???!?!
  • W
  • Get me 99 bottles of beer, bro!
  • GMBOBB
  • ```
#5: Post edited by user avatar user‭ · 2021-08-28T20:07:48Z (about 3 years ago)
Abbreviate everything
  • # Challenge
  • Make a program that takes input of a string and abbreviate it.
  • - All letters of an abbreviation are capitalized, so keep that in mind.
  • - Whitespace, numbers and non-English characters are ignored.
  • - If the inputted string is a paragraph (2+ sentences), the abbreviation will be split by spaces (` `) depending where `.`, `?` or `!` is, while commas (`,`) are ignored in this splitting scenario.
  • - Words that are connected by hyphens (`-`) will result to only one word.
  • - The only characters to remain in the result are colons (`:`) and semicolons (`;`).
  • - This is <a class="badge is-tag">code-golf</a>, so shortest program in each language wins.
  • # Test Cases
  • ```none
  • // Input
  • # Output
  • Hello, World!
  • HW
  • Can you make me a sandwich?
  • CYMMAS
  • hyper-neutrino
  • H
  • Too long; didn't read
  • TL;DR
  • I studied, don't worry. I will pass.
  • ISDW IWP
  • What???!?!
  • W
  • Get me 99 bottles of beer, bro!
  • GMBOBB
  • ```
  • # Challenge
  • Make a program that takes input of a string and abbreviate it.
  • - All letters of an abbreviation are capitalized, so keep that in mind.
  • - Whitespace, numbers and non-English characters are ignored.
  • - If the inputted string is a paragraph (2+ sentences), the abbreviation will be split by spaces (` `) depending where `.`, `?` or `!` is, while commas (`,`) are ignored in this splitting scenario.
  • - Words that are connected by hyphens (`-`) will result to only one word.
  • - The only non-alphabetical characters to remain in the result are colons (`:`) and semicolons (`;`).
  • - This is <a class="badge is-tag">code-golf</a>, so shortest program in each language wins.
  • # Test Cases
  • ```none
  • // Input
  • # Output
  • Hello, World!
  • HW
  • Can you make me a sandwich?
  • CYMMAS
  • hyper-neutrino
  • H
  • Too long; didn't read
  • TL;DR
  • I studied, don't worry. I will pass.
  • ISDW IWP
  • What???!?!
  • W
  • Get me 99 bottles of beer, bro!
  • GMBOBB
  • ```
#4: Post edited by user avatar General Sebast1an‭ · 2021-08-28T03:40:13Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of a string and abbreviate it.
  • - All letters of an abbreviation are capitalized, so keep that in mind.
  • - Whitespace, numbers and non-English characters are ignored.
  • - If the inputted string is a paragraph (2+ sentences), the abbreviation will be split by spaces (` `) depending where `.`, `?` or `!` is, while commas (`,`) are ignored in this splitting scenario.
  • - Words that are connected by hyphens (`-`) will result to only one word.
  • - The only characters to remain in the result are colons (`:`) and semicolons (`;`).
  • - This is <a class="badge is-tag">code-golf</a>, so shortest program in each language wins.
  • # Test Cases
  • ```none
  • // Input
  • # Output
  • Hello, World!
  • HW
  • Can you make me a sandwich?
  • CYMMAS
  • hyper-neutrino
  • H
  • Too long; didn't read
  • TL;DR
  • I studied, don't worry. I will pass.
  • ISDW IWP
  • What???!?!
  • W
  • ```
  • # Challenge
  • Make a program that takes input of a string and abbreviate it.
  • - All letters of an abbreviation are capitalized, so keep that in mind.
  • - Whitespace, numbers and non-English characters are ignored.
  • - If the inputted string is a paragraph (2+ sentences), the abbreviation will be split by spaces (` `) depending where `.`, `?` or `!` is, while commas (`,`) are ignored in this splitting scenario.
  • - Words that are connected by hyphens (`-`) will result to only one word.
  • - The only characters to remain in the result are colons (`:`) and semicolons (`;`).
  • - This is <a class="badge is-tag">code-golf</a>, so shortest program in each language wins.
  • # Test Cases
  • ```none
  • // Input
  • # Output
  • Hello, World!
  • HW
  • Can you make me a sandwich?
  • CYMMAS
  • hyper-neutrino
  • H
  • Too long; didn't read
  • TL;DR
  • I studied, don't worry. I will pass.
  • ISDW IWP
  • What???!?!
  • W
  • Get me 99 bottles of beer, bro!
  • GMBOBB
  • ```
#3: Post edited by user avatar General Sebast1an‭ · 2021-08-28T03:39:43Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of a string and abbreviate it.
  • - All letters of an abbreviation are capitalized, so keep that in mind.
  • - Whitespace and non-English characters are ignored.
  • - If the inputted string is a paragraph (2+ sentences), the abbreviation will be split depending where `.`, `?` or `!` is, while commas (`,`) are ignored in this splitting scenario.
  • - Words that are connected by hyphens (`-`) will result to only one word.
  • - The only characters to remain in the result are colons (`:`) and semicolons (`;`).
  • - This is <a class="badge is-tag">code-golf</a>, so shortest program in each language wins.
  • # Test Cases
  • ```none
  • // Input
  • # Output
  • Hello, World!
  • HW
  • Can you make me a sandwich?
  • CYMMAS
  • hyper-neutrino
  • H
  • Too long; didn't read
  • TL;DR
  • I studied, don't worry. I will pass.
  • ISDW IWP
  • What???!?!
  • W
  • ```
  • # Challenge
  • Make a program that takes input of a string and abbreviate it.
  • - All letters of an abbreviation are capitalized, so keep that in mind.
  • - Whitespace, numbers and non-English characters are ignored.
  • - If the inputted string is a paragraph (2+ sentences), the abbreviation will be split by spaces (` `) depending where `.`, `?` or `!` is, while commas (`,`) are ignored in this splitting scenario.
  • - Words that are connected by hyphens (`-`) will result to only one word.
  • - The only characters to remain in the result are colons (`:`) and semicolons (`;`).
  • - This is <a class="badge is-tag">code-golf</a>, so shortest program in each language wins.
  • # Test Cases
  • ```none
  • // Input
  • # Output
  • Hello, World!
  • HW
  • Can you make me a sandwich?
  • CYMMAS
  • hyper-neutrino
  • H
  • Too long; didn't read
  • TL;DR
  • I studied, don't worry. I will pass.
  • ISDW IWP
  • What???!?!
  • W
  • ```
#2: Post edited by user avatar General Sebast1an‭ · 2021-08-28T03:25:46Z (about 3 years ago)
  • # Challenge
  • Make a program that takes input of a string and abbreviate it.
  • - All letters of an abbreviation is capitalized, so keep that in mind.
  • - Whitespace and non-English characters are ignored.
  • - If the inputted string is a paragraph (2+ sentences), the abbreviation will be split depending where `.`, `?` or `!` is, while commas (`,`) are ignored in this splitting scenario.
  • - Words that are connected by hyphens (`-`) will result to only one word.
  • - The only characters to remain in the result are colons (`:`) and semicolons (`;`).
  • - This is <a class="badge is-tag">code-golf</a>, so shortest program in each language wins.
  • # Test Cases
  • ```none
  • // Input
  • # Output
  • Hello, World!
  • HW
  • Can you make me a sandwich?
  • CYMMAS
  • hyper-neutrino
  • H
  • Too long; didn't read
  • TL;DR
  • I studied, don't worry. I will pass.
  • ISDW IWP
  • What???!?!
  • W
  • ```
  • # Challenge
  • Make a program that takes input of a string and abbreviate it.
  • - All letters of an abbreviation are capitalized, so keep that in mind.
  • - Whitespace and non-English characters are ignored.
  • - If the inputted string is a paragraph (2+ sentences), the abbreviation will be split depending where `.`, `?` or `!` is, while commas (`,`) are ignored in this splitting scenario.
  • - Words that are connected by hyphens (`-`) will result to only one word.
  • - The only characters to remain in the result are colons (`:`) and semicolons (`;`).
  • - This is <a class="badge is-tag">code-golf</a>, so shortest program in each language wins.
  • # Test Cases
  • ```none
  • // Input
  • # Output
  • Hello, World!
  • HW
  • Can you make me a sandwich?
  • CYMMAS
  • hyper-neutrino
  • H
  • Too long; didn't read
  • TL;DR
  • I studied, don't worry. I will pass.
  • ISDW IWP
  • What???!?!
  • W
  • ```
#1: Initial revision by user avatar General Sebast1an‭ · 2021-08-28T03:23:45Z (about 3 years ago)
Abbreviate everything
# Challenge

Make a program that takes input of a string and abbreviate it.

- All letters of an abbreviation is capitalized, so keep that in mind.
- Whitespace and non-English characters are ignored.
- If the inputted string is a paragraph (2+ sentences), the abbreviation will be split depending where `.`, `?` or `!` is, while commas (`,`) are ignored in this splitting scenario.
- Words that are connected by hyphens (`-`) will result to only one word.
- The only characters to remain in the result are colons (`:`) and semicolons (`;`).
- This is <a class="badge is-tag">code-golf</a>, so shortest program in each language wins.

# Test Cases
```none
// Input
# Output

Hello, World!
HW

Can you make me a sandwich?
CYMMAS

hyper-neutrino
H

Too long; didn't read
TL;DR

I studied, don't worry. I will pass.
ISDW IWP

What???!?!
W
```