Ad
  • 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

    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 and Ruby random tests must be updated. They may generate words like BIrwRGQ which are not allowed according to the description: "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."

  • Custom User Avatar

    Ruby 3.0 should be enabled.

  • Custom User Avatar

    Good stuff.

    You could add messages to each test, showing the input string to help with debugging.