const Case = require('case');

module.exports = {
    sentence,
    capital,
    sentenceWithAcronyms,
    capitalWithAcronyms
};

const rawAcronyms = [
    'ARD',
    'ARP',
    'CRC',
    'CJA',
    'CS',
    'DTO',
    'EPP',
    'GOAD',
    'HDC',
    'HDCED',
    'HMP',
    'HMYOI',
    'IPP',
    'NFA',
    'NPS',
    'OMU',
    'PO',
    'PS',
    'SPO',
    'YMCA',
    'YO',
    'YOI',
    'YP'
];

const acronyms = rawAcronyms.map(ac => {
    const pattern = '\\b(' + ac + ')\\b';
    return {
        raw: ac,
        regEx: new RegExp(pattern, 'gi')
    };
});

function sentence(text) {
    return Case.sentence(text);
}

function capital(text) {
    return Case.capital(text);
}

function sentenceWithAcronyms(text) {
    const sentenceText = Case.sentence(text);
    return acronymsToUpperCase(sentenceText);
}

function capitalWithAcronyms(text) {
    const sentenceText = Case.capital(text);
    return acronymsToUpperCase(sentenceText);
}

function acronymsToUpperCase(text) {
    return acronyms.reduce((returnText, acronym) => {
        return returnText.replace(acronym.regEx, Case.upper(acronym.raw));
    }, text);
}

@@ -70,16 +70,27 @@
 apital,%0A
+    lower,%0A
     sent
@@ -692,32 +692,87 @@
 pital(text);%0A%7D%0A%0A
+function lower(text) %7B%0A    return Case.lower(text);%0A%7D%0A%0A
 function sentenc

Add lower case