Acronym Buster
Description:
Laura really hates people using acronyms in her office and wants to force her colleagues to remove all acronyms before emailing her. She wants you to build a system that will edit out all known acronyms or else will notify the sender if unknown acronyms are present.
Any combination of three or more letters in upper case will be considered an acronym. Acronyms will not be combined with lowercase letters, such as in the case of 'KPIs'. They will be kept isolated as a word/words within a string.
For any string:
If there are any unknown acronyms in the string, Laura wants you to return only the message:
So if the acronym in question was 'BRB', you would return the string:
If there is more than one unknown acronym in the string, return only the first in your answer.
If all acronyms can be replaced with full words according to the above, however, return only the altered string.
If this is the case, ensure that sentences still start with capital letters. '!' or '?' will not be used.
Similar Kata:
Stats:
Created | Nov 26, 2016 |
Published | Nov 26, 2016 |
Warriors Trained | 1245 |
Total Skips | 26 |
Total Code Submissions | 5406 |
Total Times Completed | 544 |
JavaScript Completions | 268 |
Python Completions | 263 |
Crystal Completions | 6 |
Ruby Completions | 35 |
Total Stars | 33 |
% of votes with a positive feedback rating | 85% of 158 |
Total "Very Satisfied" Votes | 119 |
Total "Somewhat Satisfied" Votes | 30 |
Total "Not Satisfied" Votes | 9 |
Total Rank Assessments | 8 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |