Post History
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 ar...
#2: Post edited
> This challenge is currently under beta release. If given enough positivity, it will remain here and stand as a fully released challenge. Otherwise, it will be deleted and put back in the [sandboxed post](https://codegolf.codidact.com/posts/283799). Please fix the errors there instead.- # 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
- ```
- # 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
- ```
#1: Initial revision
Abbreviate everything
> This challenge is currently under beta release. If given enough positivity, it will remain here and stand as a fully released challenge. Otherwise, it will be deleted and put back in the [sandboxed post](https://codegolf.codidact.com/posts/283799). Please fix the errors there instead. # 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 ```