Post History
Sandbox
Abbreviate everything [released]
#9: Post edited
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 ```
#6: Post edited
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
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
- # 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
- # 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
- # 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
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 ```