Ad
  • Custom User Avatar

    Thankes!

  • Custom User Avatar

    Your code fails to take into account when only the first letter of the word is in lowercase & the rest is uppercase:

    tBAWJUB becomes TBAWJUB => Technically not an acronym, but first letter of the first word of a sentence should be uppercased.

  • Custom User Avatar

    The random has a bug:
    It should work for random inputs too: 'TBAWJUB is an acronym. I do not like acronyms. Please remove them from your email.' should equal 'TBAWJUB PjqFAAUlcG strengths, weaknesses, opportunities and threats. FE j call to action. Hw. Key performance indicators. X. In a meeting. EWjqwuFMnh. To be decided'

    TBAWJUB is a acronym though

    Using Python

  • Default User Avatar

    Problem with acronym at the end of sentence, e.g. test result:

    It should work for random inputs too: 'FZM is an acronym. I do not like acronyms. Please remove them from your email.' should equal 'U. ZghDiYC VIuuH out of office. Call to action. FZM. UN cqyPZkwquH. JhhWvTulkG in a meeting call to action bJmIymJXox dip the end of the day QIp the end of the day. Call to action. Jw.'

    Seemingly this should reject "FZM" for being unknown, but the period is hiding it from the reference solution.

  • Custom User Avatar

    Following the issue below:

    There should be these 2 fixed and sample tests in all languages, possibly random tests too.

    • sdfsdsa KPI.WAH. (can only be determined after description is made clear)

    • sdfsdsa KPIWAH. (should return KPIWAH is an acronym. I do not like acronyms. Please remove them from your email.)

  • Custom User Avatar

    Description lacks clarity...

    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.

    • So, can it be combined with "." as well or must it be kept as a single word to be considered valid?

    • What about cases of other non-sentence-separating puncutations, ,;:'" ??

  • Custom User Avatar

    Approved (

  • Custom User Avatar

    Crystal: The current reference solution is not able to detect "non-acronym" followed by a full-stop. Causing it to return a wrong solution sometimes.

    For example:

    Testing for "rKhkithlwEc ROJ. SWOT. KPI. NRN yVbCHQtpH EWTZV"
    Expected: "EWTZV is an acronym. I do not like acronyms. Please remove them from your email."
         got: "ROJ is an acronym. I do not like acronyms. Please remove them from your email."
    
    Testing for "SWOT GAsonAANF CTA EzXcLjO JwLuwzCE. NRN. eoxSX. SWOT YXZ. ODANQ VqhJLgnWn OOO. fpDT TBD bKdxcN. OgC TBD. IxwwKCS IAM WAH."
    Expected: "ODANQ is an acronym. I do not like acronyms. Please remove them from your email."
         got: "YXZ is an acronym. I do not like acronyms. Please remove them from your email."
    
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    python new test framework is required. updated in this fork

  • Default User Avatar

    "Any combination of three or more letters in upper case will be considered an acronym."

    Therefore in the Python random tests... shouldn't the test case for "M. ATpcqg EOD. mFsUUS" return"
    "UUS is an acronym. I do not like acronyms. Please remove them from your email."

    Another example: 'EOD ImFTWG CuG. DP. txiiEY. CTA kLx. FSAzk. TuvxSUAy oLRS. SWOT NRN.'

    My code returns
    "FTWG is an acronym. I do not like acronyms. Please remove them from your email."

    But the tests result says,

    "It should work for random inputs too: 'FTWG is an acronym. I do not like acronyms. Please remove them from your email.' should equal 'The end of the day ImFTWG CuG. DP. TxiiEY. Call to action kLx. FSAzk. TuvxSUAy oLRS. Strengths, weaknesses, opportunities and threats no reply necessary.".

    I'll be continuing to the next Kata now thanks.

  • Default User Avatar
  • Custom User Avatar

    Your code not working is not an issue (= a bug in the kata), Please read this: https://docs.codewars.com/training/troubleshooting/

  • Default User Avatar

    i passed all test but seem to fail the attemp, what could be the problem?(sorry i'm new to this website)

  • Default User Avatar

    I'd like to know what are those pythonistic solutions. I mainly write in JavaScript

  • Loading more items...